Skip to content

Accept polygon-vertex bounds in VAR004 shape check#38

Open
JanStreffing wants to merge 1 commit into
ESGF:masterfrom
JanStreffing:fix/var004-allow-polygon-bounds
Open

Accept polygon-vertex bounds in VAR004 shape check#38
JanStreffing wants to merge 1 commit into
ESGF:masterfrom
JanStreffing:fix/var004-allow-polygon-bounds

Conversation

@JanStreffing
Copy link
Copy Markdown

CF 1.11 §7.1 allows interval bounds (n, 2) or polygon-vertex bounds (n, m) with m >= 2 for unstructured grids where each cell is a polygon. The previous shape check hard-rejected any m != 2, producing mandatory VAR004 failures on otherwise-compliant FESOM2 / ICON / MPAS output where lat_bnds/lon_bnds carry polygon vertex coordinates.

Relax the shape check to require shape[1] >= 2. Applied to both CMIP6 and CMIP7 plugin paths to keep them in sync.

CF 1.11 §7.1 allows interval bounds (n, 2) *or* polygon-vertex bounds
(n, m) with m >= 2 for unstructured grids where each cell is a polygon.
The previous shape check hard-rejected any m != 2, producing mandatory
VAR004 failures on otherwise-compliant FESOM2 / ICON / MPAS output where
lat_bnds/lon_bnds carry polygon vertex coordinates.

Relax the shape check to require shape[1] >= 2. Applied to both CMIP6
and CMIP7 plugin paths to keep them in sync.
@JanStreffing
Copy link
Copy Markdown
Author

Any updates on this review?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant