summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xexample-era5.py21
-rwxr-xr-xexample-glaciers.py16
2 files changed, 19 insertions, 18 deletions
diff --git a/example-era5.py b/example-era5.py
index 38c3161..3e55a59 100755
--- a/example-era5.py
+++ b/example-era5.py
@@ -12,15 +12,16 @@ import cdsapi
c = cdsapi.Client()
-r = c.retrieve("reanalysis-era5-pressure-levels",
- {
- "variable": "temperature",
- "pressure_level": "250",
- "product_type": "reanalysis",
- "date": "2017-12-01/2017-12-31",
- "time": "12:00",
- "format": "grib"
- })
+r = c.retrieve(
+ "reanalysis-era5-pressure-levels",
+ {
+ "variable": "temperature",
+ "pressure_level": "250",
+ "product_type": "reanalysis",
+ "date": "2017-12-01/2017-12-31",
+ "time": "12:00",
+ "format": "grib",
+ },
+)
r.download("dowload.grib")
-
diff --git a/example-glaciers.py b/example-glaciers.py
index f14fa67..00f0709 100755
--- a/example-glaciers.py
+++ b/example-glaciers.py
@@ -10,13 +10,13 @@
import cdsapi
-
c = cdsapi.Client()
-
-c.retrieve("insitu-glaciers-elevation-mass",
- {
- "variable": "elevation_change",
- "format": "tgz"
- },
- "dowload.data")
+c.retrieve(
+ "insitu-glaciers-elevation-mass",
+ {
+ "variable": "elevation_change",
+ "format": "tgz"
+ },
+ "dowload.data",
+)