Skip to content

CML: Differentiate between dimension DimCoords and aux DimCoords #299

@pelson

Description

@pelson

As it stands, it is not possible to tell which "DimCoord" is the "dimension coordinate" of a dimension (too many dimensions, I apologise). For instance, with the following CML one cannot tell that forecast_period was not the dimensioned DimCoord:

<?xml version="1.0" ?>
<cubes xmlns="urn:x-iris:cubeml-0.2">
  <cube units="unknown">
    <coords>
      <coord>
        <dimCoord id="ca4300da" points="[0]" shape="(1,)" standard_name="forecast_period" units="Unit('1')" value_type="int32"/>
      </coord>
      <coord datadims="[0]">
        <dimCoord id="fe82bc89" points="[5, 10]" shape="(2,)" standard_name="forecast_reference_time" units="Unit('1')" value_type="int32"/>
      </coord>
      <coord datadims="[0]">
        <dimCoord bounds="[[5, 5],
                [10, 10]]" id="c2f882b5" points="[2, 5]" shape="(2,)" standard_name="time" units="Unit('1')" value_type="int32"/>
      </coord>
      <coord datadims="[2]">
        <dimCoord id="b0c4282a" long_name="x" points="[0, 1, 2, 3, 4]" shape="(5,)" units="Unit('1')" value_type="int32"/>
      </coord>
      <coord datadims="[1]">
        <dimCoord id="31e14d0d" long_name="y" points="[0, 1, 2, 3]" shape="(4,)" units="Unit('1')" value_type="int32"/>
      </coord>
    </coords>
    <cellMethods/>
    <data dtype="float32" shape="(2, 4, 5)" state="loaded"/>
  </cube>
</cubes>

Add this metadata & update the test results.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Experience: LowGood First IssueA good issue to take on if you're just getting started with Iris development

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions