This page is under construction!
To help users to improve S2S CMA MARS requests performance via the WebAPI
|
In general it is organised, as a huge tree, with the indentation below, showing different levels down that tree:
|
Following the previous paragraph, the natural way to group requests would be:
|
for HindcastDate in HindcastDate-list (eg, 2010-03-01 to 2010-03-31) |
The best approach is to iterate over the Hyears you wish. For each Hyear iterate over all Hmonths and for each Hmonth iterate over all its Hdays.
for HindcastYear in HindcastYears S2S-request(HindcastDate) |
for each HindcastYear from 2010 to 2014 for HindcastMonth in 04, 06 for HindcastDay in HindcastMonth HindcastDate = HindcastYear-HindcastMonth-HindcastDay S2S-request(HindcastDate) |
#!/usr/bin/env python
from ecmwfapi import ECMWFDataServer
server = ECMWFDataServer()
server.retrieve({
"class": "s2",
"dataset": "s2s",
"date": "2014-05-01",
"expver": "prod",
"hdate": "2006-06-08/2007-06-08/2008-06-08/2009-06-08/2010-06-08/2011-06-08/2012-06-08/2013-06-08",
"levtype": "sfc",
"origin": "babj",
"param": "165",
"step": "0",
"stream": "enfh",
"target": "CHANGEME",
"time": "00",
"type": "cf",
})