<resource schema="hiicounter">
	<meta name="creationDate">2012-04-25T19:19:00Z</meta>
	<meta name="schema-rank">100</meta>
	<meta name="title">Reference HII Regions for Abundance Determination</meta>
	<meta name="description">
		A table containing reference data for HII regions.  We also give
		a source code to compute abundances and electron temperatures in HII
		regions from strong emission lines.
	</meta>
	<meta name="creator">Pilyugin, L.S.; Grebel, E.K.; Mattsson, L.</meta>

	<meta name="subject">interstellar-abundances</meta>
	<meta name="subject">h-ii-regions</meta>

	<meta name="source">2012MNRAS.424.2316P</meta>
	<meta name="copyright">If you use the data or software distributed here,
		please reference 2012MNRAS.424.2316P.  This research was funded in
		part by SFB 881 "The Milky Way Galaxy".
		</meta>

	<meta name="_longdoc" format="rst"><![CDATA[
		The data available here can be used the calculation
		of the abundances and temperatures in one or many HII regions.

		We have prepared a FORTRAN program to do this, available in
		the archive `Cmethod.tar.gz </hiicounter/q/web/static/Cmethod.tar.gz>`_

		The archive includes a README explaining how to use the program.
	]]></meta>

	<meta name="_intro" format="rst"><![CDATA[
		Reference data for HII regions.  Source code to compute abundances
		and electron temperatures in HII regions from this data is available
		at the `Service Documentation </hiicounter/q/web/info#svcdoc>`_
	]]></meta>

	<table id="data" onDisk="True" adql="True" mixin="//scs#q3cindex">
		<mixin>//scs#pgs-pos-index</mixin>
		<stc>
			Position ICRS "hostAlpha" "hostDelta"
		</stc>
		<column name="ident" type="integer" required="True"
			ucd="meta.id;meta.main"
			tablehead="Id"
			description="Identifier of the HII region in this catalog"
			verbLevel="1"/>
		<column name="logR3"
			ucd="spect.line.intensity;arith.ratio"
			tablehead="log(R_3)"
			description="Log of [OIII] R_3 line intensity relative to Hβ"
			note="R3" verbLevel="10"/>
		<column name="logR2"
			ucd="spect.line.intensity;arith.ratio"
			tablehead="log(R_2)"
			description="Log of [OII] R_2 line intensity relative to Hβ"
			note="R2" verbLevel="10"/>
		<column name="logN2"
			ucd="spect.line.intensity;arith.ratio"
			tablehead="log(N_2)"
			description="Log of [NII] N_2 line intensity relative to Hβ"
			note="N2" verbLevel="10"/>
		<column name="logS2"
			ucd="spect.line.intensity;arith.ratio"
			tablehead="log(S_2)"
			description="Log of [SII] S_2 line intensity relative to Hβ"
			note="S2" verbLevel="10"/>
		<column name="o_h"
			ucd="phys.abund;arith.ratio"
			tablehead="12+log(O/H)"
			description="T_e-based oxygen abundance given as 12+log(O/H)"
			verbLevel="15"/>
		<column name="n_h"
			ucd="phys.abund;arith.ratio"
			tablehead="12+log(N/H)"
			description="T_e-based nitrogen abundance given as 12+log(N/H)"
			verbLevel="15"/>
		<column name="t3"
			unit="K" ucd="phys.temperature.electron"
			tablehead="t_3"
			description="Electron temperature derived as given in t3src, reduced
				to t_3([O III])"
			verbLevel="15"/>
		<column name="t3src" type="text"
			ucd="meta.code;phys.temperature.electron"
			tablehead="t3 src"
			description="Lines used for determination of t_3"
			verbLevel="20"/>
		<column name="region_name" type="text"
			ucd="meta.id;src"
			tablehead="HII Region"
			description="Name of the HII region."
			verbLevel="15"/>
		<column name="src" type="text"
			ucd="meta.bib.bibcode"
			tablehead="Source"
			description="Reference to the source of the data quoted."
			displayHint="type=bibcode"
			verbLevel="20"/>
		<column name="hostAlpha"
			ucd="pos.eq.ra;meta.main"
			tablehead="Host RA"
			description="ICRS RA of host object (from Simbad)"
			verbLevel="1"/>
		<column name="hostDelta"
			ucd="pos.eq.dec;meta.main"
			tablehead="Host Dec"
			description="ICRS Dec of host object (from Simbad)"
			verbLevel="1"/>

		<meta name="note" tag="N2">
			The N_2 line intensity is the sum of the line intensities for [NII]
			at 654.8 and 658.4 nm.
		</meta>

		<meta name="note" tag="R2">
			The R_2 line intensity is the sum of the line intensities for [OII]
			at 372.7 and 372.9 nm.
		</meta>

		<meta name="note" tag="R3">
			The R_3 line intensity is the sum of the line intensities for [OIII]
			at  495.9 and 500.7 nm.
		</meta>

		<meta name="note" tag="R3">
			The S_2 line intensity is the sum of the line intensities for [SII]
			at 671.7 and 673.1 nm.
		</meta>
	</table>

	<coverage>
		<updater sourceTable="data"/>
		<spectral>2.921e-19 5.369e-19</spectral>
		<spatial>6/38,816,955,2109,2155,2258,2709,3042,4251,4534,4948,5168,5203,5283,5419,5556,5607,6034,6419,6619,7022,7190,7251,7281,7498,7584,7606,7743,7878,7926,9060,9190,9966,10328,10348,10472,10481,10587,10607,10689,10762,10769,10888,10927,11027,11137,11177-11178,11434,11696,17165,17725,17865,17867,18027,18038,18198,18235,18398,18429,18858,19172,19417,19570,19779,20183,20388,20400,22828,23078,23566,24624,24696,25045,25169,25227,25253,25344,25594,25659,25734,26278,26362,26821,26963,26971,26992,27199,27243,27457,27713,27765,27926,28077,28149,28335,28505,28631,29718,33193,34170,34243,34498,34531,35238,35514,35536,36258,36756,38390,38655,38821,38829,38833,38846,38906,39574,40124,40255,43420,43635,43720,43754,43829,43845,43874,43881,43976,44236,44722,47701</spatial>
	</coverage>

	<data id="import">
		<sources pattern="data/table.txt"/>
		<columnGrammar topIgnoredLines="13">
			<colDefs>
				ident: 1-3
				logR3: 5-10
				logR2: 12-17
				logN2: 19-24
				logS2: 26-31
				o_h: 33-37
				n_h: 39-43
				t3raw: 45-49
				t3srcraw: 51
				region_name: 55-76
				src: 78-96
			</colDefs>
		</columnGrammar>
		<make table="data">
			<rowmaker idmaps="*">
				<apply name="map_temp_source">
					<setup>
						<par name="linemap">{
							1: "[OII]",
							2: "[NII]",
							3: "[SIII]"}</par>
					</setup>
					<code>
						vars["t3src"] = linemap[int(@t3srcraw)]
					</code>
				</apply>

				<apply name="extractName">
					<setup>
						<par name="catpat">re.compile(r"(II* Zw|[A-Za-z]+)\s*([0-9+-]*).*")</par>
					</setup>
					<code>
						# clean the name of stuff that will confuse Simbad
						vars["hostobj"] = catpat.sub(r"\\1 \\2", @region_name)
					</code>
				</apply>

				<apply name="resolveObject" procDef="//procs#resolveObject">
					<bind name="identifier">@hostobj</bind>
<!--					<bind name="logUnknowns">True</bind>-->
				</apply>

				<map dest="t3">float(@t3raw)*10000</map>
				<map dest="hostAlpha">@simbadAlpha</map>
				<map dest="hostDelta">@simbadDelta</map>
			</rowmaker>
		</make>
	</data>

	<service id="web" allowed="form,static">
		<meta name="shortName">HII props web</meta>
		<!-- static renderer hands out the program archive mentioned in
		_longdoc -->
		<property name="staticData">static</property>
		<publish render="form" sets="local"/>
		<dbCore queriedTable="data">
			<condDesc>
				<inputKey original="region_name" showItems="5" multiplicity="multiple">
					<values
						fromdb="region_name from hiicounter.data order by region_name"/>
				</inputKey>
			</condDesc>
			<condDesc buildFrom="t3"/>
			<condDesc buildFrom="logR3"/>
			<condDesc buildFrom="logR2"/>
			<condDesc buildFrom="logN2"/>
			<condDesc buildFrom="logS2"/>
		</dbCore>
	</service>

	<service id="scs" allowed="scs.xml">
		<publish render="scs.xml" sets="ivo_managed"/>
		<meta name="shortName">HII props scs</meta>
		<meta name="title">Reference HII Regions for Abundance
			Determination (SCS)</meta>
		<meta name="testQuery">
			<meta name="ra">5.09</meta>
			<meta name="dec">59.293</meta>
			<meta name="sr">0.1</meta>
		</meta>
		<scsCore queriedTable="data">
		  <condDesc original="//scs#protoInput"/>
		</scsCore>
	</service>
</resource>
