...
Code Block | ||
---|---|---|
| ||
import org.ecmwf.DataServer; import org.json.JSONObject; public class DataServerExample { public static void main(String[] args) throws Exception { DataServer xserver = new DataServer(); JSONObject reqrequest = new JSONObject(); req request.put("dataset" , "tigge"); reqrequest.put("step" , "24/to/120/by/24"); reqrequest.put("number" , "all"); reqrequest.put("levtype" , "sl"); reqrequest.put("date" , "20071001/to/20071003"); reqrequest.put("time" , "00/12"); reqrequest.put("origin" , "all"); reqrequest.put("type" , "pf"); reqrequest.put("param" , "tp"); reqrequest.put("area" , "70/-130/30/-60"); reqrequest.put("grid" , "2/2"); reqrequest.put("target" , "data.grib"); xserver.retrieve(reqrequest); } } |
Choosing a dataset
The "dataset
" parameter is one of:
...