-
Notifications
You must be signed in to change notification settings - Fork 300
Refactor shape masking #6129
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
Refactor shape masking #6129
Conversation
|
From @SciTools/peloton : discussed what we are seeing here and in #6126. |
|
Discussion with @acchamber notes:
|
|
What are @SciTools/peloton (@pp-mo) thoughts about adding This would facilitate better handling of shapes to rasters (which is essentially the problem we're solving) with the added bonus that we could also mask to other shape types, like lines, to extract a trajectory from a Cube, for example. |
I was planning on going to the AVD surgery this week to discuss some changes and/or make the case for rasterio |
|
Thanks for your patience everyone. It's sometimes a struggle to balance everything and we just haven't had an opportunity to discuss this. Coming to the Surgery (UK Met Office) is an ideal next step. |
|
@pp-mo, @trexfeathers and @stephenworsley have discussed this at the Surgery and agree in principle that we could consider adding rasterio as an optional dependency. |
|
From @SciTools/peloton: would @hsteptoe and @acchamber appreciate any more input from core devs at this point? |
I just need to find more time, which is in short supply as we get near the end of FY... |
|
This is now ready for some initial (alpha?) testing 🎉. @acchamber are you available to try out the new features? (Updates to docs etc. will follow if this is successful) Tests are incomplete are should not be review yet. This is a fairly substantial re-write. New/improved features include:
There are some breaking changes, principally moving away from having a My informal tests so far show working behaviour for iris test data from |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6129 +/- ##
==========================================
+ Coverage 90.30% 90.36% +0.05%
==========================================
Files 91 91
Lines 24674 24720 +46
Branches 4623 4632 +9
==========================================
+ Hits 22282 22337 +55
+ Misses 1620 1610 -10
- Partials 772 773 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
⏱️ Performance Benchmark Report: b6002b8Performance shiftsFull benchmark resultsGenerated by GHA run |
trexfeathers
left a comment
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.
End-of-review! Thanks again @hsteptoe
⏱️ Performance Benchmark Report: 014dfd9Performance shiftsFull benchmark resultsGenerated by GHA run |
⏱️ Performance Benchmark Report: ac2074cPerformance shiftsFull benchmark resultsGenerated by GHA run |
⏱️ Performance Benchmark Report: d2f5052Performance shiftsFull benchmark resultsGenerated by GHA run |
trexfeathers
left a comment
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.
Getting very close now!
trexfeathers
left a comment
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.
Superb work @hsteptoe. This has been a real odyssey. Will be a great addition to the 3.14 release.
⏱️ Performance Benchmark Report: 0576227Performance shiftsFull benchmark resultsGenerated by GHA run |
This request was triggered by changes to pyproject.toml, which may have needed an update to the pyproject.toml template as well. Owing to uncertainty around templating, the pyproject.toml changes were backed out.
|
@acchamber @markgrahamdawson @mo-DanCubbon Confirming that the new shape masking will be available in Iris 3.14 🎉 |
@trexfeathers Thanks for all your help and advice in getting it over the line 🙌 |
🚀 Pull Request
Description
Fixes #6126 by exposing the shape geometry to the user. Adds to docs and docstrings to make it clearer how to use this.
Consult Iris pull request check list
Add any of the below labels to trigger actions on this PR: