Versions Compared

Key

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

This page is not yet complete.

Accessing the batch service

To access ECMWF you will need an API key that can be optained at https://api.ecmwf.int/v1/key/

Python

To get the python library, run:

Code Block
languagebash
sudo pip install https://software.ecmwf.int/wiki/download/attachments/23694554/ecmwf-api-python-client.tgz

 

Configuration file

Code Block
languagejavascript
titleContent $HOME/.ecmwfapirc
{
    "url"   : "https://api.ecmwf.int/v1",
    "key"   : "XXXXXXXXXXXXXXXXXXXXXX",
    "email" : "john.smith@example.com"
}

Environment varibables

 

Name 
ECMWF_API_KEYhttps://api.ecmwf.int/v1
ECMWF_API_URLXXXXXXXXXXXXXXXXXXXXXX
ECMWF_API_EMAILjohn.smith@example.com

 

Arguments

Code Block
ECMWFDataServer(
       'https://api.ecmwf.int/v1',
       'XXXXXXXXXXXXXXXXXXXXXX',
       'john.smith@example.com'
    )

 

 

Code Block
languagepython
titlePython client
#!/usr/bin/env python
from ecmwfapi import ECMWFDataServer

server = ECMWFDataServer()

server.retrieve({
    'dataset' : "tigge",
    'step'    : "24/to/120/by/24",
    'number'  : "all",
    'levtype' : "sl",
    'date'    : "20071001/to/20071003",
    'time'    : "00/12",
    'origin'  : "all",
    'type'    : "pf",
    'param'   : "tp",
    'area'    : "70/-130/30/-60",
    'grid'    : "2/2",
    'target'  : "data.grib"
    })

 

Datasets

MARS language

http://www.ecmwf.int/publications/manuals/mars/guide/index.html

Proxies

SSL

Learning more

WARNING: This page has been moved to Access ECMWF Public Datasets.

Include Page
Access ECMWF Public Datasets
Access ECMWF Public Datasets

WARNING: This page has been moved to Access MARSA full description of the ECMWF WEB API can be found at { "ECMWF" : "API", "version" : 1 }.