diff options
author | Baudouin Raoult <baudouin.raoult@ecmwf.int> | 2018-05-12 10:12:25 +0100 |
---|---|---|
committer | Baudouin Raoult <baudouin.raoult@ecmwf.int> | 2018-05-12 10:12:25 +0100 |
commit | 6b36273048183ccd2f14a1f0dc89985b08a623e9 (patch) | |
tree | 9733c0d080b2bf09b59d219df989ba70e58632c2 /example-era5.py | |
parent | cb03f497eb3b99e4d83b42ddc77b1d4f1bc9c913 (diff) |
new example
Diffstat (limited to 'example-era5.py')
-rwxr-xr-x | example-era5.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/example-era5.py b/example-era5.py new file mode 100755 index 0000000..90f3087 --- /dev/null +++ b/example-era5.py @@ -0,0 +1,23 @@ +#!/usr/bin/env python + +import cdsapi +import logging + + +logging.basicConfig(level=logging.DEBUG, + format='%(asctime)s %(levelname)s %(message)s') + + +c = cdsapi.Client() + + +c.retrieve("reanalysis-era5-pressure-levels", + { + "variable": "geopotential", + "pressure_level": "500", + "product_type": "reanalysis", + "date": "2008-01-01/to/2017-01-01", + "time": "12:00", + "format": "grib" + }, + "dowload.grib") |