Add an xarray data source with ERA5 zarr example configurations - #3179
Add an xarray data source with ERA5 zarr example configurations#3179bouweandela wants to merge 5 commits into
Conversation
Codecov Report❌ Patch coverage is
❌ Your patch check has failed because the patch coverage (60.81%) is below the target coverage (100.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #3179 +/- ##
==========================================
- Coverage 96.39% 96.23% -0.17%
==========================================
Files 280 281 +1
Lines 16248 16322 +74
==========================================
+ Hits 15663 15708 +45
- Misses 585 614 +29 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Thanks for adding this! Got some prototypes working with eWaterCycle forcing generation. The main limitation now is the available variables from the CDS, as Google's data has the wrong chunking strategy for our use case. |
|
Thanks for testing @BSchilperoort! It looks like (remote) zarr support will be available in Iris soon SciTools/iris#6961, so it may be possible to implement this without using Xarray. Note to self, the following topics need further investigation:
|
Description
Example usage:
Run
or
to configure the data source. For the Climate Data Store, edit the file
~/.config/esmvaltool/data-cds-era5.ymlto enter your CDS API key.CMORized ERA5 data can then be loaded with:
or similar from a recipe. Inspiration on how to populate the
variableskey that maps between ERA5 and CMIP6 names can be found in recipe_daily_era5.yml.Related to #2584
Link to documentation: https://esmvaltool--3179.org.readthedocs.build/projects/ESMValCore/en/3179/api/esmvalcore.io.xarray.html
Maybe we need to add the dependencies needed for various data sources as extras to avoid bloating our dependencies. Here
gcsfsis needed to access data from Google Cloud Storage, but in #2917 we needxcube, and in #2690 we needintake-esm, etc.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: