Skip to content

Copy additional coordinates when regridding#3048

Draft
bouweandela wants to merge 2 commits intomainfrom
regrid-copy-additional-coords
Draft

Copy additional coordinates when regridding#3048
bouweandela wants to merge 2 commits intomainfrom
regrid-copy-additional-coords

Conversation

@bouweandela
Copy link
Copy Markdown
Member

Description

The regrid preprocessor function regrids one set of coordinates to another. However, CORDEX data typically has two coordinates: rotated_latitude/rotated_longitude or projection_y_coordinate/projection_x_coordinate as a iris.coords.DimCoord and latitude/longitude as an additional iris.coords.AuxCoord. The changes in this pull request ensure that if the target grid has multiple coordinates, these will be available on the regridded cube, even if only one set is used for the regridding.

Closes #2839

Link to documentation:


Before you get started

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.


To help with the number pull requests:

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 22, 2026

Codecov Report

❌ Patch coverage is 86.20690% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 96.13%. Comparing base (df77d1b) to head (8d24d14).

Files with missing lines Patch % Lines
esmvalcore/preprocessor/_regrid.py 86.20% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3048      +/-   ##
==========================================
- Coverage   96.15%   96.13%   -0.03%     
==========================================
  Files         270      270              
  Lines       15805    15822      +17     
==========================================
+ Hits        15197    15210      +13     
- Misses        608      612       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

regrid pre-processor removes coordinates that may be useful

1 participant