Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
#!/usr/bin/env python
import cdsapi
 
c = cdsapi.Client()
c.retrieve('reanalysis-era5-complete', { 
    #......
    'grid'    : '1.0/1.0', # Latitude/longitude grid in degrees: east-west (longitude) and north-south resolution (latitude). Default: reduced Gaussian grid
    'format'  : 'netcdf', # Default: grib
}, 'xxx.nc')

Full examples are available from How to download ERA5.

For ERA5 data hosted on the CDS, you are recommended to apply the same principle although the data was pre-interpolated to a lat-lon grid.