Class: QgsRasterBandStats¶
The RasterBandStats struct is a container for statistics about a single raster band.
Enums
alias of   | 
Methods
Compares region, size etc.  | 
Attributes
The gdal band number (starts at 1)  | 
|
The number of not no data cells in the band.  | 
|
Extent used to calc statistics  | 
|
Number of rows used to calc statistics  | 
|
The maximum cell value in the raster band.  | 
|
The mean cell value for the band.  | 
|
The minimum cell value in the raster band.  | 
|
The range is the distance between min & max.  | 
|
Collected statistics  | 
|
The standard deviation of the cell values.  | 
|
The sum of all cells in the band.  | 
|
The sum of the squares.  | 
|
Number of columns used to calc statistics  | 
- class qgis.core.QgsRasterBandStats[source]¶
 Bases:
object- Stats¶
 alias of
RasterBandStatistic
- bandNumber¶
 The gdal band number (starts at 1)
- contains(self, s: QgsRasterBandStats) bool[source]¶
 Compares region, size etc. not collected statistics
- Parameters:
 - Return type:
 bool
- elementCount¶
 The number of not no data cells in the band.
- extent¶
 Extent used to calc statistics
- height¶
 Number of rows used to calc statistics
- maximumValue¶
 The maximum cell value in the raster band. NO_DATA values are ignored. This does not use the gdal GetMaximmum function.
- mean¶
 The mean cell value for the band. NO_DATA values are excluded.
- minimumValue¶
 The minimum cell value in the raster band. NO_DATA values are ignored. This does not use the gdal GetMinimum function.
- range¶
 The range is the distance between min & max.
- statsGathered¶
 Collected statistics
- stdDev¶
 The standard deviation of the cell values.
- sum¶
 The sum of all cells in the band. NO_DATA values are excluded.
- sumOfSquares¶
 The sum of the squares. Used to calculate standard deviation.
- width¶
 Number of columns used to calc statistics