[GIS] Calculating raster statistics for each band in QGIS

imageryqgisrasterstatistics

i need to calculate raster statistics for RGBN (4 channels, multiband image) rasters in QGIS.

In Arcgis if you use "calculate statistics" in ArcCatalog, statistics are calculated for every image band.

In Qgis if you use "Raster layer statistics" you get a log file with a summary of image stats, so you cannot extract statistics for each band.

Do you know how this is achieved in Qgis?

Best Answer

One way to get statistics for each band in QGIS raster layer is:

  1. Go to Raster menu
  2. Expand the Miscellaneus list and select Information... tool
  3. In new window select your raster layer
  4. Activate command edditing with a Pencil icon
  5. Add -stats flag to a command (between gdalinfo and path to raster)

enter image description here

Run a command.

As a result you will see log with simple statistics for each band.