Skip to content

Vertical Search for unstructured Grids #2031

@fluidnumericsJoe

Description

@fluidnumericsJoe

An interesting, subtle issue with the UxArray.uxgrid has turned up and impacts our move to pushing search underneath the XGrid and UXGrid classes. The UxArray.uxgrid class does not contain information about the vertical grid at all; instead it holds information about the lateral unstructured grid only.

tests/v4/test_uxarray_fieldset.py::test_fesom2_square_delaunay_uniform_z_coordinate_eval <uxarray.Grid>
Original Grid Type: regional_delaunay
Grid Dimensions:
  * n_node: 400
  * n_face: 721
  * n_max_face_nodes: 3
Grid Coordinates (Spherical):
  * node_lon: (400,)
  * node_lat: (400,)
Grid Coordinates (Cartesian):
Grid Connectivity Variables:
  * face_node_connectivity: (721, 3)
Grid Descriptor Variables:

The vertical grid is housed in the DataArray as a dimension and coordinate. There are typically two options for the vertical grid dimension that are relevant, depending on whether the Field is centered on vertical layers or placed at vertical layer faces.

Within our UxGrid object, I'd propose that we require a vertical dimension to be passed in during construction. We should assume that the vertical dimension is the vertical layer faces (in uxarray this is the nz dimension); the layer centers can be easily calculated on the fly. This would enable vertical searching

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions