Compute statistics and histograms of geo-spatial data.
Functions
GetStatisticsFromMetadata(band) | |
SafeGetStatistics(band, approxok, force) | Retriewe statistics form a GDAL raster band in a safe way. |
computestats(dataset[, bands, computestats, ...]) | |
copy_dataset_subwin(dataset, srcwin[, ...]) | |
handlecmd([argv]) | |
main(*argv) | |
namedtuple(typename, field_names[, verbose, ...]) | Returns a new subclass of tuple with named fields. |
Classes
HistogramRequest([hmin, hmax, nbuckets, ...]) | |
Statistics | Statistics(min, max, mean, stddev) |
Bases: object
Enable histogram computation.
Histogram maximum.
Histogram minimum.
Flag for out of range values handling.
If set then values below the histogram range will be mapped into the first bucket, and values above will be mapped into last one. Otherwise out of range values are discarded.
Number of buckets for histogram comutation.
Retriewe statistics form a GDAL raster band in a safe way.
If it is not possible to get statistics (e.g. because the force flag is set to false and statistics are not available, or because the approxok is set and there are too many nodata elements in the raster band) then a tuple of four None is returned.
Parameters: |
|
---|
Note
in order to check errors due to nodata values the GDAL internal error status is reset.
Important
this function only works for versions of GDAL in which gdal.Band.GetStatistics correctly reset the return values: 1.6.4 <= GDAL < 1.7.0 and GDAL > 1.7.2 (see ticket #3572 on GDAL Trac.
Bases: tuple
Statistics(min, max, mean, stddev)
Alias for field number 1
Alias for field number 2
Alias for field number 0
Alias for field number 3