Versions Compared

Key

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

...

If you haven't done it yet you will need to create an ECMWF web account and accept the data licence.

Examples

Total aerosol optical depth at 550 nm in NetCDF format, only European domain, 10 dates, day 1 forecast

Code Block
languagepy
titleGRIB
#!/usr/bin/env python
from ecmwfapi import ECMWFDataServer
server = ECMWFDataServer()

server.retrieve({
    "dataset":   "cams_esuite",
    "stream":    "oper",
    "type":      "fc",
    "date":      "20170701/to/20170710",
    "time":      "00",    
    "step":      "0/to/23/by/1",
    "levtype":   "sfc",
    "format":    "netcdf",
    "param" :    "aod550",         # see parameter table at http://atmosphere.copernicus.eu/ftp-access-global-data
    "grid":      "0.4/0.4",        # 0.4 x 0.4 regular lat-lon grid
    "area":      "70/-35/35/60",   # N/E/S/W area boundaries
    "target":    "/tmp/cams_test_201707.nc"
})

...