| 1 |
<!-- Definitions of SLAP (simple line access) columns and parameters --> |
| 2 |
|
| 3 |
<resource resdir="__system" schema="dc"> |
| 4 |
|
| 5 |
<mixinDef id="basic"> |
| 6 |
<doc> |
| 7 |
This mixin is for tables serving SLAP services, i.e., tables |
| 8 |
with spectral lines. It does not contain all "optional" columns, |
| 9 |
hence the name basic. We'd do "advanced", too, if there's demand. |
| 10 |
|
| 11 |
Use the `//slap#fillBasic`_ procDef to populate such tables. |
| 12 |
</doc> |
| 13 |
<events> |
| 14 |
<column name="wavelength" type="double precision" required="True" |
| 15 |
utype="ssldm:Line.wavelength.value" |
| 16 |
unit="m" ucd="em.wl" |
| 17 |
tablehead="Lambda" |
| 18 |
description="Wavelength of the transition." |
| 19 |
verbLevel="1"/> |
| 20 |
<column name="linename" type="text" required="True" |
| 21 |
utype="ssldm:Line.title" |
| 22 |
ucd="meta.id;em.line" |
| 23 |
tablehead="Line" |
| 24 |
description="Terse descriptor of the line" |
| 25 |
verbLevel="1"/> |
| 26 |
<column name="chemical_element" type="text" |
| 27 |
utype="ssldm:Line.species.name" |
| 28 |
ucd="phys.atmol.element" |
| 29 |
tablehead="Element" |
| 30 |
description="Element transitioning" |
| 31 |
verbLevel="1"/> |
| 32 |
<column name="initial_name" type="text" |
| 33 |
utype="ssldm:Line.initialLevel.name" |
| 34 |
ucd="phys.atmol.initial;phys.atmol.level" |
| 35 |
tablehead="Initial" |
| 36 |
description="Name of the level the atom or molecule starts in." |
| 37 |
verbLevel="15"/> |
| 38 |
<column name="final_name" type="text" |
| 39 |
utype="ssldm:Line.finalLevel.name" |
| 40 |
ucd="phys.atmol.final;phys.atmol.level" |
| 41 |
tablehead="Final" |
| 42 |
description="Name of the level the atom or molecule ends up in." |
| 43 |
verbLevel="15"/> |
| 44 |
<column name="initial_level_energy" type="double precision" |
| 45 |
unit="J" ucd="phys.energy;phys.atmol.initial;phys.atmol.level" |
| 46 |
tablehead="E_init" |
| 47 |
description="Energy of the level the atom or molecule starts in." |
| 48 |
verbLevel="15"/> |
| 49 |
<column name="final_level_energy" type="double precision" |
| 50 |
unit="J" ucd="phys.energy;phys.atmol.final;phys.atmol.level" |
| 51 |
tablehead="E_final" |
| 52 |
description="Energy of the level the atom or molecule ends up in." |
| 53 |
verbLevel="15"/> |
| 54 |
<column name="pub" type="text" |
| 55 |
ucd="meta.bib" |
| 56 |
tablehead="Pub" |
| 57 |
description="The publication this value originated from." |
| 58 |
verbLevel="15" |
| 59 |
displayHint="type=bibcode"/> |
| 60 |
<column name="id_status" type="text" |
| 61 |
ucd="meta.code" |
| 62 |
tablehead="Id?" |
| 63 |
description="Identification status of the line" |
| 64 |
verbLevel="15"/> |
| 65 |
</events> |
| 66 |
</mixinDef> |
| 67 |
|
| 68 |
<procDef type="apply" id="fillBasic"> |
| 69 |
<doc> |
| 70 |
This apply is intended for rowmakers filling tables mixing in |
| 71 |
//slap#basic. It populates vars for all the columns in there; |
| 72 |
you'll normally want idmaps="*" with this apply. |
| 73 |
|
| 74 |
For most of its parameters, it will take them for same-named vars, |
| 75 |
so you can slowly build up its arguments through var elements. |
| 76 |
</doc> |
| 77 |
<setup> |
| 78 |
<par late="true" key="wavelength" description="Wavelength of |
| 79 |
the transition in meters; this will typically be an |
| 80 |
expression like int(@wavelength)*1e-10">@wavelength</par> |
| 81 |
<par late="true" key="linename" description="A brief designation |
| 82 |
for the line, like 'H alpha' or 'N III 992.973 A'.">@linename</par> |
| 83 |
<par late="true" key="id_status" description="Identification |
| 84 |
status; this would be identified or unidentified plus |
| 85 |
possibly uncorrected (but read the SLAP spec for that)." |
| 86 |
>"identified"</par> |
| 87 |
<par late="true" key="chemical_element" description="Element that makes |
| 88 |
the transition. It's probably ok to dump molecule names |
| 89 |
in here, too.">@chemical_element</par> |
| 90 |
<par late="true" key="initial_name" description="Designation |
| 91 |
of the initial state">@initial_name</par> |
| 92 |
<par late="true" key="final_name" description="Designation |
| 93 |
of the final state">@final_name</par> |
| 94 |
<par late="true" key="initial_level_energy" description="Energy |
| 95 |
of the initial state">@initial_level_energy</par> |
| 96 |
<par late="true" key="final_level_energy" description="Energy |
| 97 |
of the final state">@final_level_energy</par> |
| 98 |
<par late="true" key="pub" description="Publication |
| 99 |
this came from (use a bibcode).">@pub</par> |
| 100 |
</setup> |
| 101 |
<code> |
| 102 |
vars.update(locals()) |
| 103 |
</code> |
| 104 |
</procDef> |
| 105 |
|
| 106 |
<STREAM id="servicePars"> |
| 107 |
<doc> |
| 108 |
The service parameters of SLAP services. Replay this in |
| 109 |
all your SLAP services (not in the core) |
| 110 |
</doc> |
| 111 |
|
| 112 |
<inputKey name="REQUEST" type="text" tablehead="Request type" |
| 113 |
description="If you give this parameter, in must be queryData. |
| 114 |
Hence, better don't pass it in." std="True" |
| 115 |
multiplicity="forced-single"/> |
| 116 |
<inputKey name="VERSION" type="text" |
| 117 |
tablehead="Service Version" std="True" |
| 118 |
description="If you pass this, it must be 1.0."/> |
| 119 |
</STREAM> |
| 120 |
|
| 121 |
<STREAM id="corePars"> |
| 122 |
<doc> |
| 123 |
The mandatory core parameters of SLAP services. This is currently |
| 124 |
just WAVELENGTH. |
| 125 |
</doc> |
| 126 |
<condDesc buildFrom="wavelength"/> |
| 127 |
<condDesc buildFrom="chemical_element"/> |
| 128 |
<condDesc buildFrom="final_level_energy"/> |
| 129 |
<condDesc buildFrom="initial_level_energy"/> |
| 130 |
</STREAM> |
| 131 |
|
| 132 |
</resource> |