Difference between revisions of "GRASS vector"

From gnewarchaeology wiki
Jump to: navigation, search
 
Line 22: Line 22:
  
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
 +
== 3D plot ==
 +
 +
=== NVIZ ===
 +
 +
<syntaxhighlight lang="bash">
 +
# import csv data
 +
v.in.ascii -z --verbose input=/home/dncgst/project/tsr_rr/data/tsr_fossils-y.csv output=fossil separator=comma skip=1 x=8 y=7 z=9 cat=1
 +
# set the region to match the vectore layer
 +
g.region --verbose vector=fossil@tsr
 +
# adjust the region
 +
g.region n=6 s=2 e=-13 w=-23 t=-3.30 b=-4.60 res3=0.001 tbres=0.001
 +
# make a grid
 +
v.mkgrid --verbose map=grid grid=4,10
 +
# add a base layer
 +
r.mapcalc "bottom = -4.60"
 +
#
 +
</syntaxhighlight>
 +
 +
 +
[[Category:GRASS]]

Latest revision as of 19:54, 17 October 2016

GRASS > GRASS vector


Interpolation

Regularized Spline with tension method

# set the region resolution first!
v.surf.rst input=bull_point@marathousa elevation=bull_surf
v.surf.rst --overwrite --verbose input=bull_point@marathousa elevation=bull_surf segmax=30 dmin=0.3

Inverse Distance Squared Weighting method

The interpolated value of a cell is determined by values of nearby data points and the distance of the cell from those input points. In comparison with other methods, numerical approximation allows representation of more complex surfaces (particularly those with anomalous features), restricts the spatial influence of any errors, and generates the interpolated surface from the data points.

3D plot

NVIZ

# import csv data
v.in.ascii -z --verbose input=/home/dncgst/project/tsr_rr/data/tsr_fossils-y.csv output=fossil separator=comma skip=1 x=8 y=7 z=9 cat=1
# set the region to match the vectore layer
g.region --verbose vector=fossil@tsr
# adjust the region
g.region n=6 s=2 e=-13 w=-23 t=-3.30 b=-4.60 res3=0.001 tbres=0.001
# make a grid
v.mkgrid --verbose map=grid grid=4,10
# add a base layer
r.mapcalc "bottom = -4.60"
#