zonal_statistics
Calculate raster statistics for every vector zone with exact fractional pixel coverage, producing per-zone metrics like count, mean, min, and max for further analysis.
Instructions
Statistics of a raster within each vector zone (exact fractional pixel coverage).
stats: subset of count/sum/mean/median/min/max/stdev/variance/majority/minority/
variety (default: count, mean, min, max). Zones are aligned to the raster CRS
automatically; the decision is recorded in the provenance manifest.
Zones without a CRS are refused; warnings and repairs keys in the result
flag a suspicious outcome or geometry MapSmith had to repair.
Requires the [raster] extra.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stats | No | ||
| zones_path | Yes | ||
| output_path | Yes | ||
| raster_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||