Hi,
I’m trying to execute the Python code example provided at
https://cds.climate.copernicus.eu/how-to-api
import cdsapi
client = cdsapi.Client()
dataset = 'reanalysis-era5-pressure-levels'
request = {
'product_type': ['reanalysis'],
'variable': ['geopotential'],
'year': ['2024'],
'month': ['03'],
'day': ['01'],
'time': ['13:00'],
'pressure_level': ['1000'],
'data_format': 'grib',
}
target = 'download.grib'
client.retrieve(dataset, request, target)
Previously, I created the ‘%USERPROFILE%.cdsapirc’ file with the contents of the blackbox. If I use the exact content of the blackbox, I get the following error message:
The cdsapi key provided is not the correct format, please ensure it conforms to:
<UID>:<APIKEY>
If I change the second line with:
<MY_EMAIL_ADDRESS>:
I get the following error message
HTTPError: 404 Client Error: Not Found for url: https://cds.climate.copernicus.eu/api/resources/reanalysis-era5-pressure-levels
Any help is appreciated