Zonalstats.compute_stats
- Zonalstats.compute_stats(raster: str, bands: List[int], geometries: GeoDataFrame, descr: List[str], date: str, area_square_meter: int) List[List[Dict[str, float]]][source]
Compute the statistics of the input data. [Minimum, Maximum, Mean, Standard deviation]
- Parameters:
raster (str) – Input image to process
bands ([int]) – List of bands in the input image to process. Empty list means all bands
geometries (GeoDataFrame) – Geometries where to add statistics (geometries must be in the same projection as the raster)
descr ([str]) – Band descriptions
date (str) – Timestamp of the input raster
area_square_meter (int) – Area represented by a pixel
Returns: list[list[dict]] The dictionnary associates the name of the statistics to its value.