Hi All,
I'm trying to download the 0.25-degree WAM data using the python code on the CDS toolbox but I can't get what I'm looking for?
I get the data for the 'mean_wave_direction parameter only and for 1978. I'm not sure what to do. The old ECMWF MARS had data of that resolution before.
Could you please assist me with regard? The code I used to download the data is given below.
Kind regards,
Bafana
import cdstoolbox as ct
@ct.application(title='Download data')
@ct.output.download()
def download_application():
data = ct.catalogue.retrieve(
'reanalysis-era5-single-levels',
{
'product_type': 'reanalysis',
'variable': [
'mean_wave_direction', 'peak_wave_period', 'significant_height_of_combined_wind_waves_and_swell',
],
'year': '2017',
'month': '06',
'day': ['01', '02', '03',],
'time': ['00:00', '03:00', '06:00', '09:00', '12:00', '15:00', '18:00', '21:00',],
'grid': [0.25, 0.25], # added
'area': [-10, 5, -45, 45,],
'format': 'netcdf', # added
},
'download.nc'
)
return data