Skip to content

Include unit information in CodeFlag.xml #380

Description

@lesserwhirls

Details

Similar to #314, previous versions of the CodeFlag.xml file included unit information in a UnitComments_en element, e.g.:

<GRIB2_22_0_0_CodeFlag_exp_en>
  <No>520</No>
  <Title_en>Code table 4.2 - Parameter number by product discipline and parameter category</Title_en>
  <SubTitle_en>Product discipline 0 - Meteorological products, parameter category 1: moisture</SubTitle_en>
  <CodeFlag>97</CodeFlag>
  <MeaningParameterDescription_en>Mass density of snow</MeaningParameterDescription_en>
  <UnitComments_en>kg m-3</UnitComments_en>
  <ElementDescription_en>Mass of particles per unit volume of air</ElementDescription_en>
  <Status>Operational</Status>
</GRIB2_22_0_0_CodeFlag_exp_en>

The UnitComments_en field still exists in the CodeFlag.txt file. Would it be possible to add that field back to the xml document? As with the <SubTitle_en>, empty elements would be ok (e.g. <UnitComments_en/>). I'd be happy to make the pull request (should be as simple as adding that field to the list of XML elements, I think?):

xml_elements=["Title_en","SubTitle_en","CodeFlag","MeaningParameterDescription_en","Status"]

Requestor

Sean Arms (NSF Unidata), @lesserwhirls

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions