Hi Richard,
I can download ERA5 data for 10/9/2024 from CDS-Beta web and cds api:
% more request_latest.py
import cdsapi
dataset = “reanalysis-era5-single-levels”
request = {
‘product_type’: [‘reanalysis’],
‘variable’: [‘10m_u_component_of_wind’, ‘10m_v_component_of_wind’, ‘100m_u_component_of_wind’, ‘100m_v_component_of_wind’],
‘year’: [‘2024’],
‘month’: [‘09’],
‘day’: [‘10’],
‘time’: [‘00:00’, ‘01:00’, ‘02:00’, ‘03:00’, ‘04:00’, ‘05:00’, ‘06:00’, ‘07:00’, ‘08:00’, ‘09:00’, ‘10:00’, ‘11:00’, ‘12:00’, ‘13:00’, ‘14:00’, ‘15:00’, ‘16:00’, ‘17:00’, ‘18:00’, ‘19:00’, ‘20:00’, ‘21:00’, ‘22:00’, ‘23:00’],
‘data_format’: ‘grib’,
‘download_format’: ‘unarchived’
}
client = cdsapi.Client()
client.retrieve(dataset, request).download()
gives
% grib_ls c92182e55d477834232b1e843e1c8345.grib
c92182e55d477834232b1e843e1c8345.grib
edition centre typeOfLevel level dataDate stepRange dataType shortName packingType gridType
1 ecmf surface 0 20240910 0 an 10u grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 10v grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 100u grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 100v grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 10u grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 10v grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 100u grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 100v grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 10u grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 10v grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 100u grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 100v grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 10u grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 10v grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 100u grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 100v grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 10u grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 10v grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 100u grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 100v grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 10u grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 10v grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 100u grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 100v grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 10u grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 10v grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 100u grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 100v grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 10u grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 10v grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 100u grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 100v grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 10u grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 10v grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 100u grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 100v grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 10u grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 10v grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 100u grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 100v grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 10u grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 10v grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 100u grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 100v grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 10u grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 10v grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 100u grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 100v grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 10u grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 10v grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 100u grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 100v grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 10u grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 10v grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 100u grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 100v grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 10u grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 10v grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 100u grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 100v grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 10u grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 10v grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 100u grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 100v grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 10u grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 10v grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 100u grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 100v grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 10u grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 10v grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 100u grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 100v grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 10u grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 10v grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 100u grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 100v grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 10u grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 10v grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 100u grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 100v grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 10u grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 10v grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 100u grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 100v grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 10u grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 10v grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 100u grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 100v grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 10u grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 10v grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 100u grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 100v grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 10u grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 10v grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 100u grid_simple regular_ll
1 ecmf surface 0 20240910 0 an 100v grid_simple regular_ll
96 of 96 messages in c92182e55d477834232b1e843e1c8345.grib
96 of 96 total messages in 1 files
I suspect you may be encountering the CDS cache issue:
If a user runs exactly the same CDS API request several times, and the data from the first time the request is submitted is still in the CDS cache. then the same data are retrieved from the cache, rather than being re-extracted from the dataset.
For datasets which are updated on a daily basis (such as ERA5T), this can cause issues, as the later request may not be returned the data as expected.
To avoid this, we suggest users to add the keyword 'nocache' in their CDS API request, with a rando…