For noisy data, it is possible to define spatially variable smoothing by prividing a raster file smooth containing smoothing parameters. With the smoothing parameter set to zero (smooth is not given or contains zero data), the resulting surface passes exactly through the data points. User can define a raster file named maskmap, which will be used as a mask. The interpolation is skipped for cells which have zero value in mask. Zero values will be assigned to these cells in all output raster files. Parameter zmult allows the user to rescale the z-values (useful, e.g., for transformation of elevations given in feet to meters, so that the proper values of slopes and curvatures can be computed).
Regularized spline with tension is used for the interpolation. The tension
parameter tunes the character of the resulting surface from thin plate
to membrane. Higher values of tension parameter reduce the overshoots that
can appear in surfaces with rapid change of gradient. The flag -t
can be set to use "dnorm independent tension". The interpolation is performed
for overlaping rectangular segments. The user can define the width of overlap
(in number of cells) by option overlap.
r.resamp.rst [-r] [-d] [-t] input = name ew_res = val ns_res = val elev = name [slope = name] [aspect = name] [pcurv = name] [tcurv = name] [mcurv = name] [smooth = name] [maskmap = name] [overlap = val] [ zmult = val ] [tension = val]
Alternatively, the user can simply type r.resamp.rst on the command line without program arguments. In this case, the user will be prompted for parameter values and flag settings using the standard GRASS parser interface described in the manual entry for parser .
Flags
-r Indicates that zeroes in input map represent elevation.
-d Output partial derivatives instead of aspect, slope and curvatures
Parameters:
input =name
Use the existing site file name as input.
ew_res = val
Set desired east-west resolution to val .
ns_res = val
Set desired north-south resolution to val .
elev = name
Output elevation values to raster file named name .
slope = name
Output slope or fx values to raster file named name .
aspect = name
Output aspect or fy values to raster file named name .
pcurv = name
Output profile curvature or fxx values to raster file named name
.
tcurv=name
Output tangential curvature values or fyy to raster file named name
.
mcurv=name
Output mean curvature values or fxy to raster file named name
.
smooth=name
18 Set smoothing parameter from file name .
maskmap=name
Use the existing raster file name as a mask.
overlap =val
Use overlap val cells to get additional points for interpolation
for a given segment. Default value is 3.
zmult =val
Convert z-values using conversion factor val . Default value
is 1.
tension = val
Set tension to val .
The program writes the values of parameters used in computation into
the comment part of the history file elev 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), maximum difference
between the given and interpolated z value in a given point (errtotal),
rescaling parameter used for normalization (dnorm), which influences the
tension. The program gives warning when the user wants to interpolate outside
the region given by the header of the input raster file, zooming into the
area where the points are is suggested in this case. When a mask is used,
the program takes all points in the given region for interpolation, including
those in the area which is masked out, to ensure proper interpolation along
the border of the mask. It therefore does not mask out the data points;
if this is desirable, it must be done outside r.resamp.rst .
Modified program (translated to C, adapted for GRASS , segmentation
procedure):
Irina Kosinovsky, US Army CERL .
Dave Gerdes, US Army CERL .
Mitasova, H. and Mitas, L., 1993. Interpolation by regularized spline with tension: I. Theory and implementation, Mathematical Geology No.25 p.641-656.
Mitasova, H. and Hofierka, L., 1993. Interpolation by regularized spline with tension: II. Application to terrain modeling and surface geometry analysis, Mathematical Geology No.25 p.657-667.
Talmi, A. and Gilat, G., 1977. Method for smooth approximation of data, Journal of Computational Physics , 23, pp 93-123.
Wahba, G., 1990. Spline models for observational data, CNMS-NSF Regional Conference series in applied mathematics, 59, SIAM, Philadelphia, Pennsylvania.