How to downoad 0.25 x 0.25 degree WAM data?

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



Dear Bafana,

The following code should work for what you are trying to do:

import cdstoolbox as ct

@ct.application(title=‘Download data’)
@ct.output.download()
@ct.output.download()
@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,]
}
)
return data

You should get three download links in output. 

Hi Vivien,

Yes, the code is working okay. Unfortunately, it downloads 1970 for the bulk wave parameters. Not sure why it doesn't download in June 2017 for three days @3 hourly intervals?

Bafana


The three netcdf I download using this workflow https://cds.climate.copernicus.eu/toolbox-editor/168/forum_wam are for 2017.

Hi Vivien,

Not sure why the downloaded data shows 1970 when I view it via "ncview". But when I use cdo showdate, it shows 2017.

Thanks, Vivien. Will now download the whole June of 2017