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

Add functionality to filter by region #522

Merged
merged 18 commits into from
May 10, 2024
Merged

Conversation

dasha-shchep
Copy link
Contributor

@dasha-shchep dasha-shchep commented Apr 23, 2024

Description

This branch enables the user to filter the data by geographic region defined in a shapefile (geospatial vector data) format.

Fixes #400

Contribution checklist

Aim to have all relevant checks ticked off before merging. See the developer's guide for more detail.

  • Documentation has been updated to reflect change.
  • New code has tests, and affected old tests have been updated.
  • All tests and CI checks pass.
  • Added an entry to the top of docs/source/changelog.rst
  • Conda lock files have been updated if dependencies changed.
  • Marked the PR as ready to review.

@dasha-shchep dasha-shchep self-assigned this Apr 23, 2024
@dasha-shchep dasha-shchep added the enhancement New feature or request label Apr 23, 2024
Copy link
Contributor

github-actions bot commented Apr 23, 2024

Coverage

@dasha-shchep dasha-shchep marked this pull request as ready for review May 2, 2024 14:52
@jfrost-mo jfrost-mo changed the title #400 Add functionality to filter by region Add functionality to filter by region May 10, 2024
@jfrost-mo jfrost-mo self-requested a review May 10, 2024 10:07
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 good. I've made some small suggestions and asked a couple questions, but they shouldn't take long.

Once their addressed hit me up for a re-review and I can go ahead and approve it.

cset-workflow/meta/rose-meta.conf Outdated Show resolved Hide resolved
src/CSET/operators/constraints.py Show resolved Hide resolved
src/CSET/operators/constraints.py Outdated Show resolved Hide resolved
tests/operators/test_read_shapefile.py Outdated Show resolved Hide resolved
tests/test_data/shapefiles/LICENSE Outdated Show resolved Hide resolved
tests/test_data/air_temp.nc.aux.xml Outdated Show resolved Hide resolved
@dasha-shchep
Copy link
Contributor Author

@jfrost-mo think I'm done, let me know if you've got any other comments

@jfrost-mo jfrost-mo self-requested a review May 10, 2024 11:50
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.

Thanks for addressing the feedback. The only question I've got left is what is tests/test_data/air_temp.nc.aux.xml used for? I can't find any other references to it in the code.

tests/test_data/air_temp.nc.aux.xml Outdated Show resolved Hide resolved
@jfrost-mo
Copy link
Member

I'll go ahead and merge then.

@jfrost-mo jfrost-mo force-pushed the 400_support_filtering_to_region branch from fba2732 to a9d541a Compare May 10, 2024 12:45
dasha-shchep and others added 18 commits May 10, 2024 13:54
…_time_series.cylc

Co-authored-by: James Frost <james.frost@metoffice.gov.uk>
…_time_series.cylc

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

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

Co-authored-by: James Frost <james.frost@metoffice.gov.uk>
Co-authored-by: James Frost <james.frost@metoffice.gov.uk>
Co-authored-by: James Frost <james.frost@metoffice.gov.uk>
Co-authored-by: James Frost <james.frost@metoffice.gov.uk>
Co-authored-by: James Frost <james.frost@metoffice.gov.uk>
Co-authored-by: James Frost <james.frost@metoffice.gov.uk>
@jfrost-mo jfrost-mo force-pushed the 400_support_filtering_to_region branch from a9d541a to 54a1b6c Compare May 10, 2024 12:55
@jfrost-mo jfrost-mo merged commit 244f64d into main May 10, 2024
7 checks passed
@jfrost-mo jfrost-mo deleted the 400_support_filtering_to_region branch May 10, 2024 12:57
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.

Support filtering to lat and lon
2 participants