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
pip install -e git+https://software.ecmwf.int/stash/scm/WEBAPI/ecmwf-api-python-client.git#egg=ecmwf-api-python-client
jlkllk
error: server certificate verification failed.
jlkjljlk
Code Block | ||
---|---|---|
| ||
[http]
sslVerify = false |
git clone https://software.ecmwf.int/stash/scm/WEBAPI/ecmwf-api-python-client.git
Configuration file
Code Block | ||||
---|---|---|---|---|
| ||||
{
"url" : "https://api.ecmwf.int/v1",
"key" : "XXXXXXXXXXXXXXXXXXXXXX",
"email" : "john.smith@example.com"
} |
Environment varibables
Name | |
---|---|
ECMWF_API_KEY | https://api.ecmwf.int/v1 |
ECMWF_API_URL | XXXXXXXXXXXXXXXXXXXXXX |
ECMWF_API_EMAIL | john.smith@example.com |
Arguments
Code Block |
---|
ECMWFDataServer(
'https://api.ecmwf.int/v1',
'XXXXXXXXXXXXXXXXXXXXXX',
'john.smith@example.com'
) |
Code Block | ||||
---|---|---|---|---|
| ||||
#!/usr/bin/env python
from ecmwf import ECMWFDataServer
server = ECMWFDataServer(
'https://api.ecmwf.int/v1',
'XXXXXXXXXXXXXXXXXXXXXX',
'john.smith@example.com'
)
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"
}) |
Code Block | ||||
---|---|---|---|---|
| ||||
#!/usr/bin/env perl
BEGIN { $ENV{PERL_LWP_SSL_VERIFY_HOSTNAME} = 0 }
use ECMWF::DataServer;
my $client = ECMWF::DataServer->new(
# url => 'http://api.ecmwf.int/v1',
# key => '52829175f2bb19a944e327ade8830737',
# email => 'baudouin.raoult@ecmwf.int',
);
$client->retrieve(
dataset => "tigge",
step => "24",
number => "all",
levtype => "sl",
date => "20071001",
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 | ||||
---|---|---|---|---|
|
WARNING: This page has been moved to Access MARSA full description of the ECMWF WEB API can be found at { "ECMWF" : "API", "version" : 1 }.