You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

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:

  1. We strongly advice you to start with a simple request. ( 1-2 parameters 1 time step 1-2  steps etc)
  2. In case of Python the request will be a dictionary with "keys" and "values" that represent your selection. (eg "step":"00", "time": 00")
  3. The request is strongly connected to the availability of the data
  4. 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"
    })

There is no content with the specified labels



  • No labels