from ecmwfapi import ECMWFDataServer
server = ECMWFDataServer()
server.retrieve({
'stream' : "oper",
'levtype' : "sfc",
'param' : "134.128/151.128/235.128/167.128/165.128/166.128/168.128/34.128/31.128/141.128/139.128/170.128/183.128/236.128/39.128/40.128/41.128/42.128/33.128",
'dataset' : "interim",
'step' : "0",
'grid' : "0.25/0.25",
'time' : "00/06/12/18",
'date' : "2017-06-08/to/2017-06-12",
'type' : "an",
'class' : "ei",
'number' : "all",
'target' : "interim_2017-06-08to2017-06-12.grib"
})
!/usr/bin/env python
(C) Copyright 2012-2013 ECMWF.
This software is licensed under the terms of the Apache Licence Version 2.0
which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
In applying this licence, ECMWF does not waive the privileges and immunities
granted to it by virtue of its status as an intergovernmental organisation nor
does it submit to any jurisdiction.
from ecmwfapi import ECMWFDataServer
To run this example, you need an API key
available from https://api.ecmwf.int/v1/key/
server = ECMWFDataServer()
server.retrieve({
'dataset' : "interim",
'step' : "0",
'stream' : "oper",
'number' : "all",
'levtype' : "pl",
'levelist': "10/20/30/50/70/100/125/150/200/250/300/350/400/450/500/550/600/650/700/750/800/850/900/925/950/975/1000",
'date' : "20170608/to/20170612",
'time' : "00/06/12/18",
'origin' : "all",
'type' : "an",
'param' : "129.128/133.128/131.128/132.128/130.128/157.128",
'grid' : "0.25/0.25",
'target' : "ERA-Int_pl_20170608_20170612.grib"
})