viz.raster_histogram_plot

Draw the distribution of a raster band's values.

  • Kind: standard
  • Network: no
  • Memory: 8Gi

Inputs🔗

NameTypeRequiredDefaultDescription
rasterfile (GeoTIFF)yesRaster to summarise.
bandnumberno1Band.
binsnumberno50Number of bins.
log_ybooleannoFalseLogarithmic count axis.
max_pixelsnumberno4096Longest edge, in pixels, the raster is read at.
titlestringnoblankChart title. ${item.key} labels each chart inside a map.
formatstringnopngImage format. html is a static, self-contained page. One of png, svg, html.

Outputs🔗

NameTypeDescription
chartfile (PNG)The histogram.

Example🔗

- id: "@raster_histogram_plot"
  name: viz.raster_histogram_plot
  inputs: [{block: "@dem", output: raster, as: raster}]
  args:
    bins: 40