// DEM Topographic Visualization//VERSION=3functionsetup(){return{input:["DEM"],output:{bands:3}};}functionevaluatePixel(sample){letval=sample.DEM;letimgVals=null;if(val>8000)imgVals=[1,1,1];elseif(val>7000)imgVals=[0.95,0.95,0.95];elseif(val>6000)imgVals=[0.9,0.9,0.9];elseif(val>5500)imgVals=[0.29,0.22,0.07];elseif(val>5000)imgVals=[0.37,0.30,0.15];elseif(val>4500)imgVals=[0.45,0.38,0.22];elseif(val>4000)imgVals=[0.53,0.45,0.30];elseif(val>3500)imgVals=[0.6,0.53,0.38];elseif(val>3000)imgVals=[0.68,0.61,0.46];elseif(val>2500)imgVals=[0.76,0.69,0.54];elseif(val>2000)imgVals=[0.84,0.77,0.62];elseif(val>1500)imgVals=[0.92,0.85,0.69];elseif(val>1000)imgVals=[0.99,0.93,0.75];elseif(val>900)imgVals=[0.67,0.87,0.63];elseif(val>800)imgVals=[0.65,0.84,0.61];elseif(val>700)imgVals=[0.59,0.81,0.56];elseif(val>600)imgVals=[0.52,0.76,0.48];elseif(val>500)imgVals=[0.48,0.73,0.44];elseif(val>400)imgVals=[0.45,0.70,0.40];elseif(val>300)imgVals=[0.37,0.64,0.33];elseif(val>200)imgVals=[0.30,0.58,0.25];elseif(val>100)imgVals=[0.24,0.53,0.24];elseif(val>75)imgVals=[0.21,0.49,0.23];elseif(val>50)imgVals=[0.18,0.45,0.18];elseif(val>25)imgVals=[0.15,0.41,0.13];elseif(val>10)imgVals=[0.12,0.37,0.08];elseif(val>0)imgVals=[0.09,0.33,0.03];elseimgVals=[0.06,0.06,0.55];returnimgVals;}
Description
Sentinel Hub supports Mapzen DEM and Copernicus DEM. Mapzen DEM is based on SRTM30 (Shuttle Radar Topography Mission) and other sources. Copernicus DEM is based on WorldDEM that is infilled on a local basis with the following DEMs: ASTER, SRTM90, SRTM30, SRTM30plus, GMTED2010, TerraSAR-X Radargrammetric DEM, ALOS World 3D-30m. More information can be found in our documentation.
This script returns a visualisation with green colours representing lowland elevations and earth colours as mountainous elevations. The script uses discrete classes rather than the continuous visualisations in the other DEM evalscripts in this repository.