raster_stats#

Classes

RasterStats

Band-wise means and standard deviations.

Functions

get_chip(raster_source, window[, nodata_value])

Return chip or None if all values are NODATA.

get_num_chips_to_sample(extent, chip_sz, ...)

parallel_mean(mean_a, count_a, mean_b, count_b)

Compute the mean based on stats from two partitions of the data.

parallel_variance(mean_a, count_a, var_a, ...)

Compute the variance based on stats from two partitions of the data.

random_chip_stream(raster_sources, chip_sz, ...)

Get random stream of chips.

sliding_chip_stream(raster_sources, chip_sz, ...)

Get stream of chips using a sliding window.