Skip to content

Face Geometry Variable for Mixed-Topology Grids  #193

Closed

Description

@philipc2

#189 discusses multiple approaches to handling the_FillValue, which is used to to indicate faces with fewer nodes than MaxNumNodesPerFace for a mixed-topology grid (UGRID Conventions) Adtionally, if a face has fewer corners/edges than MaxNumNodesPerFace then the last face (column) indices shall be equal to _FillValue.

From what I've read, there doesn't appear to be a variable in the UGRID conventions that specifies the geometry of each face. However, knowing what geometry is constructed from each face is important for proper indexing and for creating geometries for visualization or locating the first instance of a _FillValue. See the figure below:

gitt

In this example, we have a mixed topology with MaxNumNodesPerFace = 6. Proposed in the introduction of a new variable i.e. Mesh2_face_geometry which would contain the geometry of each face based on the location of _FillValue. Alternately, the value representing each face would act as a maximum index for slicing, used to only return the values representing our geometry (no _FillValue is returned)

Activity

  1. added
    new feature
    on Dec 23, 2022
  2. self-assigned this
    on Mar 30, 2023
  3. kjnam commented on Apr 6, 2023

    @kjnam
    Contributor

    Hi, Philip. We use a hybrid grid, and this would be a nice (and a necessary) feature for us. Adding a new uxarray variable seems OK if it makes the code efficient.

  4. added this to the Grid Topology milestone on Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

new feature

Type

No type

Fields

Priority

None yet

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions