Bug #638
closedrequest for id/ref in attributeDomain
0%
Description
Barbara Benson representing NTL LTER site made the following request:
3) Here is a suggested addition to EML2. When describing an
enumerated domain, the same code/definition pairs are used repeatedly in
an eml document. Could an id and reference be allowed in the attribute
domains?
My feeling is that this is an excellent idea. I think this would be extremely
common, and we should accomodate her request. The instance docs would largely
be the same except for the possibility of having to deal with a reference
substition.
Below is an example snippet that Barbara provided as they would like to use this
feature at NTL. Note that they reference the "enumeratedDomain" field, whereas
I htink we should be referencing the "attributeDomain" field instead so that any
of the domain types can be shared. It would make domain comparisons among
attributes very easy. Here's her example:
<attribute>
<attributeName>FLAG_AVG_AIR_TEMP</attributeName>
<attributeDefinition>data flag for air temperature</attributeDefinition>
<unit>
<customUnit>dimensionless</customUnit>
</unit>
<measurementScale>nominal</measurementScale>
<attributeDomain>
<enumeratedDomain id="enum.METFLAG" scope="document">
<codeList>
A
<definition>Data logger off</definition>
A?
<definition>Data logger off an indeterminate number of
hours</definition>
An
<definition>Data logger off n hours; daily averages may be in
error</definition>
B
<definition>Data logger off</definition>
C
<definition>Sensor off; missing value reported</definition>
D
<definition>Sensor malfunction produced bad values; values set
to missing;</definition>
E
<definition>Sensor noisy; values of uncertain quality</definition>
F
<definition>Sensor calibration error; correction factors have
been applied.</definition>
G
<definition>Sensor error; estimate made based on hourly
averages.</definition>
H
<definition>Data suspect; values outside of expected
range</definition>
I
<definition>Estimated from combining more than one record for
the day</definition>
J
<definition>Estimated from another met station.</definition>
K
<definition>Sensor malfunction produced bad values: data of
limited use.</definition>
L
<definition>Non standard routine followed</definition>
</codeList>
</enumeratedDomain>
</attributeDomain>
</attribute>
<attribute>
<attributeName>FLAG_AVG_DEWPOINT_TEMP</attributeName>
<attributeDefinition>data flag for dew point temperature
</attributeDefinition>
<unit>
<customUnit>dimensionless</customUnit>
</unit>
<measurementScale>nominal</measurementScale>
<attributeDomain><enumeratedDomain>
<references>enum.METFLAG</references>
</enumeratedDomain></attributeDomain>
</attribute>