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-01", "expver": "prod", "levtype": "sfc", "origin": "babj", "param": "165", "step": "24/to/1056/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-01-01", "expver": "prod", "levtype": "sfc", "origin": "babj", "param": "165", "step": "24/to/1056/by/24", "stream": "enfo", "target": "CHANGEME", "time": "00", "number": "1/to/3", "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-01/to/2015-01-31", "expver": "prod", "levtype": "sfc", "origin": "babj", "param": "165", "step": "24/to/1056/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-01-01/to/2015-01-31", "expver": "prod", "levtype": "sfc", "origin": "babj", "param": "165", "step": "24/to/1056/by/24", "stream": "enfo", "target": "CHANGEME", "time": "00", "number": "1/to/3", "type": "pf", })