Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Info

See Brief request syntax to understand each keyword.


Info

(warning) Please note:

In this page you will find some examples in Python which is fully tested and supported.

You

...

may wish to visit the  Web-API Downloads

Python

Code Block
languagepy

...

#!/usr/bin/env python

from ecmwfapi import ECMWFDataServer

...


server = ECMWFDataServer()

...

server.retrieve({

...

  

...

 

...

 "

...

class": "

...

ti",

...

 

...

  

...

 "

...

dataset": "

...

tigge",
    

...

"date": "2019-03-01",
    

...

"expver": "prod",
    

...

"

...

grid

...

"

...

: "

...

Java

Code Block
languagejava
import org.ecmwf.DataServer;
import org.json.JSONObject;
 
public class DataServerExample {
    public static void main(String[] args) throws Exception 
    {
 
        DataServer server = new DataServer(); 
 
        JSONObject  request = new JSONObject();
         
        request.put("dataset" , "tigge");
        request.put("step"    , "24/to/120/by/24");
        request.put("number"  , "all");
        request.put("levtype" , "sl");
        request.put("date"    , "20071001/to/20071003");
        request.put("time"    , "00/12");
        request.put("origin"  , "all");
        request.put("type"    , "pf");
        request.put("param"   , "tp");
        request.put("area"    , "70/-130/30/-60");
        request.put("grid"    , "2/2");
        request.put("target"  , "data.grib");
 
        server.retrieve(request);
    }
}

Perl

...

languageperl

...

0.5/0.5",
    "levtype": "sfc",
    "origin": "ecmf",
    "param": "168",
    "step": "0/6",
    

...

"time": "00:00:00",
    

...

"type": "

...

fc",
    

...

"target": "

...

tigge-2019-03-01.grib",

...

})

...

 

...