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: int¶
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: int¶
The number of not no data cells in the band.
- extent: QgsRectangle¶
Extent used to calc statistics
- height: int¶
Number of rows used to calc statistics
- maximumValue: float¶
The maximum cell value in the raster band. NO_DATA values are ignored. This does not use the gdal GetMaximmum function.
- mean: float¶
The mean cell value for the band. NO_DATA values are excluded.
- minimumValue: float¶
The minimum cell value in the raster band. NO_DATA values are ignored. This does not use the gdal GetMinimum function.
- range: float¶
The range is the distance between min & max.
- statsGathered: RasterBandStatistics¶
Collected statistics
- stdDev: float¶
The standard deviation of the cell values.
- sum: float¶
The sum of all cells in the band. NO_DATA values are excluded.
- sumOfSquares: float¶
The sum of the squares. Used to calculate standard deviation.
- width: int¶
Number of columns used to calc statistics