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

Real-time forecasts: 1 param, 1 date

Retrieving one field (10 meter U wind here) for all time steps and  for the forecast starting on 1st January 2015:

#!/usr/bin/env python
from ecmwfapi import ECMWFDataServer
server = ECMWFDataServer()
server.retrieve({
 "class": "s2",
 "dataset": "s2s",
 "date": "2015-01-06",
 "expver": "prod",
 "levtype": "sfc",
 "origin": "rjtd",
 "param": "165",
 "step":
"12/to/804/by/24",
 "stream": "enfo",
 "target": "CHANGEME",
 "time": "12",
 "type": "cf",
})


#!/usr/bin/env python
from ecmwfapi import ECMWFDataServer
server = ECMWFDataServer()
server.retrieve({
    "class": "s2",
    "dataset": "s2s",
    "date": "2015-01-06",
    "expver": "prod",
    "levtype": "sfc",
    "origin": "rjtd",
    "param": "165",
    "step":
"12/to/804/by/24",
    "stream": "enfo",
    "target": "CHANGEME",
    "number": "1/to/24",
    "time": "12",
    "type": "pf",
})

Real-time forecasts: 1 param, series of dates

Retrieving  1 field (10m U wind) for all time steps and for the whole January 2015.

 #!/usr/bin/env python
from ecmwfapi import ECMWFDataServer
server = ECMWFDataServer()
server.retrieve({
 "class": "s2",
 "dataset": "s2s",
 "date": "2015-01-06/2015-01-07/2015-01-13/2015-01-14/2015-01-20/2015-01-21/2015-01-27/2015-01-28",
 "expver": "prod",
 "levtype": "sfc",
 "origin": "rjtd",
 "param": "165",
 "step": "12/to/804/by/24",
 "stream": "enfo",
 "target": "CHANGEME",
 "time": "12",
 "type": "cf",
})


#!/usr/bin/env python
from ecmwfapi import ECMWFDataServer
server = ECMWFDataServer()
server.retrieve({
    "class": "s2",
    "dataset": "s2s",
    "date": "2015-01-06/2015-01-07/2015-01-13/2015-01-14/2015-01-20/2015-01-21/2015-01-27/2015-01-28",
    "expver": "prod",
    "levtype": "sfc",
    "origin": "rjtd",
    "param": "165",
    "step": "12/to/804/by/24",
    "stream": "enfo",
    "target": "CHANGEME",
    "number": "1/to/24",
    "time": "12",
    "type": "pf",
})