Skip to content

Commit

Permalink
manual: correct v.surf.rst example
Browse files Browse the repository at this point in the history
Update broken example.
  • Loading branch information
neteler committed May 27, 2024
1 parent 9f2952c commit cc6d71c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions vector/v.surf.rst/v.surf.rst.html
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ <h3>Usage of the where parameter</h3>
<div class="code"><pre>
g.region raster=elevation -p
# random elevation extraction of 500 samplings
r.random elevation vector_output=elevrand n=500
r.random -s elevation vector=elevrand n=500
v.info -c elevrand
v.db.select elevrand

Expand All @@ -329,11 +329,14 @@ <h3>Usage of the where parameter</h3>
d.rast elev_full
d.vect elevrand

# interpolation based on subset of points (only those over 1300m/asl)
v.surf.rst elevrand zcol=value elevation=elev_partial where="value > 1300"
# compute univariate statistics with 1st/3rd quartiles
v.db.univar -e elevrand column=value

# interpolation based on subset of points (only those over 3rd quartile)
v.surf.rst elevrand zcol=value elevation=elev_partial where="value > 123.7"
r.colors elev_partial raster=elevation
d.rast elev_partial
d.vect elevrand where="value > 1300"
d.vect elevrand where="value > 123.7"
</pre></div>

<h2>REFERENCES</h2>
Expand Down

0 comments on commit cc6d71c

Please sign in to comment.