v.surf.rst.html 27.5 KB
Newer Older
xuebingbing's avatar
xuebingbing committed
1 2 3
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
xuebingbing's avatar
xuebingbing committed
4
<title>v.surf.rst - GRASS GIS manual</title>
xuebingbing's avatar
xuebingbing committed
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="grassdocs.css" type="text/css">
</head>
<body bgcolor="white">
<div id="container">

<a href="index.html"><img src="grass_logo.png" alt="GRASS logo"></a>
<hr class="header">

<h2>NAME</h2>
<em><b>v.surf.rst</b></em>  - Performs surface interpolation from vector points map by splines.<BR>
Spatial approximation and topographic analysis from given point or isoline data in vector format to floating point raster format using regularized spline with tension.
<h2>KEYWORDS</h2>
<a href="vector.html">vector</a>, <a href="topic_surface.html">surface</a>, <a href="keywords.html#interpolation">interpolation</a>, <a href="keywords.html#splines">splines</a>, <a href="keywords.html#RST">RST</a>, <a href="keywords.html#3D">3D</a>, <a href="keywords.html#no-data filling">no-data filling</a>
<h2>SYNOPSIS</h2>
<div id="name"><b>v.surf.rst</b><br></div>
<b>v.surf.rst --help</b><br>
<div id="synopsis"><b>v.surf.rst</b> [-<b>ctd</b>] <b>input</b>=<em>name</em>  [<b>layer</b>=<em>string</em>]   [<b>zcolumn</b>=<em>name</em>]   [<b>where</b>=<em>sql_query</em>]   [<b>elevation</b>=<em>name</em>]   [<b>slope</b>=<em>name</em>]   [<b>aspect</b>=<em>name</em>]   [<b>pcurvature</b>=<em>name</em>]   [<b>tcurvature</b>=<em>name</em>]   [<b>mcurvature</b>=<em>name</em>]   [<b>deviations</b>=<em>name</em>]   [<b>cvdev</b>=<em>name</em>]   [<b>treeseg</b>=<em>name</em>]   [<b>overwin</b>=<em>name</em>]   [<b>nprocs</b>=<em>integer</em>]   [<b>mask</b>=<em>name</em>]   [<b>tension</b>=<em>float</em>]   [<b>smooth</b>=<em>float</em>]   [<b>smooth_column</b>=<em>string</em>]   [<b>segmax</b>=<em>integer</em>]   [<b>npmin</b>=<em>integer</em>]   [<b>dmin</b>=<em>float</em>]   [<b>dmax</b>=<em>float</em>]   [<b>zscale</b>=<em>float</em>]   [<b>theta</b>=<em>float</em>]   [<b>scalex</b>=<em>float</em>]   [--<b>overwrite</b>]  [--<b>help</b>]  [--<b>verbose</b>]  [--<b>quiet</b>]  [--<b>ui</b>] 
</div>

<div id="flags">
<h3>Flags:</h3>
<dl>
<dt><b>-c</b></dt>
<dd>Perform cross-validation procedure without raster approximation</dd>

<dt><b>-t</b></dt>
<dd>Use scale dependent tension</dd>

<dt><b>-d</b></dt>
<dd>Output partial derivatives instead of topographic parameters</dd>

<dt><b>--overwrite</b></dt>
<dd>Allow output files to overwrite existing files</dd>
<dt><b>--help</b></dt>
<dd>Print usage summary</dd>
<dt><b>--verbose</b></dt>
<dd>Verbose module output</dd>
<dt><b>--quiet</b></dt>
<dd>Quiet module output</dd>
<dt><b>--ui</b></dt>
<dd>Force launching GUI dialog</dd>
</dl>
</div>

<div id="parameters">
<h3>Parameters:</h3>
<dl>
<dt><b>input</b>=<em>name</em>&nbsp;<b>[required]</b></dt>
<dd>Name of input vector map</dd>
<dd>Or data source for direct OGR access</dd>

<dt><b>layer</b>=<em>string</em></dt>
<dd>Layer number or name</dd>
<dd>Vector features can have category values in different layers. This number determines which layer to use. When used with direct OGR access this is the layer name.</dd>
<dd>Default: <em>1</em></dd>

<dt><b>zcolumn</b>=<em>name</em></dt>
<dd>Name of the attribute column with values to be used for approximation</dd>
<dd>If not given and input is 2D vector map then category values are used. If input is 3D vector map then z-coordinates are used.</dd>

<dt><b>where</b>=<em>sql_query</em></dt>
<dd>WHERE conditions of SQL statement without 'where' keyword</dd>
<dd>Example: income &lt; 1000 and population &gt;= 10000</dd>

<dt><b>elevation</b>=<em>name</em></dt>
<dd>Name for output surface elevation raster map</dd>

<dt><b>slope</b>=<em>name</em></dt>
<dd>Name for output slope raster map</dd>

<dt><b>aspect</b>=<em>name</em></dt>
<dd>Name for output aspect raster map</dd>

<dt><b>pcurvature</b>=<em>name</em></dt>
<dd>Name for output profile curvature raster map</dd>

<dt><b>tcurvature</b>=<em>name</em></dt>
<dd>Name for output tangential curvature raster map</dd>

<dt><b>mcurvature</b>=<em>name</em></dt>
<dd>Name for output mean curvature raster map</dd>

<dt><b>deviations</b>=<em>name</em></dt>
<dd>Name for output deviations vector point map</dd>

<dt><b>cvdev</b>=<em>name</em></dt>
<dd>Name for output cross-validation errors vector point map</dd>

<dt><b>treeseg</b>=<em>name</em></dt>
<dd>Name for output vector map showing quadtree segmentation</dd>

<dt><b>overwin</b>=<em>name</em></dt>
<dd>Name for output vector map showing overlapping windows</dd>

<dt><b>nprocs</b>=<em>integer</em></dt>
<dd>Number of threads for parallel computing</dd>
<dd>Default: <em>1</em></dd>

<dt><b>mask</b>=<em>name</em></dt>
<dd>Name of raster map used as mask</dd>

<dt><b>tension</b>=<em>float</em></dt>
<dd>Tension parameter</dd>
<dd>Default: <em>40.</em></dd>

<dt><b>smooth</b>=<em>float</em></dt>
<dd>Smoothing parameter</dd>
<dd>Smoothing is by default 0.5 unless smooth_column is specified</dd>

<dt><b>smooth_column</b>=<em>string</em></dt>
<dd>Name of the attribute column with smoothing parameters</dd>

<dt><b>segmax</b>=<em>integer</em></dt>
<dd>Maximum number of points in a segment</dd>
<dd>Default: <em>40</em></dd>

<dt><b>npmin</b>=<em>integer</em></dt>
<dd>Minimum number of points for approximation in a segment (&gt;segmax)</dd>
<dd>Default: <em>300</em></dd>

<dt><b>dmin</b>=<em>float</em></dt>
<dd>Minimum distance between points (to remove almost identical points)</dd>

<dt><b>dmax</b>=<em>float</em></dt>
<dd>Maximum distance between points on isoline (to insert additional points)</dd>

<dt><b>zscale</b>=<em>float</em></dt>
<dd>Conversion factor for values used for approximation</dd>
<dd>Default: <em>1.0</em></dd>

<dt><b>theta</b>=<em>float</em></dt>
<dd>Anisotropy angle (in degrees counterclockwise from East)</dd>

<dt><b>scalex</b>=<em>float</em></dt>
<dd>Anisotropy scaling factor</dd>

</dl>
</div>
<div class="toc">
<h4 class="toc">Table of contents</h4>
<ul class="toc">
    <li class="toc"><a href="#description" class="toc">DESCRIPTION</a></li>
    <li class="toc"><a href="#notes" class="toc">NOTES</a>
    <ul class="toc">
        <li class="toc"><a href="#cross-validation-procedure" class="toc">Cross validation procedure</a></li>
    </ul></li>
    <li class="toc"><a href="#example" class="toc">EXAMPLE</a>
    <ul class="toc">
        <li class="toc"><a href="#setting-for-lidar-point-cloud" class="toc">Setting for lidar point cloud</a></li>
        <li class="toc"><a href="#usage-of-the-where-parameter" class="toc">Usage of the where parameter</a></li>
    </ul></li>
    <li class="toc"><a href="#references" class="toc">REFERENCES</a></li>
    <li class="toc"><a href="#see-also" class="toc">SEE ALSO</a></li>
    <li class="toc"><a href="#authors" class="toc">AUTHORS</a></li>
</ul>
</div>
<h2><a name="description">DESCRIPTION</a></h2>

<em>v.surf.rst</em> program performs spatial approximation based on
<em>z-values</em> (input vector map is 3D and <b>zcolumn</b> parameter
is not given), <em>categories</em> (input vector map is 2D
and <b>zcolumn</b> parameter is not given), or <em>attributes</em>
(<b>zcolumn</b> parameter is given) of point or isoline data given in
a vector map named <b>input</b> to grid cells in the output raster
map <b>elevation</b> representing a surface.

<p>
As an option, simultaneously with approximation, topographic
parameters slope, aspect, profile curvature (measured in the direction
of the steepest slope), tangential curvature (measured in the
direction of a tangent to contour line) or mean curvature are computed
and saved as raster maps specified by the options <b>slope, aspect,
pcurv, tcurv, mcurv</b> respectively. If <b>-d</b> flag is
set, <em>v.surf.rst</em> outputs partial derivatives
f<sub>x</sub>,f<sub>y</sub>,f<sub>xx</sub>,
f<sub>yy</sub>,f<sub>xy</sub> instead of slope, aspect, profile,
tangential and mean curvatures respectively. If the input vector map
have time stamp, the program creates time stamp for all output maps.

<p>
User can either use <em><a href="r.mask.html">r.mask</a></em> to set a mask
or specify a raster map in <b>mask</b> option, which will be used
as a mask. The approximation is skipped for cells which have zero or
NULL value in mask. NULL values will be assigned to these cells in all
output raster maps. Data points are checked for identical points and
points that are closer to each other than the given <b>dmin</b> are
removed.  If sparsely digitized contours or isolines are used as
input, additional points are computed between each 2 points on a line
if the distance between them is greater than
specified <b>dmax</b>. Parameter
<b>zmult</b> allows user to rescale the values used for approximation
 (useful e.g. for transformation of
elevations given in feet to meters, so that the proper values of slopes
and curvatures can be computed).

<p>
Regularized spline with tension is used for the approximation. The
<b>tension</b> parameter tunes the character of the resulting surface
from thin plate to membrane. Smoothing parameter <b>smooth</b>
controls the deviation between the given points and the resulting
surface and it can be very effective in smoothing noisy data while
preserving the geometrical properties of the surface.  With the
smoothing parameter set to zero (<b>smooth=0</b>) the resulting
surface passes exactly through the data points (spatial interpolation
is performed). When smoothing parameter is used, it is also possible
to output a vector point map <b>deviations</b> containing deviations of the
resulting surface from the given data.

<p>
If the number of given points is greater than <b>segmax</b>, segmented
processing is used. The region is split into quadtree-based
rectangular segments, each having less than <b>segmax</b> points and
approximation is performed on each segment of the region. To ensure
smooth connection of segments the approximation function for each
segment is computed using the points in the given segment and the
points in its neighborhood which are in the rectangular window
surrounding the given segment. The number of points taken for
approximation is controlled by <b>npmin</b>, the value of which must
be larger than <b>segmax</b>.  User can choose to output vector
maps <b>treeseg</b> and <b>overwin</b> which represent the quad tree
used for segmentation and overlapping neighborhoods from which
additional points for approximation on each segment were taken.

<p>
Predictive error of surface approximation for given parameters can be
computed using the <b>-c</b> flag. A crossvalidation procedure is then
performed using the data given in the vector map <b>input</b> and the
estimated predictive errors are stored in the vector point map
<b>cvdev</b>. When using this flag, no raster output maps are computed.

Anisotropic surfaces can be interpolated by setting anisotropy
angle <b>theta</b> and scaling factor <b>scalex</b>.  The program
writes values of selected input and internally computed parameters to
the history file of raster map
<b>elevation</b>.

<p>
The user must run <em><a href="g.region.html">g.region</a></em> before
the program to set the region and resolution for approximation.

<h2><a name="notes">NOTES</a></h2>

<em>v.surf.rst</em> uses regularized spline with tension for
approximation from vector data. The module does not require input data
with topology, therefore both level1 (no topology) and level2 (with
topology) vector point data are supported.  Additional points are used
for approximation between each 2 points on a line if the distance
between them is greater than specified <b>dmax</b>. If <b>dmax</b> is
small (less than cell size) the number of added data points can be
vary large and slow down approximation significantly.  The
implementation has a segmentation procedure based on quadtrees which
enhances the efficiency for large data sets. Special color tables are
created by the program for output raster maps.

<p>
Topographic parameters are computed directly from the approximation
function so that the important relationships between these parameters
are preserved. The equations for computation of these parameters and
their interpretation is described in
<a href="http://www4.ncsu.edu/~hmitaso/gmslab/papers/hmg.rev1.ps">Mitasova and Hofierka, 1993</a>
or Neteler and Mitasova, 2004).
Slopes and aspect are computed in degrees (0-90 and 1-360 respectively).
The aspect raster map has value 0 assigned to flat areas (with slope less
than 0.1%) and to singular points with undefined aspect. Aspect points
downslope and is 90 to the North, 180 to the West, 270 to the South and
360 to the East, the values increase counterclockwise. Curvatures are positive
for convex and negative for concave areas. Singular points with undefined
curvatures have assigned zero values.

<p>
Tension and smoothing allow user to tune the surface character.
For most landscape scale applications the default values should
provide adequate results.  The program gives warning when significant
overshoots appear in the resulting surface and higher tension or
smoothing should be used.

<!--
<br>While it is possible to automate the selection of
suitable <b>tension</b> and <b>smooth</b>ing, it has not been done
yet, so here are some hints which may help to choose the proper
parameters if the results look "weird".  -->

<p>
To select parameters that will produce a surface with desired
properties, it is useful to know that the method is scale dependent
and the tension works as a rescaling parameter (high tension
&quot;increases the distances between the points&quot; and reduces the
range of impact of each point, low tension &quot;decreases the
distance&quot; and the points influence each other over longer
range). Surface with tension set too high behaves like a membrane
(rubber sheet stretched over the data points) with peak or pit
(&quot;crater&quot;) in each given point and everywhere else the
surface goes rapidly to trend. If digitized contours are used as input
data, high tension can cause artificial waves along contours. Lower
tension and higher smoothing is suggested for such a case.

<p>
Surface with <b>tension</b> set too low behaves like a stiff steel
plate and overshoots can appear in areas with rapid change of gradient
and segmentation can be visible. Increase in tension should solve the
problems.

<p>
There are two options how <b>tension</b> can be applied in relation
to <b>dnorm</b> (dnorm rescales the coordinates depending on the
average data density so that the size of segments
with <b>segmax=</b>40 points is around 1 - this ensures the numerical
stability of the computation):

<ol>
  <li>Default: the given <b>tension</b> is applied to normalized data
    (<em>x/dnorm</em>), that means that the distances are multiplied
    (rescaled) by <em>tension/dnorm</em>. If density of points is
    changed, e.g., by using higher <b>dmin</b>, the <b>dnorm</b>
    changes and <b>tension</b> needs to be changed too to get the same
    result.  Because the <b>tension</b> is applied to normalized data
    its suitable value is usually within the 10-100 range and does not
    depend on the actual scale (distances) of the original data (which
    can be km for regional applications or cm for field
    experiments).</li>
  <li>Flag<b>-t</b>: The given <b>tension</b> is applied to
    un-normalized data (rescaled <em>tension = tension*dnorm/1000</em>
    is applied to normalized data (<em>x/dnorm</em>) and
    therefore <b>dnorm</b> cancels out) so here <b>tension</b> truly
    works as a rescaling parameter.  For regional applications with
    distances between points in km the suitable tension can be 500 or
    higher, for detailed field scale analysis it can be 0.1. To help
    select how much the data need to be rescaled the program
    writes <b>dnorm</b> and rescaled tension
    <em>fi=tension*dnorm/1000</em> at the beginning of the program
    run. This rescaled <b>tension</b> should be around 20-30. If it is
    lower or higher, the given <b>tension</b> parameter should be
    changed accordingly.</li>
</ol>

<p>
The default is a recommended choice, however for the applications
where the user needs to change density of data and preserve the
approximation character the <b>-t</b> flag can be helpful.

<p>
Anisotropic data (e.g. geologic phenomena) can be interpolated
using <b>theta</b> and <b>scalex</b> defining orientation and ratio of
the perpendicular axes put on the longest/shortest side of the
feature, respectively. <b>Theta</b> is measured in degrees from East,
counterclockwise. <b>Scalex</b> is a ratio of axes sizes.
Setting <b>scalex</b> in the range 0-1, results in a pattern prolonged
in the direction defined by <b>theta</b>. <b>Scalex</b> value 0.5
means that modeled feature is approximately 2 times longer in the
direction of <b>theta</b> than in the perpendicular direction.
<b>Scalex</b> value 2 means that axes ratio is reverse resulting in a
pattern perpendicular to the previous example. Please note that
anisotropy option has not been extensively tested and may include bugs
(for example, topographic parameters may not be computed correctly) -
if there are problems, please report to GRASS bugtracker (accessible
xuebingbing's avatar
xuebingbing committed
361
from <a href="https://grass.osgeo.org/">https://grass.osgeo.org/</a>).<br>
xuebingbing's avatar
xuebingbing committed
362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594

<!--
<p>The program gives warning when significant overshoots appear and higher
tension should be used. However, with tension too high the resulting surface
changes its behavior to membrane (rubber sheet stretched over the data
points resulting in a peak or pit in each given point and everywhere else
the surface goes rapidly to trend). Also smoothing can be used to reduce
the overshoots.
-->

<p>
For data with values changing over several magnitudes (sometimes the
concentration or density data) it is suggested to interpolate the log
of the values rather than the original ones.

<p>
<em>v.surf.rst</em> checks the numerical stability of the algorithm by
computing the values in given points, and prints the root mean square
deviation (rms) found into the history file of raster
map <b>elevation</b>. For computation with smoothing set to 0, rms
should be 0. Significant increase in <b>tension</b> is suggested if
the rms is unexpectedly high for this case. With smoothing parameter
greater than zero the surface will not pass exactly through the data
points and the higher the parameter the closer the surface will be to
the trend. The rms then represents a measure of smoothing effect on
data. More detailed analysis of smoothing effects can be performed
using the output deviations option.

<p>
<em>v.surf.rst</em> also writes the values of parameters used in
computation into the comment part of history file <b>elevation</b> as
well as the following values which help to evaluate the results and
choose the suitable parameters: minimum and maximum z values in the
data file (zmin_data, zmax_data) and in the interpolated raster map
(zmin_int, zmax_int), rescaling parameter used for normalization
(dnorm), which influences the tension.

<p>
If visible connection of segments appears, the program should be rerun
with higher <b>npmin</b> to get more points from the neighborhood of
given segment and/or with higher tension.

<p>
When the number of points in a vector map is not too large (less than
800), the user can skip segmentation by setting <b>segmax</b> to the
number of data points or <b>segmax=700</b>.

<p>
<em>v.surf.rst</em> gives warning when user wants to interpolate
outside the rectangle given by minimum and maximum coordinates in the
vector map, zoom into the area where the given data are is suggested
in this case.

<p>
When a <b>mask</b> is used, the program takes all points in the given
region for approximation, including those in the area which is masked
out, to ensure proper approximation along the border of the mask. It
therefore does not mask out the data points, if this is desirable, it
must be done outside <em>v.surf.rst</em>.

<h3><a name="cross-validation-procedure">Cross validation procedure</a></h3>

<p>
The &quot;optimal&quot; approximation parameters for given data can be
found using a cross-validation (CV) procedure (<b>-c</b> flag).  The
CV procedure is based on removing one input data point at a time,
performing the approximation for the location of the removed point
using the remaining data points and calculating the difference between
the actual and approximated value for the removed data point. The
procedure is repeated until every data point has been, in turn,
removed. This form of CV is also known as the
&quot;leave-one-out&quot; or &quot;jack-knife&quot; method (Hofierka
et al., 2002; Hofierka, 2005). The differences (residuals) are then
stored in the <b>cvdev</b> output vector map. Please note that during
the CV procedure no other output maps can be set, the approximation is
performed only for locations defined by input data.  To find
&quot;optimal parameters&quot;, the CV procedure must be iteratively
performed for all reasonable combinations of the approximation
parameters with small incremental steps (e.g. tension, smoothing) in
order to find a combination with minimal statistical error (also
called predictive error) defined by root mean squared error (RMSE),
mean absolute error (MAE) or other error characteristics.  A script
with loops for tested RST parameters can do the job, necessary
statistics can be calculated using
e.g. <em><a href="v.univar.html">v.univar</a></em>. It should be noted
that crossvalidation is a time-consuming procedure, usually reasonable
for up to several thousands of points. For larger data sets, CV should
be applied to a representative subset of the data. The
cross-validation procedure works well only for well-sampled phenomena
and when minimizing the predictive error is the goal.  The parameters
found by minimizing the predictive (CV) error may not not be the best
for for poorly sampled phenomena (result could be strongly smoothed
with lost details and fluctuations) or when significant noise is
present that needs to be smoothed out.

<h2><a name="example">EXAMPLE</a></h2>

<h3><a name="setting-for-lidar-point-cloud">Setting for lidar point cloud</a></h3>

Lidar point clouds as well as UAS SfM-based (phodar) point clouds tend
to be dense in relation to the desired raster resolution and thus a
different set of parameters is more advantageous, e.g. in comparison to
a typical temperature data interpolation.

<div class="code"><pre>
v.surf.rst input=points elevation=elevation npmin=100
</pre></div>

<h3><a name="usage-of-the-where-parameter">Usage of the where parameter</a></h3>

Using the <b>where</b> parameter, the interpolation can be limited to
use only a subset of the input vectors.

<p>
North Carolina example (we simulate randomly distributed elevation
measures which we interpolate to a gap-free elevation surface):

<div class="code"><pre>
g.region raster=elevation -p
# random elevation extraction of 500 samplings
r.random elevation vector_output=elevrand n=500
v.info -c elevrand
v.db.select elevrand

# interpolation based on all points
v.surf.rst elevrand zcol=value elevation=elev_full
# apply the color table of the original raster map
r.colors elev_full raster=elevation
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"
r.colors elev_partial raster=elevation
d.rast elev_partial
d.vect elevrand where="value > 1300"
</pre></div>

<h2><a name="references">REFERENCES</a></h2>

<ul>
  <li><a href="http://www4.ncsu.edu/~hmitaso/gmslab/papers/IEEEGRSL2005.pdf">
      Mitasova, H., Mitas, L. and Harmon, R.S., 2005,</a> 
    Simultaneous spline approximation and topographic analysis for
    lidar elevation data in open source GIS, IEEE GRSL 2 (4), 375- 379.</li>
  <li>Hofierka, J., 2005, Interpolation of Radioactivity Data Using Regularized Spline with Tension. Applied GIS, Vol. 1, No. 2, pp. 16-01 to 16-13. DOI: 10.2104/ag050016</li>
  <li><a href="http://www4.ncsu.edu/~hmitaso/gmslab/papers/TGIS2002_Hofierka_et_al.pdf">
      Hofierka J., Parajka J., Mitasova H., Mitas L., 2002,</a> Multivariate
    Interpolation of Precipitation Using Regularized Spline with Tension.
    Transactions in GIS 6(2), pp. 135-150.</li>
  <li>H. Mitasova, L. Mitas, B.M. Brown, D.P. Gerdes, I. Kosinovsky, 1995, Modeling
    spatially and temporally distributed phenomena: New methods and tools for
    GRASS GIS. International Journal of GIS, 9 (4), special issue on Integrating
    GIS and Environmental modeling, 433-446.</li>
  <li><a href="http://www4.ncsu.edu/~hmitaso/gmslab/papers/MG-I-93.pdf">
      Mitasova, H. and Mitas, L., 1993</a>: 
    Interpolation by Regularized Spline with Tension: 
    I. Theory and Implementation, Mathematical Geology ,25, 641-655.</li>
  <li><a href="http://www4.ncsu.edu/~hmitaso/gmslab/papers/MG-II-93.pdf">
      Mitasova, H. and Hofierka, J., 1993</a>: Interpolation
    by Regularized Spline with Tension: II. Application to Terrain Modeling
    and Surface Geometry Analysis, Mathematical Geology 25, 657-667.</li>
  <li><a href="http://www4.ncsu.edu/~hmitaso/gmslab/papers/CMA1988.pdf">
      Mitas, L., and Mitasova H., 1988, </a> General variational approach to the approximation
    problem, Computers and Mathematics with Applications, v.16, p. 983-992.</li>
  <li><a href="http://www.grassbook.org">
      Neteler, M. and Mitasova, H., 2008, Open Source GIS: A GRASS GIS Approach, 3rd Edition, </a> 
    Springer, New York, 406 pages.</li>
  <li>Talmi, A. and Gilat, G., 1977 : Method for Smooth Approximation of Data,
    Journal of Computational Physics, 23, p.93-123.</li>
  <li>Wahba, G., 1990, : Spline Models for Observational Data, CNMS-NSF Regional
    Conference series in applied mathematics, 59, SIAM, Philadelphia, Pennsylvania.</li>
</ul>

<h2><a name="see-also">SEE ALSO</a></h2>

<em>
  <a href="v.vol.rst.html">v.vol.rst</a>,
  <a href="v.surf.idw.html">v.surf.idw</a>,
  <a href="v.surf.bspline.html">v.surf.bspline</a>,
  <a href="r.fillnulls.html">r.fillnulls</a>,
  <a href="g.region.html">g.region</a>
</em>

<p>
Overview: <a href="https://grasswiki.osgeo.org/wiki/Interpolation">Interpolation and Resampling</a> in GRASS GIS

<p>
For examples of applications see
<a href="http://www4.ncsu.edu/~hmitaso/gmslab/">GRASS4 implementation</a> and
<a href="http://www4.ncsu.edu/~hmitaso/">GRASS5 and GRASS6 implementation</a>.

<h2><a name="authors">AUTHORS</a></h2>

<em>Original version of program (in FORTRAN) and GRASS enhancements</em>:
<br>Lubos Mitas, NCSA, University of Illinois at Urbana Champaign, Illinois,
USA (1990-2000); Department of Physics, North Carolina State University, Raleigh
<br>Helena Mitasova, USA CERL, Department of Geography, University of Illinois at
Urbana-Champaign, USA (1990-2001); MEAS, North Carolina State University, Raleigh 

<p>
<em>Modified program (translated to C, adapted for GRASS, new segmentation
procedure):</em>
<br>Irina Kosinovsky, US Army CERL, Dave Gerdes, US Army CERL

<p>
<em>Modifications for new sites format and timestamping:</em>
<br>Darrel McCauley, Purdue University, Bill Brown, US Army CERL

<p>
<em>Update for GRASS5.7, GRASS6 and addition of crossvalidation:</em>
<br>Jaroslav Hofierka, University of Presov; Radim Blazek, ITC-irst

<p>
<em>Parallelization using OpenMP:</em>
<br>Stanislav Zubal, Czech Technical University in Prague
<br>Michal Lacko, Pavol Jozef Safarik University in Kosice

<!--
<p>
<i>Last changed: $Date$</i>
--><h2>SOURCE CODE</h2>
<p>Available at: <a href="https://github.com/OSGeo/grass/tree/master/vector/v.surf.rst">v.surf.rst source code</a> (<a href="https://github.com/OSGeo/grass/commits/master/vector/v.surf.rst">history</a>)</p>
<hr class="header">
<p>
<a href="index.html">Main index</a> |
<a href="vector.html">Vector index</a> |
<a href="topics.html">Topics index</a> |
<a href="keywords.html">Keywords index</a> |
<a href="graphical_index.html">Graphical index</a> |
<a href="full_index.html">Full index</a>
</p>
<p>
xuebingbing's avatar
xuebingbing committed
595
&copy; 2003-2020
xuebingbing's avatar
xuebingbing committed
596
<a href="http://grass.osgeo.org">GRASS Development Team</a>,
xuebingbing's avatar
xuebingbing committed
597
GRASS GIS 7.8.5 Reference Manual
xuebingbing's avatar
xuebingbing committed
598 599 600 601 602
</p>

</div>
</body>
</html>