-
Notifications
You must be signed in to change notification settings - Fork 286
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
Lazy regridding with Linear, Nearest, and AreaWeighted #3701
Conversation
This certainly looks promising. It seems like something Iris ought to have and we deffinitely appreciate the effort to getting this in. We'll see what we can do about coming to a decision on this and getting this reviewed. |
@stephenworsley This would be very useful, is there a decision from the iris team already? |
We hope to give this the attention it needs for Iris v3.1 |
@SciTools/iris-devs Why can't this be included for It's really going to massively help the ESMValTool community, and it's an all round win for the general community. Sadly this PR has been sitting here accruing zero value for almost 4 months |
I appreciate the frustration but we have already planned in as much as we can for delivering Iris 3.0 on time. We discussed this and several other items on 20/08, planned then allocated to 3.0 and 3.1 accordingly. |
@bouweandela You'll need to take this PR out of draft if you're keen to get this merged |
@trexfeathers Begs the question, when is (Apologies, I'm just being divisive. I don't expect you to answer that question, but we do need a more transparent release roadmap for the community... that's my main point here) |
0f91103
to
127b930
Compare
The pull request is now ready for review @bjlittle. If there is anything I can help out with to get this across the finish line, please let me know! |
Really neat work ! |
Thanks @pp-mo! I just added a whatsnew entry. Would this be good enough, or should it explain more? |
docs/iris/src/whatsnew/contributions_3.0.0/newfeature_2020-Sep-03_lazy_regridding.txt
Outdated
Show resolved
Hide resolved
I think that's pretty much enough actually. |
Co-authored-by: Patrick Peglar <patrick.peglar@metoffice.gov.uk>
lib/iris/cube.py
Outdated
* :class:`iris.analysis.UnstructuredNearest`, | ||
* :class:`iris.analysis.PointInCell`, | ||
* :class:`iris.experimental.regrid.ProjectedUnstructuredLinear`, | ||
* :class:`iris.experimental.regrid.ProjectedUnstructuredNearest`. |
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.
I found several more regridding schemes and added them here. Does that look right, or were they missing for a reason?
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.
I think this is out of date.
But also, we don't want to commit to the experimental ones.
So maybe it should omit those, and amend to say "The regridding schemes in Iris currently include:" ...
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.
Also.. if we extend this then the next section that you added "These regridding schemes support lazy regridding..." needs to change, as not all these schemes support it.
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.
I removed the experimental regridders and changed the section in the user guide so it explicitly mentions which regridding schemes are lazy.
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.
I did not add a section or mention of the UnstructeredNearest or PointInCell schemes to the user guide, because I would not feel qualified to write such a section and I also feel that it would be beyond the scope of this pull request.
@pp-mo I added a section in the Regridding chapter in the user guide and a note about whether a regridding scheme is lazy or not to all regridders I could find. Does that look better or is it too much? Is there anywhere else you would expect to see documentation of the feature? |
No, I think this looks great really. |
Thank you for reviewing again @pp-mo! If you require any further adjustments, please let me know. |
@bouweandela We've just been experimenting with the GitHub actions/labeler to automatically label new pull requests, see #3819. It appears to have failed for you PR (sorry about that!) which existed prior to #3819 being merged... so I was wondering whether you could rebase from Cheers! 😄 |
@bjlittle It looks like you deleted the labeler action again from the master branch, is this question still relevant? I suspect that the action failed because of actions/labeler#36 (comment). |
@bouweandela Apologies for the carnage... we were having major problems with that GitHub action. So much so that it was basically failing on all PRs, which is very not cool. So we pulled it out, since it's not stable, sorry for the flip-flopping. @pp-mo Otherwise, it's totally okay for this PR to be merged with the labeler action failing - don't let that be a barrier to this PR not being merged |
I think this is really awesome work @bouweandela ! 👍 💐 My only remaining problem is with the whatsnew file : since we have totally changed the whatsnew contribution scheme, merging this will re-introduce a 'contributions folder' + mess it up. But rather than make you jump through more hoops, I will merge this and post a new PR to fix that. |
See #3834 |
* master: Rework whatsnew into new scheme. (SciTools#3834) Lazy regridding with Linear, Nearest, and AreaWeighted (SciTools#3701) Iris readme minimal (SciTools#3833)
* master: (36 commits) Rework whatsnew into new scheme. (SciTools#3834) Lazy regridding with Linear, Nearest, and AreaWeighted (SciTools#3701) Iris readme minimal (SciTools#3833) Fix sphinx logger (SciTools#3832) whatsnew entry for dependencies (SciTools#3831) Added link to scitools.org.uk on the main index. (SciTools#3830) Updated Iris install instructions (SciTools#3817) Delete labeler.yml Delete label.yml Create label.yml Delete labeler.yml Update labeler.yml Update labeler.yml Add template collapsible markdown section (SciTools#3823) Requirements re-haul (SciTools#3812) Automate pull request labels (SciTools#3819) move whatsnew contributions (SciTools#3816) Parse with packaging version (SciTools#3815) Add "What's New" entries for unpinning Cartopy, Matplotlib, Proj (SciTools#3811) tidy issue templates (SciTools#3814) ...
This pull request implements lazy regridding for the Linear, Nearest, and AreaWeighted regridders.
Closes #3700