summaryrefslogtreecommitdiff
path: root/docker/README.md
diff options
context:
space:
mode:
authorfxi <f@fxi.io>2020-07-20 12:01:56 +0200
committerfxi <f@fxi.io>2020-07-20 12:01:56 +0200
commit75f47f62253b51066302cdb443c263c5c931959a (patch)
tree14cf596d556fbf239fd16d79643c32ddd3b427d6 /docker/README.md
parentd2d2fb0a91d4bf9569f7e5335c77551854b978cf (diff)
Dockerized
Diffstat (limited to 'docker/README.md')
-rw-r--r--docker/README.md38
1 files changed, 38 insertions, 0 deletions
diff --git a/docker/README.md b/docker/README.md
new file mode 100644
index 0000000..a6555aa
--- /dev/null
+++ b/docker/README.md
@@ -0,0 +1,38 @@
+## Simple wrapper around cdsapi
+
+cdsapi homepage : https://github.com/ecmwf/cdsapi
+
+### How to use the dockerized version ?
+
+1. Write a request in json file – don't forget the file format and name. Eg.
+
+```js
+{
+ "url": "https://cds.climate.copernicus.eu/api/v2",
+ "uuid": "<user id>",
+ "key": "<user key>",
+ "variable": "reanalysis-era5-pressure-levels",
+ "options": {
+ "variable": "temperature",
+ "pressure_level": "1000",
+ "product_type": "reanalysis",
+ "date": "2017-12-01/2017-12-31",
+ "time": "12:00",
+ "format": "grib"
+ },
+ "filename":"test.grib"
+}
+```
+
+2. Run the command
+
+```sh
+docker run -it --rm \
+ -v $(pwd)/request.json:/input/request.json \
+ -v $(pwd)/.:/output \
+ <YOUR REPO>/cdsretrieve
+```
+
+Note : the file will be downloaded in the current folder, if not specified otherwise in the docker command. Inside the container, `/input` folder include the request and `/output` is target folder for the downloaded file.
+
+