Skip to content

MeshCoord should support a coordinate system #5562

@pp-mo

Description

@pp-mo

On general principles, since a MeshCoord is designed to be a "window" on other data, it should probably "have" the coord-system of the underlying coordinates from which it takes its values + metadata.

context in UGRID

At present, there is no agreed way of attaching a coordinate-system (i.e. grid-mapping) to coordinates of a mesh, since in CF that may only occur via a data-variable.

context in Iris

However, Iris considers the coord-system to be part of a Coord. So, it should make perfectly good sense for a coordinate of a Mesh to have one (though there is currently an apparent bug preventing it).
Likewise, it probably makes sense for the coord-system of a MeshCoord to always follow that of the associated node coordinates, as established for the other metadata.

Desired implementation:

Since a face- or edge-located MeshCoord takes its bounds from the (re-indexed) node_coordinates, and its points from the face_coordinates or edge_coordinates (which however are technically optional), it makes sense that the MeshCoord should inherit a coord_system from either of those -- and if different, that should probably be an error.
For now, the coord_system of a MeshCoord is always None, and must always be so.

Related

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions