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 xESMF regridder #2433

Open bouweandela opened 1 month ago

bouweandela commented 1 month ago

Description

Add xESMF regriding scheme for the regrid preprocessor.

Example usage in preprocessor in recipe:

regrid:
  target_grid: 1x1
  scheme:
    reference: esmvalcore.preprocessor.regrid_schemes:xESMF
    method: bilinear
    periodic: true

Link to documentation: https://esmvaltool--2433.org.readthedocs.build/projects/ESMValCore/en/2433/api/esmvalcore.regridding_schemes.html#esmvalcore.preprocessor.regrid_schemes.xESMF


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

Attention: Patch coverage is 33.33333% with 26 lines in your changes are missing coverage. Please review.

Project coverage is 94.34%. Comparing base (2fc8761) to head (b639462).

Files Patch % Lines
esmvalcore/preprocessor/_regrid_xesmf.py 31.57% 26 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #2433 +/- ## ========================================== - Coverage 94.51% 94.34% -0.17% ========================================== Files 246 247 +1 Lines 14023 14062 +39 ========================================== + Hits 13254 13267 +13 - Misses 769 795 +26 ```

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

flicj191 commented 1 month ago

message for myself @flicj191 as I want to try to use this regridder. let me know if you would like me to do anything