Note: This document is for an older version of GRASS GIS that has been discontinued. You should upgrade, and read the current manual page.

GRASS logo

NAME

r.vect.stats - Bins vector points into a raster map.

KEYWORDS

raster, vector, points, binning

SYNOPSIS

r.vect.stats
r.vect.stats --help
r.vect.stats input=name output=name [column=name] [method=string] [--overwrite] [--help] [--verbose] [--quiet] [--ui]

Flags:

--overwrite
Allow output files to overwrite existing files
--help
Print usage summary
--verbose
Verbose module output
--quiet
Quiet module output
--ui
Force launching GUI dialog

Parameters:

input=name [required]
Name of input vector map
Or data source for direct OGR access
output=name [required]
Name for output raster map
column=name
Name of attribute column for statistics
method=string
Statistic to use for raster values
Options: n, min, max, range, sum, mean, stddev, variance, coeff_var, median, percentile, skewness, trimmean
Default: mean
n: Number of points in cell
min: Minimum value of point values in cell
max: Maximum value of point values in cell
range: Range of point values in cell
sum: Sum of point values in cell
mean: Mean (average) value of point values in cell
stddev: Standard deviation of point values in cell
variance: Variance of point values in cell
coeff_var: Coefficient of variance of point values in cell
median: Median value of point values in cell
percentile: Pth (nth) percentile of point values in cell
skewness: Skewness of point values in cell
trimmean: Trimmed mean of point values in cell

Table of contents

DESCRIPTION

r.vect.stats bins points from a vector map into a raster map.

Use g.region to set the extent and resolution of the resulting raster.

EXAMPLES

Calculate number of schools in grid of spatial resolution 1km:
g.region res=1000 vector=schools_wake
r.vect.stats input=schools_wake output=schools_count    
Calculate sum of atribute column CAPACITYTO:
r.vect.stats input=schools_wake output=schools_capacity_sum column=CAPACITYTO method=sum
Number of schools in grid of spatial resolution 1km Sum of atribute column CAPACITYTO in grid of spatial resolution 1km
Figure: Number of schools (left part) and sum of CAPACITYTO attribute column (right part) in grid of spatial resolution 1km.

SEE ALSO

g.region, v.out.ascii, r.in.xyz, r.in.lidar

AUTHOR

Vaclav Petras, NCSU GeoForAll Lab
Column and method parameters added by Martin Landa, CTU GeoForAll Lab

SOURCE CODE

Available at: r.vect.stats source code (history)

Latest change: Monday Jun 28 07:54:09 2021 in commit: 1cfc0af029a35a5d6c7dae5ca7204d0eb85dbc55


Main index | Raster index | Topics index | Keywords index | Graphical index | Full index

© 2003-2023 GRASS Development Team, GRASS GIS 7.8.9dev Reference Manual