<resource schema="vlastripe82">
	<meta name="creationDate">2014-12-08T11:51:00</meta>
	<meta name="title">High-Resolution Very Large Array Imaging of
		Sloan Digital Sky Survey Stripe 82 at 1.4 GHz
	</meta>
	<meta name="description" format="rst">
		This is a high-resolution radio survey of the Sloan Digital Sky Survey
		(SDSS) Southern Equatorial Stripe, a.k.a.  Stripe 82. This 1.4 GHz survey
		was conducted with the Very Large Array (VLA) primarily in the
		A-configuration, with supplemental B-configuration data to increase
		sensitivity to extended structure. The survey has an angular resolution
		of 1.''8 and achieves a median rms noise of 52 μJy per beam over 92 deg^2.
		The catalog contains 17,969 isolated radio components, for an overall
		source density of ∼195 sources/deg^2. See also J.A. Hodge et al,
		:bibcode:`2011AJ....142....3H` .
	</meta>
	<meta name="creator">Hodge, J. A.; Becker, R. H.; White, R. L.;
		Richards, G. T.; Zeimann, G. R.
	</meta>
	<meta name="source">2011AJ....142....3H</meta>
	<meta name="subject">surveys</meta>
	<meta name="subject">radio-continuum-emission</meta>

	<meta name="coverage">
		<meta name="waveband">Radio</meta>
	</meta>

	<table id="stripe82" onDisk="True" mixin="//scs#q3cindex"
			adql="True">
		<mixin>//scs#pgs-pos-index</mixin>
		<stc>
			Position ICRS "raj2000" "dej2000"
		</stc>

		<index columns="f_peak"/>
		<index columns="imag"/>

		<column name="raj2000" type="double precision"
			unit="deg" ucd="pos.eq.ra;meta.main"
			tablehead="RA"
			description="Right Ascension, J2000"
			verbLevel="1" displayHint="sf=5"
			note="p"/>
		<column name="dej2000" type="double precision"
			unit="deg" ucd="pos.eq.dec;meta.main"
			tablehead="Dec"
			description="Declination, J2000"
			verbLevel="1" displayHint="sf=5"
			note="p"/>

		<column name="p_s"
			ucd="stat.likelihood;obs"
			tablehead="P(S)"
			description="Probability that the source is spurious (e.g., because
				of a sidelobe of a nearby bright source)."
			verbLevel="15"
			note="s"/>

		<column name="f_peak"
			unit="mJy/beam" ucd="phot.flux.density;em.radio.1500-3000MHz;stat.max"
			tablehead="Peak Flux"
			description="Peak flux density derived by fitting
				an elliptical Gaussian model to the source. The uncertainty is
				given in the rms_nose column."
			verbLevel="5">
			<values min="0.3" max="1838.76"/>
		</column>
		<column name="f_int"
			unit="mJy" ucd="phot.flux.density;em.radio.1500-3000MHz"
			tablehead="Int. flux"
			description="Integrated flux density in mJy derived from the
				elliptical Gaussian model fit."
			verbLevel="5"
			note="f"/>
		<column name="rms_noise"
			unit="mJy" ucd="stat.error;phot.flux.density"
			tablehead="RMS noise"
			description="Local noise estimate at the source position,
				calculated by combining the measured noise from all
				grid images contributing to the coadded map at the source position."
			verbLevel="15"/>

		<column name="smaj_ax"
			ucd="phys.angSize.smajAxis;meta.modelled" unit="deg"
			tablehead="Semimajor"
			description=" FWHM semimajor axis
				of the elliptical Gaussian model for the source after
				beam deconvolution.  This is zero when the fitted value prior to
				deconvolution to is smaller than the beam (1.8'') due to noise."
			verbLevel="15"
			displayHint="displayUnit=arcsec"/>
		<column name="smin_ax"
			ucd="phys.angSize.sminAxis;meta.modelled" unit="deg"
			tablehead="Semiminor"
			description=" FWHM semiminor axis
				of the elliptical Gaussian model for the source after
				beam deconvolution.  This is zero when the fitted value prior to
				deconvolution to is smaller than the beam due to noise."
			verbLevel="15"
			displayHint="displayUnit=arcsec"/>
		<column name="pa"
			ucd="pos.posAng;meta.modelled" unit="deg"
			tablehead="PA"
			description="Position angle of the elliptical Gaussian model
				for the source after beam deconvolution, east of north."
			verbLevel="15"/>

		<column name="smaj_ax_raw"
			ucd="phys.angSize.smajAxis" unit="deg"
			tablehead="Smaj raw"
			description="FWHM semimajor axis of the elliptical Gaussian model
				before beam deconvolution."
			verbLevel="15"
			displayHint="displayUnit=arcsec"/>
		<column name="smin_ax_raw"
			ucd="phys.angSize.sminAxis" unit="deg"
			tablehead="Smin raw"
			description="FWHM semiminor axis of the elliptical Gaussian model
				before beam deconvolution."
			verbLevel="15"
			displayHint="displayUnit=arcsec"/>
		<column name="pa_raw"
			ucd="pos.posAng" unit="deg"
			tablehead="PA raw"
			description="Position angle of the elliptical Gaussian model
				for the source before beam deconvolution, east of north."
			verbLevel="15"/>

		<column name="field" type="text"
			ucd="meta.id;obs.field"
			tablehead="Field"
			description="The field name is the name of the coadded image containing
				the source.  Note that the field name encodes the center of the field;
				field hhmmm+ddmmm is centered at RA = hh mm.m, Dec = +dd mm.m.  The
				letter appended to the field name indicates the last catalog release in
				which the image was modified."
			verbLevel="15"/>

		<column name="n_sdss" type="integer" required="True"
			ucd="meta.number"
			tablehead="|SDSS|"
			description="Number of matching SDSS DR6 objects within 8 arcsec."
			verbLevel="15"/>
		<column name="d_sdss"
			unit="deg" ucd="pos.angDistance"
			tablehead="d(SDSS)"
			description="Separation of the closest match in SDSS DR6."
			verbLevel="15"/>
		<column name="imag"
			unit="mag" ucd="phot.mag;em.opt.I"
			tablehead="m_i"
			description="SDSS i-band magnitude of the closest match in SDSS DR6."
			verbLevel="15">
			<values min="-1.0" max="28.1"/>
		</column>
		<column name="c_sdss" type="char"
			ucd="src.morph.type"
			tablehead="Cls"
			description="SDSS morphological class of the closest match in SDSS DR6;
				s = stellar, g = nonstellar/galaxy."
			verbLevel="15">
			<values nullLiteral="-"/>
		</column>

		<column name="ct" type="integer" required="True"
			ucd="meta.id;meta.main"
			tablehead="#"
			description="Row count; this is not part of the original table
				but was added to satisfy SCS requirements."
			verbLevel="1"/>

		<meta name="note" tag="p">
			The positional errors are a function of source brightness, size,
			and noise in the map.  They are best found using a simple rule-of-thumb
			approach, as the HAPPY-derived errors tend to be underestimated.  An
			empirical equation for the accuracy at 90\% confidence is f_Size *
			(1/SNR + 1/20), where f_Size is the fitted semimajor or semiminor
			axis size, and SNR is the signal to noise ratio
			:bibcode:`1997ApJ...475..479W`.  Systematic errors are
			smaller than 0.05".
		</meta>

		<meta name="note" tag="s">
			P(S) values are computed using a custom algorithm based on multiple
			voting oblique decision tree classifiers, which were trained on deep VLA
			fields. Note that the algorithm is optimized for the FIRST survey,
			whereas the RMS computation for this catalog has changed significantly.
			The values of P(S) are therefore not very reliable for this catalog.
		</meta>

		<meta name="note" tag="f">
			The uncertainty in f_int can be considerably greater than that of
			f_peak depending on source size and morphology.  An expression to
			estimate the uncertainty can be found in :bibcode:`2004AJ....128.1974S`
			For point sources, the relative uncertainty reduces to:
			sigma_I/I = sqrt{ 2.5 sigma^2/I^2 + 0.01^2 }.
		</meta>
	</table>

	<coverage>
		<updater spaceTable="stripe82"/>
		<spectral>8.637e-25 9.932e-25</spectral>
		<spatial>4/1114,1125-1126,1177 5/4442,4451-4454,4460,4499,4508,4707,4713-4716,4755-4758,4764 6/17661-17663,17719,17723,17725-17727,17762,17774,17799,17803,17820-17822,17844,17848,17856-17858,17860,17975,17981-17983,17991,17995,18036,18040,18068-18069,18071,18112-18114,18116,18176-18178,18180,18184,18679,18683,18685-18687,18743,18747,18749-18751,18792,18794-18795,18823,18827,18849-18851,18868,18872,18880-18882,18884,19015,19036-19038,19045,19060,19200-19202</spatial>
	</coverage>

	<data id="import">
		<sources pattern="data/*.tb1"/>
		<columnGrammar topIgnoredLines="71">
			<colDefs>
				raj2000:17-26
				dej2000:27-36
				p_s:38-41
				f_peak:43-49
				f_int: 50-57
				rms_noise: 59-64
				smaj_ax: 66-70
				smin_ax: 72-76
				pa: 78-82
				smaj_ax_raw: 84-88
				smin_ax_raw: 90-94
				pa_raw: 96-100
				field: 102-113
				n_sdss: 115-116
				d_sdss: 118-122
				imag: 124-128
				c_sdss: 130
			</colDefs>
		</columnGrammar>

		<make table="stripe82">
			<rowmaker idmaps="*">
				<var key="raj2000">hmsToDeg(@raj2000, sepChar="")</var>
				<var key="dej2000">dmsToDeg(@dej2000, sepChar="")</var>
				<var key="d_sdss" nullExcs="ValueError"
					>float(@d_sdss)</var>
				<var key="imag" nullExcs="ValueError"
					>float(@imag)</var>
				<var key="c_sdss">parseWithNull(@c_sdss, str, nullLiteral="-")</var>
				<!-- source has major/minor axes rather than semi*; hence the /2. -->
				<var key="smaj_ax">float(@smaj_ax)*DEG_ARCSEC/2.</var>
				<var key="smin_ax">float(@smin_ax)*DEG_ARCSEC/2.</var>
				<var key="smaj_ax_raw">float(@smaj_ax_raw)*DEG_ARCSEC/2.</var>
				<var key="smin_ax_raw">float(@smin_ax_raw)*DEG_ARCSEC/2.</var>
				<var key="ct">\rowsMade</var>
			</rowmaker>
		</make>
	</data>

	<service id="cone" allowed="form,scs.xml">
		<meta name="shortName">vlastripe82 cone</meta>
		<publish render="form" sets="ivo_managed,local"/>
		<publish render="scs.xml" sets="ivo_managed"/>

		<meta name="testQuery">
			<meta name="ra">331.308</meta>
			<meta name="dec">-1.073</meta>
			<meta name="sr">0.01</meta>
		</meta>

		<scsCore queriedTable="stripe82">
	 		<FEED source="//scs#coreDescs"/>
	 		<condDesc buildFrom="p_s"/>
	 		<condDesc buildFrom="f_peak"/>
	 		<condDesc buildFrom="imag"/>
	 	</scsCore>
	</service>

	<regSuite>
		<regTest title="vlastripe82 response">
			<url RA="331.308" DEC="-1.073" SR="0.01" VERB="3">cone/scs.xml</url>
			<code>
				row = self.getFirstVOTableRow()
				self.assertAlmostEqual(row['smin_ax_raw'], 0.000259722000)
				self.assertEqual(row['f_int'], 4.5)
				self.assertAlmostEqual(row["dej2000"],  -1.07355555)
				self.assertAlmostEqual(row["c_sdss"],  'g')
				self.assertAlmostEqual(row["field"],  '22060-00520H')
			</code>
		</regTest>
	</regSuite>
</resource>
