![]() |
![]()
| ![]() |
![]()
NAMEv.sample - Samples a raster map at vector point locations. KEYWORDSvector, sampling, raster SYNOPSISv.sample
Flags:
Parameters:
DESCRIPTIONv.sample samples a GRASS raster map at the point locations in the input file by either cubic convolution interpolation, bilinear interpolation, or nearest neighbor sampling (default). This program may be especially useful when sampling for cross validation of interpolations whose output is a raster map. NOTESThe output points will have the easting and northing of the input points. The input category value is used. The input attribute, raster value and difference is written to output. When NULL values are encountered for a cell, zero value is used instead. In these cases, more acurrate results may be obtained by using the default nearest neighbor comparisons. This program may not work properly with lat-long data when the -bc flags are used. When interpolation is done (i.e., the -bc flags are used), values are assumed to be located at the centroid of grid cells. Therefore, current resolution settings are important. EXAMPLEComparison of "elev_ned_30m" and
"elev_srtm_30m" North Carolina sample dataset elevation models at
random positions:
# set computational region: SEE ALSOg.region, v.random, v.what.rast Image Sampling Methods - GRASS Tutorial on s.sample (available as s.sample-tutorial.ps.gz) AUTHORSJames Darrell McCauley
Updated for GRASS 5.0 by Eric G. Miller
SOURCE CODEAvailable at: v.sample source code (history) Latest change: Thursday Jan 26 14:10:26 2023 in commit: cdd84c130cea04b204479e2efdc75c742efc4843 Main index | Vector index | Topics index | Keywords index | Graphical index | Full index © 2003-2025 GRASS Development Team, GRASS GIS 8.4.1 Reference Manual
|