#153: Requirements related to specific standard names
-----------------------------+------------------------------
Reporter: martin.juckes | Owner: cf-conventions@…
Type: enhancement | Status: new
Priority: medium | Milestone:
Component: cf-conventions | Version:
Resolution: | Keywords:
-----------------------------+------------------------------
Comment (by martin.juckes):
Hello Ros,
After looking at the schema of the standard name list, I've adapted that
for the rules, with typical entries of the form:
{{{
<rule id="moisture_content_of_soil_layer.boundAxis">
<description>The soil layer must be described by a bounds attribute
on a vertical coordinate.</description>
<target>moisture_content_of_soil_layer</target>
<requiredBoundAxis>Z</requiredBoundAxis>
</rule>
}}}
The "id" has to be unique, so may need to be extended beyond the standard
name which the rule is intended to apply to. Ideally, the target standard
name should be constrained by the schema to be in the CF list, but I
haven't implemented that yet. attachment:CF_Standard_Name_Rules.xml is a
demo XML document with 3 rules, and attachment:CF_Standard_Name_Rules.json
is the same in JSON. The schema for the XML is
attachment:CFStandardNameRules-1.1.xsd.
This approach makes it easier to impose the schema rules on the names of
the rules and the associated restrictions on the values (e.g.
"requiredBoundAxis" should take a value "X", "Y", ...).
cheers,
Martin
--
Ticket URL: <http://cf-trac.llnl.gov/trac/ticket/153#comment:13>
CF Metadata <http://cf-convention.github.io/>
CF Metadata