other versions
- jessie 6.4.4-1
- stretch 7.2.0-2
- testing 7.6.0-1
- unstable 7.6.0-1
- experimental 7.6.1-1~exp1
v.sample(1grass) | Grass User's Manual | v.sample(1grass) |
NAME¶
v.sample - Samples a raster map at vector point locations.KEYWORDS¶
vector, raster, resampleSYNOPSIS¶
v.sampleFlags:¶
- -b
-
- -c
-
- -q
-
- --overwrite
-
- --verbose
-
- --quiet
-
Parameters:¶
- input=name
-
- column=string
-
- output=name
-
- raster=name
-
- z=float
-
DESCRIPTION¶
v.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.NOTES¶
The 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.EXAMPLE¶
Comparison of "elevation.dem" and "elevation.10m" Spearfish maps at random places:v.random output=random n=100
v.db.addtable random col="el10 double"
v.what.rast rast=elevation.10m vect=random col=el10
v.db.select random
v.sample in=random col=el10 rast=elevation.dem out=elev_sample
v.db.select elev_sample
v.univar elev_sample col=diff type=point
SEE ALSO¶
g.region, v.random, v.what.rast Image Sampling Methods - GRASS Tutorial on s.sample (available as s.sample-tutorial.ps.gz)AUTHORS¶
James Darrell McCauleyGRASS 6.4.4 |