QGIS-Documentation
QGIS-Documentation copied to clipboard
Add a "fixed range per band" elevation mode for rasters (Request in QGIS)
Request for documentation
From pull request qgis/QGIS#56889 Author: @nyalldawson QGIS version: 3.38
Add a "fixed range per band" elevation mode for rasters
PR Description:
In this mode, each band in the raster can have a fixed elevation range associated with it. This is designed for data sources which expose elevation related data in bands, eg netcdf files, such as a raster with temperate data at different ocean depths.
When rendering, the UPPER MOST matching band will be selected and used for the layer's data. (The renderer configuration will be retained unchanged regardless of the matching band, so users must configure the renderer for the layer using a representative range which covers the data from all bands.)
This is exposed as a user editable table of raster bands with lower and upper values. Users can either populate the lower and upper values manually, or use an expression to auto fill all band values based on a qgis expression.
The expression based fill allows for users to design expressions which extract useful information from band names, eg extracting the depth value from a "Band 001: depth=-5500 (meters)" style band name.