How to write my first Web-API script?
Step-by-step guide
You may start with the examples available on ERA-interim 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)
- In case of Python the request will be a dictionary with "keys" and "values" that represent your selection. (eg "step":"00", "time": 00")
- The request is strongly connected to the availability of the data
- Use the example below as a basis to write your own script
#!/usr/bin/env python from ecmwfapi import ECMWFDataServer server = ECMWFDataServer() server.retrieve({ "stream": "oper", "levtype" : "sfc", "param": "165.128/41.128", "dataset" : "interim", "step":"0", "grid" : "0.75/0.75", "time" : "00", "date" : "2013-09-01/to/2013-09-30", "type" : "an", "class" : "ei", "target" : "data.grib" })
Related articles
Content by label
There is no content with the specified labels