diff --git a/data/gdal-colors/colors-lswt.txt b/data/gdal-colors/colors-lswt.txt index b746dff2f..42074a417 100644 --- a/data/gdal-colors/colors-lswt.txt +++ b/data/gdal-colors/colors-lswt.txt @@ -1,9 +1,14 @@ -3500 230 56 30 -2250 230 230 30 -1250 30 230 30 -500 20 210 230 --500 28 88 203 --4999 28 88 203 +3500 120 10 10 +3000 240 40 40 +2500 240 120 30 +2000 250 210 35 +1500 148 200 148 +1000 100 200 200 +500 65 168 240 +0 40 40 140 +-500 10 10 60 +-4999 10 10 60 -5000 255 255 255 -42767 0 0 0 0 nv 0 0 0 0 + diff --git a/data/layers-config.json b/data/layers-config.json index 0d099d7e7..1e792ec28 100644 --- a/data/layers-config.json +++ b/data/layers-config.json @@ -321,6 +321,7 @@ }, "lakes.lswt": { "colorMap": "custom", + "basemap": "dark", "timeFormat": { "year": "numeric", "month": "long" diff --git a/data/triggers/lakes_lswt.sh b/data/triggers/lakes_lswt.sh index 58b81cc7a..d15bdd9ec 100755 --- a/data/triggers/lakes_lswt.sh +++ b/data/triggers/lakes_lswt.sh @@ -4,7 +4,7 @@ TIMEOUT=16000 LAYER_ID="lakes.lswt" VARIABLE_ID="lswt" LAYER_TYPE="image" -VERSION="1.7.1" +VERSION="1.8.1" LON_RES="4320" LAT_RES="2160" ZOOM_LEVELS="0-3" diff --git a/scripts/generate-legend-images.js b/scripts/generate-legend-images.js index 41d6198a5..7e3dbf734 100644 --- a/scripts/generate-legend-images.js +++ b/scripts/generate-legend-images.js @@ -64,11 +64,18 @@ files.forEach(file => { function readColorFile(file) { const filePath = path.join(INTPUT_FOLDER, file); const content = fs.readFileSync(filePath, 'utf8'); - return content + const stops = content .split('\n') .filter(Boolean) .filter(line => !line.startsWith('nv')) .map(line => line.split(' ')); + + if (file.includes('lswt')) { + // do not include the "ice" color + return stops.filter(([v]) => v > -1000); + } + + return stops; } function writeImage(file, canvas) {