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 | |
parent | cb03f497eb3b99e4d83b42ddc77b1d4f1bc9c913 (diff) |
new example
-rwxr-xr-x | example-era5.py | 23 | ||||
-rwxr-xr-x | test.py | 19 |
2 files changed, 23 insertions, 19 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") diff --git a/test.py b/test.py deleted file mode 100755 index 976c8ca..0000000 --- a/test.py +++ /dev/null @@ -1,19 +0,0 @@ -#!/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("insitu-glaciers-elevation-mass", - { - "variable": "elevation_change", - "format": "tgz" - }, - "dowload.data") |