Versions Compared

Key

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

...

The ROM SAF data is downloaded from the ECMWF public datasets service using web-api, which is a "programmatic approach" for data download using python scripts .The web-api "frequently asked questions" (FAQ) provides useful background information. We will not reproduce the existing documentation here, but we will note some key steps required to download the data. Firstly, you will need to download the appropriate python modules to run the download python scripts. For example, the python scripts will contain from ecmwfapi import commands, like in this simple example, retrieving a monthly mean zonal wind at 1000 hPa, in netcdf format (More complex retrieval scripts are provided here):


#!/usr/bin/env python
#

from ecmwfapi import ECMWFDataServer

# To run this example, you need an API key
# available from https://api.ecmwf.int/v1/key/

server = ECMWFDataServer(verbose=1)

server.retrieve({
'dataset' : "rom_saf_3198",
'stream' : "moda",
'levtype' : "pl",
'levelist': "1000",
'date' : "20150301",
'type' : "an",
'param' : "131.128",
'grid' : "0.5/0.5",
'format' : "netcdf",
'target' : "rom_saf_3198.nc"
})

...