geo-registry

v.rast.stats

How GRASS runs Zonal statistics: v.rast.stats.

About this implementation
Engine GRASS
Tool name v.rast.stats
Interface cli
Implements Zonal statistics
Preset {"column_prefix":"zonal"}
Documentation Not stated
Effects modifies input: yes, network: no
Notes Not stated
Status active

Parameters

Name Type Required Default Choices Note
map string yes Not stated Not stated vector name
layer string no 1 Not stated layer name
type string no point,line,boundary,centroid,area point, line, boundary, centroid, area multiple values
where string no Not stated Not stated sql_query name
raster string yes Not stated Not stated cell name; multiple values
column_prefix string yes Not stated Not stated multiple values
method string no number,null_cells,minimum,maximum,range,average,stddev,variance,coeff_var,sum,first_quartile,median,third_quartile,percentile number, null_cells, minimum, maximum, range, average, stddev, variance, coeff_var, sum, first_quartile, median, third_quartile, percentile multiple values
percentile integer no 90 0-100 Not stated
flag_c boolean no Not stated Not stated flag -c
flag_d boolean no Not stated Not stated flag -d

How it maps to the operation

Operation parameter Parameter here Note
zones map Not stated
raster raster Not stated
stats method count = number; mean = average; min = minimum; max = maximum; sum = sum; std = stddev

Differences from the operation

  • Writes the statistics as new columns in the zone map's own attribute table; there is no separate output.

Harvested by the grass harvester from engine version 8.5.0. Names can change when an engine is harvested again.