-
dtcc.Raster.stats(polygons: Polygon | list[Polygon], stats=
['mean']
) Compute statistics for a raster within a polygon.
- Parameters:¶
- polygons: Polygon | list[Polygon]¶
A Polygon or a list of Polygons.
- stats=
['mean']
¶ A list of statistics to compute. Supported statistics are:
- ['count' : where X is a number between 0 and 100
- 'min' : where X is a number between 0 and 100
- 'max' : where X is a number between 0 and 100
- 'mean' : where X is a number between 0 and 100
- 'median' : where X is a number between 0 and 100
- 'majority' : where X is a number between 0 and 100
- 'minority' : where X is a number between 0 and 100
- 'unique' : where X is a number between 0 and 100
- 'sum' : where X is a number between 0 and 100
- 'std' : where X is a number between 0 and 100
- 'var' : where X is a number between 0 and 100
- 'percentile_X' : where X is a number between 0 and 100