Public users
You may start with the examples available on TIGGE sample scripts or by creating your request using our Datasets Web Interface . Please note the following:
- We strongly advice you to start with a simple request. ( 1-2 parameters 1 time step 1-2 steps etc)
- The request has a Python dictionary format.
- You can use the example below as a basis to write your own script
#!/usr/bin/env python from ecmwfapi import ECMWFDataServer server = ECMWFDataServer() server.retrieve({ 'origin' : "kwbc", 'levelist' : "200", 'levtype' : "pl", 'expver' : "prod", 'dataset' : "tigge", 'step' : "0/6", 'grid' : "0.5/0.5", 'param' : "131/132", 'time' : "00/06/12/18", 'date' : "2014-10-01", 'type' : "cf", 'class' : "ti", 'target' : "tigge_2014-10-01_00061218.grib" })
ECMWF members (i.e. licence holders, authorised users, staff and members of NHMSs in Member and Co-operating States):
You can use the 'mars' script with the MARS syntax or you can request it from Python using this class:
#!/usr/bin/env python from ecmwfapi import ECMWFService server = ECMWFService("mars") server.execute( { "class": "od", "date": "20150101", "expver": "1", "levtype": "sfc", "param": "167.128", "step": "0/to/240/by/12", "stream": "oper", "time": "00", "type": "fc" }, "target.grib")