-
Notifications
You must be signed in to change notification settings - Fork 291
Allow MeshCoord to have a coord-system #6016
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…() to respect that.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6016 +/- ##
==========================================
- Coverage 89.77% 89.76% -0.01%
==========================================
Files 90 90
Lines 22984 22991 +7
Branches 5031 5031
==========================================
+ Hits 20634 20639 +5
- Misses 1619 1621 +2
Partials 731 731 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good, I think the main thing I'd like to be sure of is that this point about the copy operation being fixed now is properly tested and documented.
Thanks @stephenworsley |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
* upstream/main: Quieter datum warning (SciTools#6050) Allow MeshCoord to have a coord-system (SciTools#6016) Bump scitools/workflows from 2024.07.1 to 2024.07.2 (SciTools#6053) Faster concatenation of cubes with `AuxCoordFactory`s (SciTools#6038) Shorten cube iterator tests (SciTools#6041) Bump scitools/workflows from 2024.07.0 to 2024.07.1 (SciTools#6045) Bump scitools/workflows from 2024.06.5 to 2024.07.0 (SciTools#6034) Update test_Saver__ugrid.py (SciTools#6017) NEP29 and NumPy v2 pins (SciTools#6039) Adapt setup.py for pypa/setuptools@2db55275f. (SciTools#6036) Replace DelegatedConda with Delegated (SciTools#5963) Enable type hint checking (SciTools#5956) Bump scitools/workflows from 2024.06.4 to 2024.06.5 (SciTools#6026) Do not realize cell measures and ancillary variables in concatenate (SciTools#6010) [pre-commit.ci] pre-commit autoupdate (SciTools#6022) Bump scitools/workflows from 2024.06.3 to 2024.06.4 (SciTools#6018)
* main: Quieter datum warning (SciTools#6050) Allow MeshCoord to have a coord-system (SciTools#6016) Bump scitools/workflows from 2024.07.1 to 2024.07.2 (SciTools#6053)
This makes a MeshCoord have the coord-system of the appropriate location coordinate.
Note though that, as loaded from NetCDF-CF, location coords can't actually have a coord-system at present.
Because the load rules only call
build_auxiliary_coordinate
in one place, and a coord-system (though supported) is never passed :In CF terms, this is because mesh coords are (at best) aux-coords of the data variable, and never dimension coords.
And a grid-mapping can currently only apply to dim-coords, because we don't yet support the extended grid-mapping syntax
However ... this does fix the copy error caused by a manually added coord-system