Hello,
I am trying to retrieve data from CDS with the API with following error:
HTTPError : 400 Client Error: Bad Request for url: https://cds.climate.copernicus.eu/api/retrieve/v1/processes/projections-cordex-domains-single-levels/execution invalid request. Request has not produced a valid combination of values, please check your selection.
{‘domain’: ‘europe’, ‘experiment’: ‘historical’, ‘horizontal_resolution’: ‘0_11_degree_x_0_11_degree’, ‘temporal_resolution’: ‘daily_mean’, ‘variable’: ‘maximum_2m_temperature_in_the_last_24_hours’, ‘gcm_model’: ‘cnrm_cerfacs_cm5’, ‘rcm_model’: ‘clmcom_clm_cclm4_8_17’, ‘ensemble_member’: ‘r1i1p1’, ‘start_year’: [‘1971’, ‘1976’, ‘1981’, ‘1986’, ‘1991’, ‘1996’, ‘2001’], ‘end_year’: [‘1975’, ‘1980’, ‘1985’, ‘1990’, ‘1995’, ‘2000’, ‘2005’]}
I use this code:
gcm_model = 'cnrm_cerfacs_cm5'
rcm_model = 'clmcom_clm_cclm4_8_17'
# Define zip file's absolute path
zip_path = os.path.join(data_dir, 'eurocordex_daily_t2m_eurmax_1971_2005.zip')
# Download the data for the selected time-period and RCP
c.retrieve(
'projections-cordex-domains-single-levels',
{
'format': 'zip',
'domain': 'europe',
'experiment': 'historical',
'horizontal_resolution': '0_11_degree_x_0_11_degree',
'temporal_resolution': 'daily_mean',
'variable': 'maximum_2m_temperature_in_the_last_24_hours',
'gcm_model': gcm_model,
'rcm_model': rcm_model,
'ensemble_member': 'r1i1p1',
'start_year': [
'1971', '1976', '1981', '1986', '1991', '1996', '2001',
],
'end_year': [
'1975', '1980', '1985', '1990', '1995', '2000', '2005',
],
},
zip_path)
# Unzip the downloaded files so they are ready for computing
with zipfile.ZipFile(zip_path, 'r') as zObject:
zObject.extractall(path=data_dir)
# Remove the downloaded zip file after unpacking
os.remove(zip_path)
I have already downloaded data dor other combinations of GCM-RCM. I have also checked from CORDEX-CMIP5 Simulations – Cordex that the combination of GCM-RCM I choose is valid for my region.
Requesting support on this issue.
Thank you!