Add CORDEX domain target grids for regridding#3096
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3096 +/- ##
==========================================
+ Coverage 96.22% 96.24% +0.01%
==========================================
Files 273 273
Lines 16150 16175 +25
==========================================
+ Hits 15541 15568 +27
+ Misses 609 607 -2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Looks like a great start! Could you take a look at the checklist? A few things to do would be
- sign the CLA
- add a unit test
- add documentation
Usually you can find advice on how to go about that in the pull request template, but in case you missed it you can find it here: https://github.com/ESMValGroup/ESMValCore/blob/main/.github/pull_request_template.md
…ion and streamline coordinate handling
This update introduces a new section in the preprocessor documentation detailing how to regrid to standard CORDEX domains using the `target_grid` parameter. An example configuration for the `EUR-11` domain is provided, clarifying the use of domain names recognized by the `cordex` package.
|
Hi @bouweandela , Please provide another review. Not sure why the workflow commit is failing! |
|
Hi @bouweandela , I found that in case of : in this line, it's failing due to no having bounds ESMValCore/esmvalcore/preprocessor/_regrid.py Line 1017 in ddd67d7 A possible solution could be like adding this: what do you think? |
Should be fixed by #3104 |
|
Regarding the no-bounds issue: this seems unrelated to the changes in this pull request, so it would be great if you could open a new issue for this. We can then make a plan for how to solve it there and tackle it in a new pull request. |
There was a problem hiding this comment.
Nice progress @ghossh! I've pasted the checklist back in the pull request description to make it easier for myself to remember what to look for. A few more things to do would be to add a label to the pull request (e.g. preprocessor) and add yourself to the list of authors. Could you please also update the branch so coverage is uploaded again and I can see which lines of code have coverage.
I forgot, but it looks like I did something on this two months ago in 8d24d14 |
…grid-cordex-domain
Co-authored-by: Bouwe Andela <b.andela@esciencecenter.nl>
…reamline checks for CORDEX domains and improve readability.
…improve attribute management for CORDEX grids. Update regrid documentation to clarify support for CORDEX domain names.
…es, allowing users to specify domains like ``EUR-11``. This improves clarity on the options available for target grid specifications.
- Introduced a new test to validate that non-string inputs are rejected by the CORDEX domain detection. - Updated existing tests to ensure proper handling of CORDEX domains in target grid construction and validation. - Removed redundant tests that were previously validating CORDEX domain acceptance in the update target grid function.
…target_grid` - Introduced a new test to ensure that regional dictionary target grids are validated correctly during the update process. - This enhances the coverage of the regrid functionality, particularly for CORDEX datasets.
…necessary fields. Adjust ORCID format for existing authors and add publication date for version v2.15.0rc3.
Description
Adds support for using standard CORDEX domain names, such as
EUR-11, astarget_gridvalues in theregridpreprocessor.Previously,
target_grid: EUR-11was treated as anMxNgrid specification and failed with:Closes #3088
Link to documentation:
https://esmvaltool--3096.org.readthedocs.build/projects/ESMValCore/en/3096/recipe/preprocessor.html#regridding-on-a-cordex-domain-grid
Checklist
It is the responsibility of the author to make sure the pull request is ready to review. The icons indicate whether the item will be subject to the 🛠 Technical or 🧪 Scientific review.