[Wrf-users] Downloading ERA-Interim data via Python or Mars request

afwande juliet afwandej965 at gmail.com
Sat May 21 06:50:54 MDT 2016


Hi all
has someone has experince in getting ERAhttp://
apps.ecmwf.int/datasets/data/interim-full-daily/levtype=pl/batch/290323/-interim
data ffrom

uisng python or MARS request.
I get error in this python script
./script.pyFile "./script.py", line 3
    server = ECMWFDataServer(
http://apps.ecmwf.int/datasets/data/interim-full-daily/levtype=pl/batch/290323/
)
SyntaxError: invalid syntax

the script looks like this


#!/usr/bin/env python
from ecmwfapi import ECMWFDataServer
server = ECMWFDataServer(
http://apps.ecmwf.int/datasets/data/interim-full-daily/levtype=pl/batch/290323/
)
server.retrieve({
    "class": "ei",
    "dataset": "interim",
    "date": "1997-01-01/to/2002-12-31",
    "expver": "1",
    "grid": "0.75/0.75",
    "levelist":
"1/2/3/5/7/10/20/30/50/70/100/125/150/175/200/225/250/300/350/400/450/500/550/600/650/700/750/775/800/825/850/875/900/925/950/975/1000",
    "levtype": "pl",
    "param": "129.128/130.128/131.128/132.128/133.128",
    "step": "0",
    "stream": "oper",
    "time": "06:00:00",
    "type": "an",
    "target": "PRESSURE",

or what about MARS request???
I have tried to read the site ttps://
software.ecmwf.int/wiki/display/WEBAPI/Python+ERA-interim+examples
but cant understand
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/wrf-users/attachments/20160521/56248da2/attachment.html 


More information about the Wrf-users mailing list