Versions Compared

Key

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


Excerpt
hiddentrue

Yes! You can use the Access MARS service through ECMWF WebAPI using a Python script. This will allow any user with access to MARS to retrieve data. The syntax is

...

If you do not want to use the

...

Step-by-step guide

...

MARS syntax with the mars script we provide, you can directly use Python. The correct syntax is:

Code Block
languagepy
server = ECMWFService("mars")
server.execute({ "python":"query" }, "target")

...

Code Block
languagepy
#!/usr/bin/env python
from ecmwfapi import *

server = ECMWFService("mars")
server.execute(
    {
    "class": "od",
    "date": "-1",
    "expver": "1",
    "levtype": "sfc",
    "param": "167.128",
    "step": "0/to/240/by/12",
    "stream": "oper",
    "time": "00",
    "type": "fc"
    },
    "target.grib")

Content by Label
showLabelsfalse
max510
spaces~usa
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel = "kb-how-to-article" webapi-faqs" and label in ("python","mars") and type = "page" and space = "UDOC"
labelskb-how-to-article

...