Skip to content

REF recipe CRE with CMIP7 data#4461

Merged
axel-lauer merged 12 commits into
mainfrom
test_REF_cre_recipe_with_CMIP7data
Jun 1, 2026
Merged

REF recipe CRE with CMIP7 data#4461
axel-lauer merged 12 commits into
mainfrom
test_REF_cre_recipe_with_CMIP7data

Conversation

@hb326

@hb326 hb326 commented May 18, 2026

Copy link
Copy Markdown
Contributor

Description

Recipe update (and tests) to work with CMIP7 data and the CMIP7 time range, and using the obs4MIPs version of the CERES-EBAF observations.


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.

New or updated recipe/diagnostic

New or updated data reformatting script


To help with the number of pull requests:

@hb326 hb326 requested review from LisaBock and bouweandela May 18, 2026 14:51
@hb326 hb326 marked this pull request as ready for review May 18, 2026 14:51
@hb326 hb326 added the REF Important for the CMIP Rapid Evaluation Framework (REF) label May 18, 2026
Comment thread esmvaltool/recipes/ref/recipe_ref_cre_cmip7.yml Outdated
Comment thread esmvaltool/recipes/ref/recipe_ref_cre_cmip7.yml Outdated
Comment thread esmvaltool/recipes/ref/recipe_ref_cre_cmip7.yml Outdated
Comment thread esmvaltool/recipes/ref/recipe_ref_cre_cmip7.yml Outdated
Comment thread esmvaltool/recipes/ref/recipe_ref_cre_cmip7.yml Outdated
@bouweandela

Copy link
Copy Markdown
Member

I noticed there is a version CERES-EBAF-4-2-1 available on ESGF too now. Not sure how that differs from CERES-EBAF-4-2.

hb326 and others added 6 commits May 20, 2026 13:48
Co-authored-by: Bouwe Andela <b.andela@esciencecenter.nl>
Co-authored-by: Bouwe Andela <b.andela@esciencecenter.nl>
Co-authored-by: Bouwe Andela <b.andela@esciencecenter.nl>
Co-authored-by: Bouwe Andela <b.andela@esciencecenter.nl>
Adjusting the time range in the recipe to cover the last 20 years of the CMIP7 historical period.

@bouweandela bouweandela left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested this recipe with the ref in Climate-REF/climate-ref#683 and it seems to work fine.

@hb326

hb326 commented May 20, 2026

Copy link
Copy Markdown
Contributor Author

I noticed there is a version CERES-EBAF-4-2-1 available on ESGF too now. Not sure how that differs from CERES-EBAF-4-2.

Let me check that quickly. I have just seen that new dataset as well.

@hb326

hb326 commented May 21, 2026

Copy link
Copy Markdown
Contributor Author

Something fishy is going on...
I tested the recipe again with CERES-EBAF-4-2 data and it crashed with the error message:
ValueError: "valid_min" is not of a suitable value (0.00000)

The recipe ran last week just fine with the updated main branch of ESMValCore.
Then I tested the recipe with CERES-EBAF-4-2-1 data, and the recipe ran through fine. However, the data look funky. The data for "swcre" is totally different then the model, and when I look at the header of the preprocessed file, there is a "valid_min" value added that cuts of the data at "0.0" which removes all the data that is supposed to be negative...

netcdf obs4MIPs_CERES-EBAF-4-2-1_swcre_2002-2021 {
dimensions:
lat = 180 ;
lon = 360 ;
bnds = 2 ;
variables:
float swcre(lat, lon) ;
swcre:_FillValue = 1.e+20f ;
swcre:long_name = "TOA Shortwave Cloud Radiative Effect" ;
swcre:units = "W m-2" ;
swcre:positive = "down" ;
swcre:valid_max = 600.f ;
swcre:valid_min = 0.f ;
swcre:cell_methods = "time: mean" ;
swcre:coordinates = "time" ;
double lat(lat) ;
lat:axis = "Y" ;
lat:bounds = "lat_bnds" ;
lat:units = "degrees_north" ;
lat:standard_name = "latitude" ;
double lat_bnds(lat, bnds) ;
double lon(lon) ;
lon:axis = "X" ;
lon:bounds = "lon_bnds" ;
lon:units = "degrees_east" ;
lon:standard_name = "longitude" ;
double lon_bnds(lon, bnds) ;
double time ;
time:bounds = "time_bnds" ;
time:units = "days since 1850-1-1 00:00:00" ;
time:standard_name = "time" ;
time:long_name = "time" ;
time:calendar = "standard" ;
double time_bnds(bnds) ;

Did we do something weird in the ESMValCore fix, @bouweandela?

@hb326

hb326 commented May 22, 2026

Copy link
Copy Markdown
Contributor Author

Ok. All is fixed now again. Thanks @schlunma!
The recipe runs fine also with CERES-EBAF-4-2-1 data. This is the dataset that can be pushed to REF. It runs until 2025.

@hb326 hb326 added this to the v2.15.0 milestone May 26, 2026
Comment thread esmvaltool/recipes/ref/recipe_ref_cre_cmip7.yml Outdated

@axel-lauer axel-lauer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@axel-lauer axel-lauer merged commit cf6d1e9 into main Jun 1, 2026
8 checks passed
@axel-lauer axel-lauer deleted the test_REF_cre_recipe_with_CMIP7data branch June 1, 2026 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

REF Important for the CMIP Rapid Evaluation Framework (REF)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create fake CMIP7 data for recipe_ref_cre.yml

3 participants