Note: This document is for an older version of GRASS GIS that has been discontinued. You should upgrade, and read the current manual page.
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
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.
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
Figure: Number of schools (left part) and sum of CAPACITYTO attribute column (right part) in grid of spatial resolution 1km.
g.region,
v.out.ascii,
r.in.xyz,
r.in.lidar
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: Tuesday Nov 05 09:35:47 2024 in commit: f00067506253c89598cffadc3c7fa07cff7233fd
Main index |
Raster index |
Topics index |
Keywords index |
Graphical index |
Full index
© 2003-2024
GRASS Development Team,
GRASS GIS 8.3.3dev Reference Manual