<resource schema="supercosmos">
	<meta name="creationDate">2013-02-15T08:26:00</meta>
	<meta name="schema-rank">1000</meta>
	<meta name="title">SuperCOSMOS Sources</meta>
	<meta name="description"><![CDATA[
		The SuperCOSMOS data primarily originate from scans of the UK Schmidt and
		Palomar POSS II blue, red and near-IR sky surveys. The ESO Schmidt R (dec <
		-17.5) and Palomar POSS-I E (dec > -17.5) surveys have also been scanned
		and provide an early (1st) epoch red measurement.  Mirrored here is the
		source table containing four-plate multi-colour, multi-epoch data
		which are merged into a single source catalogue for general science
		exploitation.  Within the GAVO DC, some column names have been adapted
		to local customs (primarily positions, proper motions).
	]]></meta>
	<meta name="source">2001MNRAS.326.1279H</meta>
	<meta name="derivedFrom">SuperCOSMOS Science Archive (SSA)
		<meta name="derivedFrom.ivoId">ivo://wfau.roe.ac.uk/ssa-dsa</meta>
	</meta>

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

	<meta name="coverage.waveband">Optical</meta>
	<meta name="coverage.regionOfRegard">1</meta>
	<meta name="copyright">The SuperCOSMOS source table is merely
		mirrored here.  See
		http://www-wfau.roe.ac.uk/sss/index.html for more information
		and usage conditions.</meta>

	<table id="sources" onDisk="True" adql="True" mixin="//scs#q3cindex">
		<meta name="descripton">SuperCOSMOS extracted sources</meta>
		<index columns="raj2000"/>
		<index columns="dej2000"/>
		
		<index columns="classMagB"/>
		<index columns="classMagI"/>

		<column name="objID" type="bigint" required="True"
			ucd="meta.id;meta.main"
			description="SuperCOSMOS identifier of merged source"
			verbLevel="1"/>

		<column name="objIDB" type="bigint"
			ucd="meta.id.assoc"
			description="objID for B band detection merged into this object"
			verbLevel="25">
			<values nullLiteral="-1"/>
		</column>
		<column name="objIDR1" type="bigint"
			ucd="meta.id.assoc"
			description="objID for R1 band detection merged into this object"
			verbLevel="25">
			<values nullLiteral="-1"/>
		</column>
		<column name="objIDR2" type="bigint"
			ucd="meta.id.assoc"
			description="objID for R2 band detection merged into this object"
			verbLevel="25">
			<values nullLiteral="-1"/>
		</column>
		<column name="objIDI" type="bigint"
			ucd="meta.id.assoc"
			description="objID for I band detection merged into this object"
			verbLevel="25">
			<values nullLiteral="-1"/>
		</column>

		<column name="epoch" type="real"
			unit="yr" ucd="time.epoch"
			description="Epoch of position (variance weighted mean epoch of
				available measures)"
			verbLevel="15"/>
		<column name="raj2000" type="double precision"
			unit="deg" ucd="pos.eq.ra;meta.main"
			description="Mean RA, computed from detections merged
				in this catalogue"
			verbLevel="1"/>
		<column name="dej2000" type="double precision"
			unit="deg" ucd="pos.eq.dec;meta.main"
			description="Mean Dec, computed from detections merged in
				this catalogue"
			verbLevel="1"/>
		<column name="sigRA" type="real"
			unit="deg" ucd="stat.error;pos.eq.ra"
			description="Uncertainty in RA (formal random error not including
				systematic errors)"
			verbLevel="15"/>
		<column name="sigDec" type="real"
			unit="deg" ucd="stat.error;pos.eq.ra"
			description="Uncertainty in Dec (formal random error not including
				systematic errors)"
			verbLevel="15"/>

		<column name="pmRA" type="real"
			unit="deg/yr" ucd="pos.pm;pos.eq.ra"
			description="Proper motion in RA direction"
			verbLevel="5"/>
		<column name="pmDE" type="real"
			unit="deg/yr" ucd="pos.pm;pos.eq.dec"
			description="Proper motion in Dec direction"
			verbLevel="5"/>
		<column name="e_pmRA" type="real"
			unit="deg/yr" ucd="stat.error;pos.pm;pos.eq.ra"
			description="Error on proper motion in RA direction"
			verbLevel="15"/>
		<column name="e_pmDE" type="real"
			unit="deg/yr" ucd="stat.error;pos.pm;pos.eq.dec"
			description="Error on proper motion in Dec direction"
			verbLevel="15"/>
		<column name="chi2" type="real"
			ucd="stat.fit.chi2"
			description="Chi-squared value of proper motion solution"
			verbLevel="25"/>
		<column name="Nplates" type="smallint" required="True"
			ucd="meta.number;obs"
			description="No. of plates used for this proper motion measurement"
			verbLevel="25">
		</column>

		<column name="classMagB" type="real"
			unit="mag" ucd="phot.mag;em.opt.B"
			description="B band magnitude selected by B image class"
			verbLevel="12">
			<values min="-31.988" max="28.755"/>
		</column>
		<column name="classMagR1" type="real"
			unit="mag" ucd="phot.mag;em.opt.R"
			description="R1 band magnitude selected by R1 image class"
			verbLevel="12"/>
		<column name="classMagR2" type="real"
			unit="mag" ucd="phot.mag;em.opt.R"
			description="R2 band magnitude selected by R2 image class"
			verbLevel="12"/>
		<column name="classMagI" type="real"
			unit="mag" ucd="phot.mag;em.opt.I"
			description="I band magnitude selected by I image class"
			verbLevel="12">
			<values min="-32.656" max="32.368"/>
		</column>

		<column name="gCorMagB" type="real"
			unit="mag" ucd="phot.mag;em.opt.B"
			description="B band magnitude assuming object is galaxy"
			verbLevel="22"/>
		<column name="gCorMagR1" type="real"
			unit="mag" ucd="phot.mag;em.opt.R"
			description="R1 band magnitude assuming object is galaxy"
			verbLevel="22"/>
		<column name="gCorMagR2" type="real"
			unit="mag" ucd="phot.mag;em.opt.R"
			description="R2 band magnitude assuming object is galaxy"
			verbLevel="22"/>
		<column name="gCorMagI" type="real"
			unit="mag" ucd="phot.mag;em.opt.I"
			description="I band magnitude assuming object is galaxy"
			verbLevel="22"/>

		<column name="sCorMagB" type="real"
			unit="mag" ucd="phot.mag;em.opt.B"
			description="B band magnitude assuming object is star"
			verbLevel="22"/>
		<column name="sCorMagR1" type="real"
			unit="mag" ucd="phot.mag;em.opt.R"
			description="R1 band magnitude assuming object is star"
			verbLevel="22"/>
		<column name="sCorMagR2" type="real"
			unit="mag" ucd="phot.mag;em.opt.R"
			description="R2 band magnitude assuming object is star"
			verbLevel="22"/>
		<column name="sCorMagI" type="real"
			unit="mag" ucd="phot.mag;em.opt.I"
			description="I band magnitude assuming object is star"
			verbLevel="22"/>

		<column name="meanClass" type="smallint" required="True"
			ucd="src.class.starGalaxy"
			description="Estimate of image class based on unit-weighted mean
				of individual classes"
			verbLevel="5"/>
		<column name="classB" type="smallint"
			ucd="src.class;em.opt.B"
			description="Image classification from B band detection"
			verbLevel="25">
			<values nullLiteral="0"/>
		</column>
		<column name="classR1" type="smallint"
			ucd="src.class;em.opt.R"
			description="Image classification from R1 band detection"
			verbLevel="25">
			<values nullLiteral="0"/>
		</column>
		<column name="classR2" type="smallint"
			ucd="src.class;em.opt.R"
			description="Image classification from R2 band detection"
			verbLevel="25">
			<values nullLiteral="0"/>
		</column>
		<column name="classI" type="smallint"
			ucd="src.class;em.opt.I"
			description="Image classification from I band detection"
			verbLevel="25">
			<values nullLiteral="0"/>
		</column>

		<column name="ellipB" type="real"
			ucd="src.ellipticity"
			description="Ellipticity of B band detection"
			verbLevel="15"/>
		<column name="ellipR1" type="real"
			ucd="src.ellipticity;em.opt.R"
			description="Ellipticity of R1 band detection"
			verbLevel="15"/>
		<column name="ellipR2" type="real"
			ucd="src.ellipticity;em.opt.R"
			description="Ellipticity of R2 band detection"
			verbLevel="15"/>
		<column name="ellipI" type="real"
			ucd="src.ellipticity;em.opt.I"
			description="Ellipticity of I band detection"
			verbLevel="15"/>

		<column name="qualB" type="integer"
			ucd="meta.code.qual;em.opt.B"
			description="Bitwise quality flag from B band detection"
			verbLevel="22">
			<values nullLiteral="-1"/>
		</column>
		<column name="qualR1" type="integer"
			ucd="meta.code.qual;em.opt.R"
			description="Bitwise quality flag from R1 band detection"
			verbLevel="22">
			<values nullLiteral="-1"/>
		</column>
		<column name="qualR2" type="integer"
			ucd="meta.code.qual;em.opt.R"
			description="Bitwise quality flag from R2 band detection"
			verbLevel="22">
			<values nullLiteral="-1"/>
		</column>
		<column name="qualI" type="integer"
			ucd="meta.code.qual;em.opt.I"
			description="Bitwise quality flag from I band detection"
			verbLevel="22">
			<values nullLiteral="-1"/>
		</column>

		<column name="blendB" type="integer"
			ucd="meta.code.qual;em.opt.B"
			description="Blend flag from B band detection"
			verbLevel="25">
			<values nullLiteral="-99999999"/>
		</column>
		<column name="blendR1" type="integer"
			ucd="meta.code.qual;em.opt.R"
			description="Blend flag from R1 band detection"
			verbLevel="25">
			<values nullLiteral="-99999999"/>
		</column>
		<column name="blendR2" type="integer"
			ucd="meta.code.qual;em.opt.R"
			description="Blend flag from R2 band detection"
			verbLevel="25">
			<values nullLiteral="-99999999"/>
		</column>
		<column name="blendI" type="integer"
			ucd="meta.code.qual;em.opt.I"
			description="Blend flag from I band detection"
			verbLevel="25">
			<values nullLiteral="-99999999"/>
		</column>

		<column name="prfStatB" type="real"
			ucd="src.class.starGalaxy"
			description="Profile statistic from B band detection"
			verbLevel="15"/>
		<column name="prfStatR1" type="real"
			ucd="src.class.starGalaxy;em.opt.R"
			description="Profile statistic from R1 band detection"
			verbLevel="15"/>
		<column name="prfStatR2" type="real"
			ucd="src.class.starGalaxy;em.opt.R"
			description="Profile statistic from R2 band detection"
			verbLevel="15"/>
		<column name="prfStatI" type="real"
			ucd="src.class.starGalaxy;em.opt.R"
			description="Profile statistic from I band detection"
			verbLevel="15"/>

		<column name="Ebmv" type="real"
			unit="mag" ucd="phys.absorption"
			description="The estimated foreground reddening at this position
				from Schlegel et al. (1998)"
			verbLevel="15"/>
	</table>

	<data id="import">
		<sources pattern="data/*.bin"/>
<!--		<sources pattern="data/*.test"/>-->
		<directGrammar id="booster" type="bin"
			cBooster="res/boosterfunc.c" recordSize="262" />
		<make table="sources"/>
	</data>

	<service id="s" allowed="scs.xml,form">
		<meta name="shortName">supercosmos scs</meta>
		<meta name="testQuery.ra">314.998278055556</meta>
		<meta name="testQuery.dec">35.2673475</meta>
		<meta name="testQuery.sr">0.01</meta>
		<meta name="_intro" format="rst">
		For serious querying of this data, use ADQL_ possibly via TAP_ .

		.. _ADQL: /adql
		.. _TAP: /tap
		</meta>
		<publish render="scs.xml" sets="ivo_managed"/>
		<publish render="form" sets="local"/>
		<scsCore queriedTable="sources">
			<FEED source="//scs#coreDescs"/>
			<condDesc buildFrom="objID"/>
			<condDesc buildFrom="classMagB"/>
			<condDesc buildFrom="classMagI"/>
		</scsCore>
	</service>

</resource>
