Skip to content

Test get_geo_corners and its ValueError if (lon, lat) missing#44

Merged
hdrake merged 2 commits into
MOM6-community:masterfrom
hdrake:raise-errors
Mar 18, 2026
Merged

Test get_geo_corners and its ValueError if (lon, lat) missing#44
hdrake merged 2 commits into
MOM6-community:masterfrom
hdrake:raise-errors

Conversation

@hdrake

@hdrake hdrake commented Mar 18, 2026

Copy link
Copy Markdown
Member

Thanks to @jkrasting for pointing out that if the longitude/latitude coordinate variables are missing from the dataset, then get_geo_corners raises a confusing IndexError.

Instead, we now explicitly raise an error if the function fails to automatically find the lon and lat coordinates, with instructions for how these should be provided.

@hdrake hdrake merged commit 4b5611b into MOM6-community:master Mar 18, 2026
5 checks passed
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