You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the dataset issue
PR #184 (from 3 years ago) attempts to resolve a number of seperate issues with CORDEX models, as a result it's a fairly big PR and merging isn't straightforward. Instead, as suggested here #184 (comment) I'm creating issues addressing some of the problems individually which should be a more appropriate approach to fixing them. (Via smaller more focused PRs)
This first one addresses the fact that many of the CORDEX models on ESGF are missing bounds data on either one or both of their native grid coordinates or multidimensional regular latitude and longitude coordinates.
This lack of bounds means that regridding is not possible. It also means that calculating area weighted statistics is not possible without an appropriate areacella fx file. However, even if these are present, using them in ESMValTool is non-trivial unless #1081 is resolved, perhaps via #1082
Data file has been changed by you in any way (if you answer yes the issue will be void and closed, we are not
supporting custom-made datasets that present problems, it is your resposability to fix those problems): NO
Project (CMIP5/CMIP6/OBS/obs4MIPs/etc): CORDEX
Full dataset description (fill out as many as you know, please):
tas: {institute: SMHI, driver: MOHC-HadGEM2-ES, dataset: RCA4, project: CORDEX, ensemble: r1i1p1, mip: mon, rcm_version: v1, domain: EUR-11}
Note that this is only one model that has this issue. However, there are multiple CORDEX data files on ESGF from a variety of different models / domains that have this issue. As such I'm not sure if the most appropriate fix is individual CMOR modules for each of the modules that uses duplicate code, it might be good to introduce a standard check / fix for this issue for all files from the CORDEX project (as PR Add general CORDEX coordinate boundary fix #184 attempts to do)
Problems encountered (please describe what the actual problems are: e.g. wrong standard name, issue with dimensions):
Regridding fails due to missing bounds. Area weighted statistics not possible without FX files.
documentation:
title: Demo recipe
description:
What if I want to regrid a regional model file?
authors:
- predoi_valeriu
datasets:
# Rotated pole model
- {institute: SMHI, driver: MOHC-HadGEM2-ES, dataset: RCA4, project: CORDEX, ensemble: r1i1p1, mip: mon, rcm_version: v1, domain: EUR-11}
preprocessors:
preproc:
regrid:
target_grid:
start_latitude: 50
end_latitude: 60
start_longitude: 0
end_longitude: 10
step_latitude: 1
step_longitude: 1
scheme: linear
diagnostics:
temp:
description: Regrid some data
variables:
tas:
start_year: 1981
end_year: 2000
exp: historical
preprocessor: preproc
scripts: null
Results in error due to lack of bounds:
File "/opt/scitools/conda/environments/esmvaltool-2.5.0/lib/python3.9/site-packages/esmvalcore/preprocessor/_regrid_esmpy.py", line 112, in is_lon_circular
seam = (lon.bounds[1:-1, -1, (1, 2)]
TypeError: 'NoneType' object is not subscriptable
Describe the dataset issue
PR #184 (from 3 years ago) attempts to resolve a number of seperate issues with CORDEX models, as a result it's a fairly big PR and merging isn't straightforward. Instead, as suggested here #184 (comment) I'm creating issues addressing some of the problems individually which should be a more appropriate approach to fixing them. (Via smaller more focused PRs)
This first one addresses the fact that many of the CORDEX models on ESGF are missing bounds data on either one or both of their native grid coordinates or multidimensional regular latitude and longitude coordinates.
This lack of bounds means that regridding is not possible. It also means that calculating area weighted statistics is not possible without an appropriate areacella fx file. However, even if these are present, using them in ESMValTool is non-trivial unless #1081 is resolved, perhaps via #1082
Data file has been changed by you in any way (if you answer yes the issue will be void and closed, we are not
supporting custom-made datasets that present problems, it is your resposability to fix those problems): NO
Project (CMIP5/CMIP6/OBS/obs4MIPs/etc): CORDEX
Full dataset description (fill out as many as you know, please):
tas:
{institute: SMHI, driver: MOHC-HadGEM2-ES, dataset: RCA4, project: CORDEX, ensemble: r1i1p1, mip: mon, rcm_version: v1, domain: EUR-11}Note that this is only one model that has this issue. However, there are multiple CORDEX data files on ESGF from a variety of different models / domains that have this issue. As such I'm not sure if the most appropriate fix is individual CMOR modules for each of the modules that uses duplicate code, it might be good to introduce a standard check / fix for this issue for all files from the CORDEX project (as PR Add general CORDEX coordinate boundary fix #184 attempts to do)
Problems encountered (please describe what the actual problems are: e.g. wrong standard name, issue with dimensions):
Regridding fails due to missing bounds. Area weighted statistics not possible without FX files.
Pointer to existing copy of data on ESGF node (it would be very useful if you could provide a physical
fullpath to the file(s) that are causing the problem, e.g. on CEDA Jasmin or DKRZ):
E.g. From ESGF:
http://esg-dn1.nsc.liu.se/thredds/fileServer/esg_dataroot1/cordexdata/cordex/output/EUR-11/SMHI/MOHC-HadGEM2-ES/historical/r1i1p1/SMHI-RCA4/v1/mon/tas/v20131026/tas_EUR-11_MOHC-HadGEM2-ES_historical_r1i1p1_SMHI-RCA4_v1_mon_200101-200512.nc
Other notes and mentions:
@sloosvel @nhsavage
See example simple recipe for regridding:
Results in error due to lack of bounds:
ncdump: