...
Excerpt |
---|
|
You may start with the examples available on ERA-interim TIGGE sample scripts or by creating your request using our Datasets Web Interface. Please note the following |
How to write my first Web-API script?
...
Public users:
You may start with the examples available on ERA-interim 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)
- 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
- The request has a Python dictionary format.
- You can use Use the example below as a basis to write your own script
Code Block |
---|
|
#!/usr/bin/env python
from ecmwfapi import ECMWFDataServer
server = ECMWFDataServer()
server.retrieve({
'origin' : "stream"kwbc",
'levelist' : "oper200",
"'levtype"' : "sfcpl",
"param"'expver' : "165.128/41.128prod",
"'dataset"' : "interimtigge",
"step":'step' : "0/6",
"grid"'grid' : "0.755/0.755",
'param' : "131/132",
'time' : "00/06/12/18",
'date' : "00"2014-10-01",
'type' : "cf",
'class' : "date"ti",
'target' : "2013tigge_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:
Code Block |
---|
#!/usr/bin/env python
from ecmwfapi import ECMWFService
server = ECMWFService("mars")
server.execute(
{
"class": "od09-01/to/2013-09-30",
"type" "date": "20150101",
"expver": "an1",
"class" levtype": "sfc",
"param": "ei167.128",
"step": "0/to/240/by/12",
"stream": "oper",
"time": "target00",
"type": "data.gribfc"
},
"target.grib") |
Related articles
Content by Label |
---|
showLabels | false |
---|
max | 5 |
---|
spaces | ~usa |
---|
showSpace | false |
---|
sort | modified |
---|
reverse | true |
---|
type | page |
---|
cql | label = "kb-how-to-article" and type = "page" and space = "UDOC" |
---|
labels | kb-how-to-article |
---|
|
...