ESMValGroup / ESMValCore

ESMValCore: A community tool for pre-processing data from Earth system models in CMIP and running analysis scripts.
https://www.esmvaltool.org
Apache License 2.0
40 stars 36 forks source link

Add an iris-esmf-regrid based regridding scheme #2457

Open bouweandela opened 1 month ago

bouweandela commented 1 month ago

Description

Add an iris-esmf-regrid-based regridding scheme and use it as the default scheme for unstructured grids when linear or area_weighted is specified in the recipe. For nearest, we need wait for https://github.com/SciTools-incubator/iris-esmf-regrid/pull/276 and https://github.com/SciTools-incubator/iris-esmf-regrid/pull/369 and a new release of iris-esmf-regrid before this is useful.

Example usage (as generic scheme) in preprocessor in recipe:

regrid:
  target_grid: 1x1
  scheme:
    reference: esmvalcore.preprocessor.regrid_schemes:IrisESMFRegrid
    method: bilinear
    mdtol: 0.7

Example plots for regridding 2D variable tos to a 1x1 degree grid are available here. Example plots for regridding 3D variable thetao to a 1x1 degree grid and subsequently extracting the 500m depth level are available here.

Part of #2405.

Links 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[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 94.65%. Comparing base (15dc3a0) to head (bd84fa9).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #2457 +/- ## ========================================== + Coverage 94.64% 94.65% +0.01% ========================================== Files 249 250 +1 Lines 14114 14179 +65 ========================================== + Hits 13358 13421 +63 - Misses 756 758 +2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.