Allow MeshCoord to have a coord-system#6016
Merged
stephenworsley merged 7 commits intoSciTools:mainfrom Jul 17, 2024
Merged
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. |
This was
linked to
issues
Jun 20, 2024
pp-mo
commented
Jun 23, 2024
stephenworsley
requested changes
Jul 16, 2024
Member
Author
|
Thanks @stephenworsley |
tkknight
added a commit
to tkknight/iris
that referenced
this pull request
Jul 18, 2024
* 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)
stephenworsley
added a commit
to stephenworsley/iris
that referenced
this pull request
Jul 18, 2024
* 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 file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_coordinatein 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