viz.raster_map Draw a raster as a map: one band with a colour map, or three bands as RGB, optionally over a hillshade. Reads at the drawn size, from overviews when present.
Kind: standardNetwork: noMemory: 8GiName Type Required Default Description rasterfile (GeoTIFF) yes Raster to draw. hillshadefile (GeoTIFF) no Shaded relief drawn beneath the raster. stylefile (JSON) no A JSON document whose fields override the arguments below. bandnumber no 1Band to draw. rgb_bandsstring no blank Three bands to draw as RGB, e.g. "4,3,2". Overrides band. colormapstring no viridismatplotlib colour map name. stretchstring no minmaxHow values map to colours. One of minmax, percent_clip, stddev. nodata_colorstring no blank Colour behind nodata pixels; blank leaves them white. legendboolean no TrueDraw a colour bar. max_pixelsnumber no 4096Longest edge, in pixels, the raster is read at. titlestring no blank Chart title. ${item.key} labels each chart inside a map. widthnumber no 8Figure width in inches. formatstring no pngImage format. html is a static, self-contained page. One of png, svg, html.
Outputs🔗 Name Type Description mapfile (PNG) The map.
Example🔗 - id : " @raster_map "
name : viz.raster_map
inputs : [{ block : " @dem ", output : raster , as : raster }]
args :
colormap : terrain
stretch : percent_clip
title : Elevation ← Previous viz.raster_histogram_plot Next → viz.heatmap