<resource schema="hipparcos">
	<meta name="title">Hipparcos Catalogue</meta>
	<meta name="creationDate">2008-01-09T12:10:00</meta>
	<meta name="schema-rank">50</meta>

	<meta name="subject">stars</meta>
	<meta name="subject">surveys</meta>
	<meta name="subject">astrometry</meta>
	<meta name="subject">proper-motions</meta>

	<meta name="description">The main result catalog from the ESA Hipparcos
		satellite, obtained November 1989 through March 1993.  In the
		GAVO DC, several columns were left out and all angles
		are given in degrees.</meta>
	<meta name="copyright">The field metadata were, in part, taken from
		CDS' Vizier service.</meta>
  <meta name="coverage.waveband">Optical</meta>

	<coverage>
		<spatial>0/0-11</spatial>
		<spectral>2.721e-19 4.138e-19</spectral>
		<temporal>1989-09-01 1993-08-15</temporal>
	</coverage>

	<table id="main" onDisk="True" adql="True" primary="hipno"
			mixin="//scs#q3cindex">
		<mixin>//scs#pgs-pos-index</mixin>
		<stc>
			Position ICRS Epoch J1991.25
				"ra" "dec" Error "e_RAdeg" "e_DEdeg"
				Velocity "pmRA" "pmDE" Error "e_pmRA" "e_pmDE"
		</stc>
		<publish sets="ivo_managed,local"/>
    <column name="hipno" type="integer" required="True"
			ucd="meta.id;meta.main"
      description="Identifier (HIP number)" tablehead="HIP#"/>
    <column name="ra" ucd="pos.eq.ra;meta.main" type="double precision"
      description="Right ascension ICRS (Epoch J1991.25)" tablehead="RA"
			unit="deg" displayHint="sf=3" required="True"/>
    <column name="dec" ucd="pos.eq.dec;meta.main" type="double precision"
      description="Declination ICRS (Epoch J1991.25)" tablehead="Dec"
			unit="deg" displayHint="sf=2" required="True"/>
    <column name="vmag" ucd="phot.mag;em.opt.V" unit="mag"
			displayHint="sf=2" description="Magnitude in Johnson V"
			tablehead="m_V"/>
    <column name="varFlag" type="boolean" required="True"
			ucd="meta.code;src.var"
      description="Coarse variability flag" tablehead="Var?"
			note="2"/>
    <column name="whatPos" type="char"
			ucd="meta.note"
      description="Position is for -- A-Z: multiple component,
      	*: Photocenter, +: Center of mass"
			tablehead="Pos. of">
			<values nullLiteral=" "/>
		</column>
    <column name="parallax" ucd="pos.parallax.trig"
			displayHint="sf=2,displayUnit=mas"
			unit="deg" description="Trigonometric parallax"
			tablehead="Parallax"/>
    <column name="pmRA" ucd="pos.pm;pos.eq.ra" type="double precision"
			displayHint="sf=2,displayUnit=mas/yr" unit="deg/yr"
      description="Proper motion in RA, cos(delta) applied"
			tablehead="PM(RA)*cos(delta)"/>
    <column name="pmDE" ucd="pos.pm;pos.eq.dec" type="double precision"
			displayHint="sf=2,displayUnit=mas/yr" unit="deg/yr"
      description="Proper motion in Declination"
			tablehead="PM(delta)"/>
    <column name="e_RAdeg" ucd="stat.error" unit="deg"
      description="Standard error in RA*cos(delta)" tablehead="Err. RA"/>
    <column name="e_DEdeg" ucd="stat.error" unit="deg"
      description="Standard error in DE" tablehead="Err. Dec"/>
    <column name="e_parallax" ucd="stat.error" unit="deg"
      description="Standard error of parallax" tablehead="Err. Par"/>
    <column name="e_pmRA" ucd="stat.error" unit="deg/yr"
      description="Standard error in PM in RA" tablehead="Err. PM RA"/>
    <column name="e_pmDE" ucd="stat.error" unit="deg/yr"
      description="Standard error in PM in Dec" tablehead="Err. PM Dec"/>
    <column name="F2" ucd="stat.fit.goodness"
      description="Goodness-of-fit parameter, >3 means bad data"
			tablehead="Fit qual."/>
    <column name="Hpmag" ucd="phot.mag;em.opt.V" displayHint="sf=4" unit="mag"
      description="Median magnitude in Hipparcos system"
			tablehead="Med. Mag."/>
    <column name="e_Hpmag" ucd="stat.error" displayHint="sf=4" unit="mag"
      description="Standard error on median magnitude"
			tablehead="Err. Med. Mag."/>
    <column name="Hpscat" ucd="phot.mag;em.opt.V" displayHint="sf=3"
			unit="mag" description="Scatter on median magnitude"
			tablehead="Mag. Scatter"/>
    <column name="o_Hpmag" ucd="meta.number" type="smallint"
      description="Number of observations in median magnitude"
			tablehead="#mags">
			<values nullLiteral="0"/>
		</column>
    <column name="whatMag" ucd="meta.code.multip" type="char"
      description="Mag is for -- A-Z: multiple component, *: combined and corrected for attenuation, +: combined and not corrected for attenuation"
			tablehead="Mag. of">
			<values nullLiteral=" "/>
		</column>
    <column name="Hpmax" ucd="phot.mag;em.opt.V" displayHint="sf=2" unit="mag"
      description="Hpmag at maximum (5th percentile)" tablehead="Mag. Max."/>
    <column name="Hpmin" ucd="phot.mag;em.opt.V" displayHint="sf=2" unit="mag"
      description="Hpmag at minimum (95th percentile)" tablehead="Mag. Min."/>
    <column name="period" ucd="time.period" displayHint="sf=2,displayUnit=d"
			unit="s" description="Variability period"/>
    <column name="SpType" ucd="src.spType" type="text"
      description="Spectral type from various sources"
			tablehead="Spect."/>
		<column name="MultFlag" type="char" ucd="meta.code.multip"
			tablehead="Multiple?"
			description="Multiplicity flag, see note." note="1">
			<values nullLiteral=" "/>
		</column>
		<column name="binPA" ucd="pos.posAng;src.orbital" unit="deg" tablehead="PA"
			description="Position angle between components"/>
		<column name="binSep" ucd="pos.angDistance;src.orbital" unit="arcsec"
			description="Angular separation between components"
			tablehead="Separation"/>
		<column name="binSepErr" ucd="stat.error;pos.angDistance;src.orbital"
			unit="arcsec" description="Standard error on ang. separation"
			tablehead="Err(Sep)"/>
		<column name="magDiff" ucd="phot.mag;arith.diff" unit="mag"
			tablehead="Diff(mags)" description="Magnitude difference of components"/>

		<meta name="note" tag="1">
			C
				solutions for the components
			G
				acceleration or higher order terms
			O
				orbital solutions
			V
				variability-induced movers (apparent motion arises from variability)
			X
				stochastic solution (probably astrometric binaries with short period)
			
			Further details are given in the Double and Multiple Systems Annex.
		</meta>

		<meta name="note" tag="2">
			Star is variable with and amplitude of

			1
				&lt; 0.06 mag
			2
				0.06 .. 0.6 mag
			3
				&gt; 0.6mag
		</meta>
	</table>


	<rowmaker id="make_main" idmaps="*">
		<ignoreOn><keyIs key="ra" value=""/></ignoreOn>

		<map dest="varFlag">not not @varFlag.strip()</map>
		<map dest="parallax" nullExcs="ValueError"
			>float(@parallax)/3600./1000.</map>
		<map dest="pmRA" nullExcs="ValueError"
			>float(@pmRA)/3600./1000.</map>
		<map dest="pmDE" nullExcs="ValueError"
			>float(@pmDE)/3600./1000.</map>
		<map dest="e_RAdeg" nullExcs="ValueError"
			>float(@e_RAdeg)/3600./1000.</map>
		<map dest="e_DEdeg" nullExcs="ValueError"
			>float(@e_DEdeg)/3600./1000.</map>
		<map dest="e_parallax" nullExcs="ValueError"
			>float(@e_parallax)/3600./1000.</map>
		<map dest="e_pmRA" nullExcs="ValueError"
			>float(@e_pmRA)/3600./1000.</map>
		<map dest="e_pmDE" nullExcs="ValueError"
			>float(@e_pmDE)/3600./1000.</map>
		<map dest="period" nullExcs="ValueError"
			>float(@period)*3600*24</map>
	</rowmaker>

	<data id="import">
		<sources pattern="data/hip_main.dat.gz"/>
		<columnGrammar gunzip="True">
			<col key="hipno">3-14</col>
			<col key="vmag">42-46</col>
			<col key="varFlag">48</col>
			<col key="ra">52-63</col>
			<col key="dec">65-76</col>
			<col key="whatPos">78</col>
			<col key="parallax">80-86</col>
			<col key="pmRA">88-95</col>
			<col key="pmDE">97-104</col>
			<col key="e_RAdeg">106-111</col>
			<col key="e_DEdeg">113-118</col>
			<col key="e_parallax">120-125</col>
			<col key="e_pmRA">127-132</col>
			<col key="e_pmDE">134-139</col>
			<col key="F2">205-209</col>
			<col key="Hpmag">275-281</col>
			<col key="e_Hpmag">283-288</col>
			<col key="Hpscat">290-294</col>
			<col key="o_Hpmag">296-298</col>
			<col key="whatMag">300</col>
			<col key="Hpmax">302-306</col>
			<col key="Hpmin">308-312</col>
			<col key="period">314-320</col>
			<col key="SpType">436-447</col>
			<col key="MultFlag">347</col>
			<col key="binPA">356-358</col>
			<col key="binSep">360-366</col>
			<col key="binSepErr">368-372</col>
			<col key="magDiff">374-378</col>
		</columnGrammar>
		<make table="main" rowmaker="make_main"/>
	</data>
</resource>
