Page tree
Skip to end of metadata
Go to start of metadata

Real-time forecasts: 1 param, 1 date

Retrieving one field (total percipitation here) for all time steps and  for the forecast starting on 8th February 2015:

 #!/usr/bin/env python
from ecmwfapi import ECMWFDataServer
server = ECMWFDataServer()
server.retrieve({
    "class": "s2",
    "dataset": "s2s",
    "date": "2015-02-08",
    "expver": "prod",
    "levtype": "sfc",
    "origin": "ammc",
    "param": "tp",
    "step": "24/to/1488/by/24",
    "stream": "enfo",
    "target": "CHANGEME",
    "time": "00",
    "type": "cf",
})
  #!/usr/bin/env python
from ecmwfapi import ECMWFDataServer
server = ECMWFDataServer()
server.retrieve({
    "class": "s2",
    "dataset": "s2s",
    "date": "2015-02-08",
    "expver": "prod",
    "levtype": "sfc",
    "origin": "ammc",
    "param": "tp",
    "step": "24/to/1488/by/24",
    "stream": "enfo",
    "target": "CHANGEME",
    "time": "00", 
    "number": "1/to/32",
    "type": "pf",
 })

Real-time forecasts: 1 param, series of dates

Retrieving one field (total precipitation here) for all time steps and  for all the forecast starting between  8 February  and 26 February 2015:

 #!/usr/bin/env python
from ecmwfapi import ECMWFDataServer
server = ECMWFDataServer()
server.retrieve({
    "class": "s2",
    "dataset": "s2s",
    "date": "2015-02-08/2015-02-12/2015-02-15/2015-02-19/2015-02-22/2015-02-26",
    "expver": "prod",
    "levtype": "sfc",
    "origin": "ammc",
    "param": "tp",
    "step": "24/to/1488/by/24",
    "stream": "enfo",
    "target": "CHANGEME",
    "time": "00",
    "type": "cf",
})
  #!/usr/bin/env python
from ecmwfapi import ECMWFDataServer
server = ECMWFDataServer()
server.retrieve({
    "class": "s2",
    "dataset": "s2s",
    "date": "2015-02-08/2015-02-12/2015-02-15/2015-02-19/2015-02-22/2015-02-26",
    "expver": "prod",
    "levtype": "sfc",
    "origin": "ammc",
    "param": "tp",
    "step": "24/to/1488/by/24",
    "stream": "enfo",
    "target": "CHANGEME",
    "time": "00", 
    "number": "1/to/32",
    "type": "pf",
 })