Skip to content

Commit

Permalink
lib: Add new SRTM_percent color table (#4608)
Browse files Browse the repository at this point in the history
This color table uses the color ramp from the srtm_plus color table for terrain to create colors for relative elevation (spread over the range of elevations in a raster map) rather than absolute elevation in meters. This applies srtm colors in a way similar to the way the elevation color table applies them. This color table is especially useful in creating nice looking elevation maps and shading relief maps.
  • Loading branch information
cmbarton authored Nov 1, 2024
1 parent 7d9bbac commit 4385b26
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/gis/colors.desc
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ sepia: yellowish-brown through to white
slope: r.slope.aspect-type slope colors for raster values 0-90
soilmoisture: soilmoisture color table (0.0-1.0)
srtm: color palette for Shuttle Radar Topography Mission elevation
srtm_percent: color palette for Shuttle Radar Topography Mission using relative elevation
srtm_plus: color palette for Shuttle Radar Topography Mission elevation (with seafloor colors)
terrain: global elevation color table covering -11000 to +8850m
viridis: perceptually uniform sequential color table viridis
Expand Down
7 changes: 7 additions & 0 deletions lib/gis/colors/srtm_percent
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
0% 57 151 105
25% 117 194 93
40% 230 230 128
55% 214 187 98
70% 185 154 100
80% 150 120 80
100% 220 220 220

0 comments on commit 4385b26

Please sign in to comment.