A custom QGIS tool for morphometric analysis
Morphomap is a custom QGIS processing algorithm designed for morphometric analysis. It processes raster layers such as Digital Elevation Models (DEM) and spectral bands to derive slope and Normalized Difference Vegetation Index (NDVI). The results are then exported to a feature sink for further analysis.
- Slope Calculation: Generates a slope layer from the input DEM.
- NDVI Calculation: Computes NDVI using the NIR (B08) and Red (B04) bands.
- Export Results: Outputs the final NDVI results to a feature sink.
- QGIS with Python support
- Familiarity with QGIS processing framework
- Open QGIS and navigate to the Processing Toolbox.
- Locate the "Morphomap 2" algorithm under the "Morphometric Analysis" group.
- Input the required raster layers for DEM, B03, B04, B08, and specify the output feature sink.
- Run the algorithm and review the outputs.
The script follows these key steps:
- Initialization: Set up input raster layers (DEM, B03, B04, B08) and the output feature sink.
- Slope Calculation: Generate a slope layer from the DEM raster.
- NDVI Calculation: Calculate NDVI using the formula
(NIR - Red) / (NIR + Red)
, with B08 as the NIR band and B04 as the Red band. - Export Results: Output the final NDVI results to the specified feature sink.