-
Notifications
You must be signed in to change notification settings - Fork 300
iris.analysis.AreaWeighted regrid speedup
#4400
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
iris.analysis.AreaWeighted regrid speedup
#4400
Conversation
|
More details on the changes in
|
stephenworsley
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.
Looks good so far, just a couple comments for the time being.
lib/iris/tests/unit/analysis/area_weighted/test_AreaWeightedRegridder.py
Outdated
Show resolved
Hide resolved
71de834 to
60fbd23
Compare
|
From the benchmarking CI: 😍 |
|
Am I reading this right? GloSea regridding will potentially run ~20 times faster? |
|
When they pass in lazy data, yes @rcomer (I believe they're currently doing similar regrids by first realising the data as a workaround for this having previously been so slow) |
|
That's awesome, thanks @wjbenfold! 🤩 |
5816898 to
31b05a5
Compare
lib/iris/tests/unit/analysis/area_weighted/test_AreaWeightedRegridder.py
Outdated
Show resolved
Hide resolved
stephenworsley
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.
Looks good to me.
|
Well done @wjbenfold and @stephenworsley, really great to see this massive improvement in performance 💨 |
…array construction and src_cube index construction into prepare step
a2f7b7f to
b60b6ad
Compare
|
On behalf of Team GloSea, thanks for all your work on this @wjbenfold @stephenworsley . |
* main: (23 commits) Suggest type hinting (SciTools#4390) area weight regrid test fixes (SciTools#4432) Update latest.rst (SciTools#4425) Added @wjbenfold to the core dev list (SciTools#4423) Removed addition of period from wrap_lons. (SciTools#4421) Add release docs sections describing the role of a Release Manager (SciTools#4413) Subset should always return None if no value matches are found (SciTools#4417) What's new for SciTools#4400 (SciTools#4422) `iris.analysis.AreaWeighted` regrid speedup (SciTools#4400) [pre-commit.ci] pre-commit autoupdate (SciTools#4419) Remove newline to satisfy setuptools (SciTools#4418) Updated environment lockfiles (SciTools#4416) NAME loader fixes (SciTools#4411) Updated whatsnew for PR 4402 (SciTools#4410) Support test data in benchmark workflows (SciTools#4402) What's new for pr 4387 (SciTools#4405) Make concat mismatch warning for scalar coords more accurate (SciTools#4387) Added line to latest release notes for updates to pp_save_rules.py (SciTools#4404) Update pp_save_rules.py (SciTools#4391) [pre-commit.ci] pre-commit autoupdate (SciTools#4403) ...
🚀 Pull Request
Description
Aiming to speed up the regridding of chunked data with
iris.analysis.AreaWeightedregridderMoving more weight construction and construction of indices to be applied to the regridded cube all into the prepare step of the regridder, rather than the perform step (which gets repeated on chunked data)
See #4280 for context
To do:
Consult Iris pull request check list