From 32942630d2d7c2d932d9001e5113532957106e11 Mon Sep 17 00:00:00 2001 From: Philipp Wambach Date: Thu, 26 Aug 2021 16:45:59 +0200 Subject: [PATCH] feat(datasets): add lakes.lswt data layer --- data/gdal-colors/colors-lswt.txt | 6 ++++++ data/layers-config.json | 7 +++++++ ...ace_water_temperature.sh => lakes_lswt.sh} | 20 +++++++++---------- storage/layers/layers-de.json | 7 +++++++ storage/layers/layers-en.json | 7 +++++++ storage/layers/layers-es.json | 7 +++++++ storage/layers/layers-fr.json | 7 +++++++ storage/layers/layers-nl.json | 7 +++++++ 8 files changed, 58 insertions(+), 10 deletions(-) create mode 100644 data/gdal-colors/colors-lswt.txt rename data/triggers/{lakes_lake_surface_water_temperature.sh => lakes_lswt.sh} (75%) diff --git a/data/gdal-colors/colors-lswt.txt b/data/gdal-colors/colors-lswt.txt new file mode 100644 index 000000000..ea41531da --- /dev/null +++ b/data/gdal-colors/colors-lswt.txt @@ -0,0 +1,6 @@ +3500 230 56 30 +2250 230 230 30 +1250 30 230 30 +500 20 210 230 +-500 28 88 203 +nv 0 0 0 0 diff --git a/data/layers-config.json b/data/layers-config.json index d0e0aa1c2..e3df93f6f 100644 --- a/data/layers-config.json +++ b/data/layers-config.json @@ -310,5 +310,12 @@ "month": "long" }, "legendValues": ["> 100 litres/m³", "-100"] + }, + "lakes.lswt": { + "colorMap": "custom", + "timeFormat": { + "year": "numeric", + "month": "long" + } } } diff --git a/data/triggers/lakes_lake_surface_water_temperature.sh b/data/triggers/lakes_lswt.sh similarity index 75% rename from data/triggers/lakes_lake_surface_water_temperature.sh rename to data/triggers/lakes_lswt.sh index 2ae009ee6..5e0949ab7 100755 --- a/data/triggers/lakes_lake_surface_water_temperature.sh +++ b/data/triggers/lakes_lswt.sh @@ -1,19 +1,19 @@ #!/usr/bin/env bash -TIMEOUT=8000 -LAYER_ID="lakes.lake_surface_water_temperature" -VARIABLE_ID="lake_surface_water_temperature" -LAYER_TYPE="tiles" -VERSION="1.1.1" -LON_RES="43200" -LAT_RES="21600" -ZOOM_LEVELS="0-5" +TIMEOUT=16000 +LAYER_ID="lakes.lswt" +VARIABLE_ID="lswt" +LAYER_TYPE="image" +VERSION="1.2.1" +LON_RES="4320" +LAT_RES="2160" +ZOOM_LEVELS="0-3" MIN_LON="-180" MAX_LON="180" MIN_LAT="-90" MAX_LAT="90" -MIN="270" -MAX="310" +MIN="-500" +MAX="3500" MACHINE_TYPE="N1_HIGHCPU_8" if [ ! -f ./package.json ]; then diff --git a/storage/layers/layers-de.json b/storage/layers/layers-de.json index 444341b23..5f4f5dd63 100644 --- a/storage/layers/layers-de.json +++ b/storage/layers/layers-de.json @@ -152,5 +152,12 @@ "name": "Randolph Glacier Inventory", "shortName": "Glaciers", "description": "A glacier is a persistent body of dense ice…\n\n**Variable Shown:** Randolph Glacier Inventory \r\n\n**Time Span:** \r\n\n**Temporal Resolution:** \r\n\n**Geographic Extent:** global \r\n\n**Temporal resolution:** \r\n\n**Geographic Extent:** \r\n\n**Version:** Randolph Glacier Inventory\r\n\r\n[ESA CCI Glaciers ECV Project website](https://climate.esa.int/de/projekte/glaciers/) \r\n[Data in the Open Data Portal](https://catalogue.ceda.ac.uk/uuid/b05d478170e14356bbe2c3cce3f7bf67)" + }, + { + "id": "lakes.lswt", + "type": "Lakes", + "name": "Lakes", + "shortName": "Lakes", + "description": "..." } ] \ No newline at end of file diff --git a/storage/layers/layers-en.json b/storage/layers/layers-en.json index 444341b23..5f4f5dd63 100644 --- a/storage/layers/layers-en.json +++ b/storage/layers/layers-en.json @@ -152,5 +152,12 @@ "name": "Randolph Glacier Inventory", "shortName": "Glaciers", "description": "A glacier is a persistent body of dense ice…\n\n**Variable Shown:** Randolph Glacier Inventory \r\n\n**Time Span:** \r\n\n**Temporal Resolution:** \r\n\n**Geographic Extent:** global \r\n\n**Temporal resolution:** \r\n\n**Geographic Extent:** \r\n\n**Version:** Randolph Glacier Inventory\r\n\r\n[ESA CCI Glaciers ECV Project website](https://climate.esa.int/de/projekte/glaciers/) \r\n[Data in the Open Data Portal](https://catalogue.ceda.ac.uk/uuid/b05d478170e14356bbe2c3cce3f7bf67)" + }, + { + "id": "lakes.lswt", + "type": "Lakes", + "name": "Lakes", + "shortName": "Lakes", + "description": "..." } ] \ No newline at end of file diff --git a/storage/layers/layers-es.json b/storage/layers/layers-es.json index 444341b23..5f4f5dd63 100644 --- a/storage/layers/layers-es.json +++ b/storage/layers/layers-es.json @@ -152,5 +152,12 @@ "name": "Randolph Glacier Inventory", "shortName": "Glaciers", "description": "A glacier is a persistent body of dense ice…\n\n**Variable Shown:** Randolph Glacier Inventory \r\n\n**Time Span:** \r\n\n**Temporal Resolution:** \r\n\n**Geographic Extent:** global \r\n\n**Temporal resolution:** \r\n\n**Geographic Extent:** \r\n\n**Version:** Randolph Glacier Inventory\r\n\r\n[ESA CCI Glaciers ECV Project website](https://climate.esa.int/de/projekte/glaciers/) \r\n[Data in the Open Data Portal](https://catalogue.ceda.ac.uk/uuid/b05d478170e14356bbe2c3cce3f7bf67)" + }, + { + "id": "lakes.lswt", + "type": "Lakes", + "name": "Lakes", + "shortName": "Lakes", + "description": "..." } ] \ No newline at end of file diff --git a/storage/layers/layers-fr.json b/storage/layers/layers-fr.json index 58ca7d30f..09e97721d 100644 --- a/storage/layers/layers-fr.json +++ b/storage/layers/layers-fr.json @@ -152,5 +152,12 @@ "name": "Randolph Glacier Inventory", "shortName": "Glaciers", "description": "A glacier is a persistent body of dense ice…\n\n**Variable Shown:** Randolph Glacier Inventory \r\n\n**Time Span:** \r\n\n**Temporal Resolution:** \r\n\n**Geographic Extent:** global \r\n\n**Temporal resolution:** \r\n\n**Geographic Extent:** \r\n\n**Version:** Randolph Glacier Inventory\r\n\r\n[ESA CCI Glaciers ECV Project website](https://climate.esa.int/de/projekte/glaciers/) \r\n[Data in the Open Data Portal](https://catalogue.ceda.ac.uk/uuid/b05d478170e14356bbe2c3cce3f7bf67)" + }, + { + "id": "lakes.lswt", + "type": "Lakes", + "name": "Lakes", + "shortName": "Lakes", + "description": "..." } ] \ No newline at end of file diff --git a/storage/layers/layers-nl.json b/storage/layers/layers-nl.json index 444341b23..5f4f5dd63 100644 --- a/storage/layers/layers-nl.json +++ b/storage/layers/layers-nl.json @@ -152,5 +152,12 @@ "name": "Randolph Glacier Inventory", "shortName": "Glaciers", "description": "A glacier is a persistent body of dense ice…\n\n**Variable Shown:** Randolph Glacier Inventory \r\n\n**Time Span:** \r\n\n**Temporal Resolution:** \r\n\n**Geographic Extent:** global \r\n\n**Temporal resolution:** \r\n\n**Geographic Extent:** \r\n\n**Version:** Randolph Glacier Inventory\r\n\r\n[ESA CCI Glaciers ECV Project website](https://climate.esa.int/de/projekte/glaciers/) \r\n[Data in the Open Data Portal](https://catalogue.ceda.ac.uk/uuid/b05d478170e14356bbe2c3cce3f7bf67)" + }, + { + "id": "lakes.lswt", + "type": "Lakes", + "name": "Lakes", + "shortName": "Lakes", + "description": "..." } ] \ No newline at end of file