The following code downloads a zip file containing a grib file if running with CDSBeta.
It download a zip file with a netCDF4 if run with the old credentials.
Is this a bug? Is it related with the chenges on the netCDF converter?
Thank you
import cdsapi
NEW = True
if NEW:
url = 'https://cds-beta.climate.copernicus.eu/api'
key = XXXXXXXXXXXX
else:
url = 'https://cds.climate.copernicus.eu/api/v2'
key = XXXXXXXXXXXX
c = cdsapi.Client(url=url, key=key)
c.retrieve(
'efas-forecast',
{
'format': 'netcdf4.zip',
'system_version': 'operational',
'originating_centre': 'ecmwf',
'product_type': 'high_resolution_forecast',
'variable': 'river_discharge_in_the_last_6_hours',
'model_levels': 'surface_level',
'year': '2024',
'month': '03',
'day': [
'16', '17', '18',
'19', '20', '21',
'22', '23', '24',
'25',
],
'time': '00:00',
'leadtime_hour': [
'6', '12', '18',
'24',
],
'area': [
48, 6, 35,
25,
],
},
f'download_202403_forecast.netcdf4.{"new" if NEW else "old"}.zip')