Skip to content
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

Basic regrid operator #405

Merged
merged 36 commits into from
Apr 5, 2024
Merged

Basic regrid operator #405

merged 36 commits into from
Apr 5, 2024

Conversation

jwarner8
Copy link
Contributor

@jwarner8 jwarner8 commented Mar 1, 2024

New operators and test to regrid basic rectilinear Geos data using a Linear regridder, with capacity to be expanded to handle other grids/new regrid methods.

Fixes #154

Copy link
Contributor

github-actions bot commented Mar 1, 2024

Coverage

@jwarner8
Copy link
Contributor Author

jwarner8 commented Mar 1, 2024

There is some repetition within both operators in determining the x,y coordinate names. We might want to have this as a separate operator/utility?

@jwarner8 jwarner8 requested a review from jfrost-mo March 1, 2024 00:38
@jfrost-mo jfrost-mo changed the title 154 basic regrid operator Basic regrid operator Mar 1, 2024
Copy link
Member

@jfrost-mo jfrost-mo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looking like a solid addition to CSET capability, and one that will be very useful going forwards.

I've noted some things that need tweaking, along with some things I would like additional documentation for, and wanting some additional tests. I'm happy to discuss how to go about these various things.

tests/operators/test_regrid.py Outdated Show resolved Hide resolved
src/CSET/operators/regrid.py Outdated Show resolved Hide resolved
src/CSET/operators/regrid.py Outdated Show resolved Hide resolved
src/CSET/operators/regrid.py Outdated Show resolved Hide resolved
src/CSET/operators/regrid.py Outdated Show resolved Hide resolved
src/CSET/operators/regrid.py Outdated Show resolved Hide resolved
src/CSET/operators/regrid.py Outdated Show resolved Hide resolved
src/CSET/operators/regrid.py Outdated Show resolved Hide resolved
src/CSET/operators/regrid.py Outdated Show resolved Hide resolved
src/CSET/operators/regrid.py Outdated Show resolved Hide resolved
jwarner8 and others added 10 commits March 20, 2024 14:44
tidy docstring

Co-authored-by: James Frost <james.frost@metoffice.gov.uk>
update copyright

Co-authored-by: James Frost <james.frost@metoffice.gov.uk>
update docstring

Co-authored-by: James Frost <james.frost@metoffice.gov.uk>
Co-authored-by: James Frost <james.frost@metoffice.gov.uk>
tests/operators/test_regrid.py Outdated Show resolved Hide resolved
tests/operators/test_regrid.py Outdated Show resolved Hide resolved
src/CSET/operators/regrid.py Outdated Show resolved Hide resolved
src/CSET/operators/regrid.py Outdated Show resolved Hide resolved
Copy link
Member

@jfrost-mo jfrost-mo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there is a small logic error causing all supported cubes to be rejected.

src/CSET/operators/regrid.py Outdated Show resolved Hide resolved
src/CSET/operators/regrid.py Outdated Show resolved Hide resolved
@jfrost-mo jfrost-mo added the enhancement New feature or request label Mar 28, 2024
@jfrost-mo
Copy link
Member

I'm not sure why the pre-commit check was not failing locally, but I've fixed it manually.

@jwarner8 jwarner8 requested a review from jfrost-mo April 5, 2024 09:48
Copy link
Member

@jfrost-mo jfrost-mo left a 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.

@jwarner8 jwarner8 merged commit 02cc054 into main Apr 5, 2024
8 checks passed
@jwarner8 jwarner8 deleted the 154_basic_regrid_operator branch April 5, 2024 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Regrid operator
2 participants