<resource schema="apass" resdir="apass">
	<meta name="creationDate">2018-12-17T13:29:17Z</meta>
	<meta name="schema-rank">50</meta>

	<meta name="title">AAVSO Photometric All Sky Survey (APASS) DR10</meta>
	<meta name="description" format="rst"><![CDATA[
		AAVSO Photometric All-Sky Survey (APASS), underway since 2010,
		covers the entire sky from 7.5 < V < 16.5 magnitude, and in the BVugrizY
		bandpasses. A northern and a southern site are used, each with twin ASA
		20cm astrographs and Apogee Aspen CG16m cameras, covering 2.9x2.9 square
		degrees with 2.6arcsec pixels. Landolt and SDSS standards are used for
		all-sky solutions, with typical 0.02mag calibration errors on the bright
		end.

		Data Release 10 is a complete reprocessing of all 500K images taken with
		the system, including hundreds of nights not part of DR9. Sextractor is
		used for star finding and centroiding; DAOPHOT is used for aperture
		photometry; the astrometry.net plate-solving library is used for basic
		astrometry, supplanted with more precise WCS that utilizes knowledge of the
		optical train distortions. With these changes, DR10 includes many more
		stars than prior releases.

		More information is available at http://www.aavso.org/apass.
	]]></meta>

	<meta name="subject">surveys</meta>
	<meta name="subject">variable-stars</meta>

	<meta name="creator">Henden, Arne A.; Levine, Stephen; Terrell, Dirk; Welch,
		Douglas L.; Munari, Ulisse; Kloppenborg, Brian K.</meta>
	<meta name="instrument">Apogee Aspen CG16m</meta>

	<meta name="source">2018AAS...23222306H</meta>
	<meta name="contentLevel">Research</meta>
	<meta name="contentLevel">Amateur</meta>
	<meta name="type">Catalog</meta>  <!-- or Archive, Survey, Simulation -->

	<meta name="coverage.waveband">Optical</meta>
	<meta name="coverage.waveband">Infrared</meta>

	<meta name="copyright">If you use this data in a paper, please include
		the following acknowledgement: “This paper makes use of data from the AAVSO
		Photometric All Sky Survey, whose funding has been provided by the Robert
		Martin Ayers Sciences Fund and from the NSF (AST-1412587).”
	</meta>

	<macDef name="bands">
		band, colpart, ucd, desc
		B, _b, em.opt.B, Johnson B (Vega system)
		V, _v, em.opt.V, Johnson V (Vega system)
		u, _u, em.opt.U, Sloan u' (AB system)
		g, _g, em.opt.V, Sloan g' (AB system)
		r, _r, em.opt.R, Sloan r' (AB system)
		i, _i, em.opt.I, Sloan i' (AB system)
		z_s, _z_s, em.opt.I, Sloan z_s (AB system)
		Y, _y, em.opt.I, Sloan Y (AB system)
	</macDef>

	<table id="dr10" onDisk="True" mixin="//scs#q3cindex" adql="true">
		<primary>id</primary>
		<stc>
			Position ICRS "ra" "dec" Error "ra_error" "dec_error"
		</stc>

		<column name="id" type="text"
			ucd="meta.id;meta.main"
			description="APASS DR10 identifier formed as (SPD zone)-(star number)"
			verbLevel="1"/>
		<column name="ra" type="double precision"
			ucd="pos.eq.ra;meta.main"
			description="ICRS right ascension for this object."
			verbLevel="1"/>
		<column name="dec" type="double precision"
			ucd="pos.eq.dec;meta.main"
			description="ICRS declination for this object."
			verbLevel="1"/>
		<column name="ra_error"
			unit="deg" ucd="stat.error;pos.eq.ra"
			tablehead="Err. RA"
			description="Estimated error in ra (there will be additional
				systematics especially in crowded fields)."
			verbLevel="15"/>
		<column name="dec_error"
			unit="deg" ucd="stat.error;pos.eq.dec"
			tablehead="Err. Dec"
			description="Estimated error in dec (there will be additional
				systematics especially in crowded fields)."
			verbLevel="15"/>

		<LOOP>
			<csvItems>
				\bands
			</csvItems>
			<events>
				<column name="nobs\colpart" type="smallint" required="True"
					ucd="meta.number;obs;\ucd"
					tablehead="N(\band)"
					description="Number of observations that went into
						mag\colpart"
					verbLevel="15"/>
				<column name="mag\colpart"
					unit="mag" ucd="phot.mag;\ucd"
					tablehead="Mag \band"
					description="Magnitude in \desc.  This is an aperture magnitude
						obtained with DAOPHOT."
					verbLevel="5"/>
				<column name="err_mag\colpart"
					unit="mag" ucd="stat.error;phot.mag;\ucd"
					tablehead="Err \band"
					description="Estimated error in mag\colpart.  From a comparison
						with DR9, it appears these estimates are overly pessimistic."
					verbLevel="15"/>
			</events>
		</LOOP>
	</table>

	<coverage>
		<updater sourceTable="dr10"/><spatial>0/4-11 1/0-2,4,6-7,12-13 2/12,20,32-34,36,40,61,63 3/53-55,58-62,84,88,90-91,95,140-142,168,170,187,224-226,228,240-241,243,249 4/209,211,229-231,252-254,340-341,343-346,373,375-376,378-379,572-574,592-594,601,606,608-610,628,630,637-639,656-658,669-671,686-689,691,693-694,698-699,702-703,706-707,710,712-713,717-719,723,730-731,741,745-746,752,757,761-763,765,767,908-910,916-917,919-920,928-930,936,957-959,968-970,993-995,1000-1001,1004-1005,1007 5/832-834,840,842-843,896-898,900-901,904,906-907,909-913,915,1020-1022,1368-1370,1388-1390,1395,1397,1399,1401,1404-1405,1407,1424-1426,1432,1434,1437-1439,1472-1474,1480,1482-1484,1486,1491,1497,1499,1508,1510,2300-2302,2380-2382,2384-2386,2395-2396,2398-2402,2408-2410,2416-2418,2421,2423,2444-2446,2448-2450,2464-2466,2501-2504,2506,2508-2509,2511,2518,2524,2527-2528,2530,2533,2536-2537,2539,2543-2544,2547,2636-2638,2640-2642,2653,2655-2658,2664,2666-2667,2671,2673,2675,2704-2706,2708-2709,2712,2714-2716,2718,2736-2738,2740-2741,2743,2761,2768-2769,2780,2782-2786,2788,2804-2805,2807,2822,2834-2835,2838-2839,2844,2847,2856-2857,2859-2860,2862-2864,2866-2867,2884-2885,2887-2888,2890-2891,2896-2898,2900-2901,2903-2904,2906,2912-2914,2916-2917,2933,2935,2937-2938,2940-2941,2943-2944,2946-2950,2952,2954-2955,2960-2962,2972-2973,2976-2978,2989-2991,3012,3023,3033-3037,3039,3042-3043,3056-3057,3059,3066-3067,3644-3646,3674-3675,3685,3688-3689,3692-3694,3696,3702-3703,3705-3709,3711,3724-3726,3728-3730,3752-3753,3756,3765,3770-3771,3780,3797-3799,3807-3808,3823,3827,3884,3886-3887,3968-3969,3971,4008-4010,4012-4013,4015,4024-4025 6/3340-3342,3366-3367,3596-3598,3608-3609,3612-3613,3615,3620,3622-3623,3635,3656-3658,4092,4094,5485-5487,5564,5568,5573,5575,5579,5584-5586,5592,5594,5601,5603,5609,5612-5614,5625,5627,5708-5710,5712-5714,5716-5717,5719,5725-5727,5741-5743,5745-5747,5900-5902,5904,5906,5915,5918,5924,5926-5927,5940,5942,5948,5950,5957-5959,5961,5963,5985,5993-5995,6045-6047,9212-9214,9532-9534,9548-9550,9552-9554,9556,9562-9563,9568-9570,9573-9575,9577-9579,9591,9612-9614,9644,9648-9649,9651-9653,9655,9661,9663,9676,9678-9680,9712,9714,9716-9717,9720,9788-9790,9804-9806,9808-9810,9824-9826,9847,9853,9855,9868-9870,9872-9874,9888-9890,9940-9941,9943,9949-9951,9972-9973,9975,9981,9984,9995,10003,10020,10022,10028,10030,10040-10041,10043,10066-10067,10103-10104,10107,10116,10126-10127,10129,10140,10152-10153,10155,10160,10162,10167-10168,10171,10180,10183,10187,10556-10558,10572-10574,10576-10578,10591-10594,10617,10619,10636-10638,10640-10642,10660,10662-10663,10677-10679,10681-10683,10697-10699,10828-10830,10841,10844-10845,10847,10853-10855,10868-10870,10878-10879,10956,10958,10969,10971,11041,11050-11051,11053-11055,11080,11082-11083,11085-11087,11124,11127,11148,11150-11151,11156,11161-11164,11166-11167,11201,11204-11205,11207,11210,11224-11225,11227,11275-11276,11278-11279,11293-11295,11330-11331,11334,11345-11348,11350,11380,11383-11384,11387,11432-11433,11435,11444-11445,11447,11460,11463,11521,11524,11531,11534,11544-11545,11547,11556,11558-11559,11596,11598,11609,11611,11620,11622,11628,11633,11636,11660,11662-11663,11673-11676,11678,11712,11725-11727,11731,11737-11739,11745,11747,11756-11758,11769,11771,11781-11783,11804-11806,11814-11815,11832,11834-11835,11838-11839,11852-11853,11855,11877,11882-11883,11886-11887,11897-11900,11902-11903,11916-11917,11919,11953-11955,12052-12054,12056-12058,12064,12091,12103,12109,12111,12131,12152,12154-12155,12163,12166-12167,12232-12233,12258-12259,12261-12263,14588-14590,14688-14690,14693-14695,14736-14738,14746-14747,14750,14761,14764-14765,14767,14780,14782-14783,14788-14790,14792-14793,14796,14799,14801,14804-14805,14819,14840-14841,14908-14910,14924-14926,14928-14930,14944-14946,14975,14992-14994,15002,15016-15017,15020-15021,15028,15032,15035,15038-15039,15059,15096,15098,15109-15111,15117,15124-15126,15128-15129,15146-15147,15150-15151,15169,15172,15181-15183,15185-15187,15205,15216-15217,15220,15223,15227,15236,15287,15291,15303,15307,15540,15542-15543,15880-15881,15883,16044,16046,16056-16057,16059,16104-16106,16111</spatial>
	</coverage>

	<data id="import">
		<sources pattern="data/*.txt.gz"/>

		<directGrammar id="booster" cBooster="res/boosterfunc.c"
			preFilter="zcat"/>

		<make table="dr10"/>
	</data>

	<service id="cone" allowed="form,scs.xml">
		<meta name="shortName">APASS DR10 cone</meta>
		<meta name="testQuery">
			<meta name="ra">341.766899</meta>
			<meta name="dec">-39.368275</meta>
			<meta name="sr">0.01</meta>
		</meta>

		<publish render="form" sets="ivo_managed, local"/>
		<publish render="scs.xml" sets="ivo_managed"/>

		<scsCore queriedTable="dr10">
			<FEED source="//scs#coreDescs"/>
			<!-- to enable other query parameters, something like
				<condDesc buildFrom="colname"> should usually be enough. -->
		</scsCore>
	</service>

	<regSuite title="apass dr10 regression">
		<regTest title="apass dr10 SCS serves some data">
			<url RA="341.766899"
					DEC="-39.368275" SR="0.01"
				>cone/scs.xml</url>
			<code>
				row = self.getFirstVOTableRow()
				self.assertEqual(row["err_mag_u"], None)
				self.assertAlmostEqual(row["ra_error"], 0.0001475000026402995)
				self.assertEqual(row["nobs_g"], 4)
				self.assertEqual(row["id"], '050-0007781')
			</code>
		</regTest>
	</regSuite>
</resource>
