Description Author(s) See Also Examples
Here is described how to work with this package. An example usage with free dataset meuse.
Tomas Burian, Buri777@seznam.cz
meuse
uncertaintyInterpolation2-package
1 2 3 4 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 | ## package UncerIn2 TUTORIAL
## Example data import and definition
# dataset meuse import
data(meuse)
# S4 class object Points input data definition
points = Points(x = meuse$x, y = meuse$y, z = meuse$elev)
## Uncertainty creation
# building uncertainty model (based on uncertaintyError function)
uncertaintyModel = uncertaintyError(points)
## Grid creation
# generate grid for interpolation
gridDef = Grid.def(points) # data.frame
gridDef.spat = Grid.def(points, TRUE) # SpatialPixels
# OR (bounded by box)
# gridBox = Grid.box(points) # data.frame
# gridBox.spat = Grid.box(points, TRUE) # SpatialPixels
## Iinterpolation
IDW = idwUncertain(uncertaintyModel, gridDef.spat)
# spline = splineUncertain(uncertaintyModel, gridDef)
# kriging = krigingUncertain(uncertaintyModel, gridDef.spat)
## variogram estimation
# var = variogram(uncertaintyModel)
# show(var)
# visualization of results
Plot(IDW)
|
Loading required package: sp
Loading required package: RandomFields
Loading required package: RandomFieldsUtils
Attaching package: 'RandomFields'
The following object is masked from 'package:RandomFieldsUtils':
RFoptions
Loading required package: automap
Loading required package: fields
Loading required package: spam
Loading required package: dotCall64
Loading required package: grid
Spam version 2.2-2 (2019-03-07) is loaded.
Type 'help( Spam)' or 'demo( spam)' for a short introduction
and overview of this package.
Help for individual functions is also obtained by adding the
suffix '.spam' to the function name, e.g. 'help( chol.spam)'.
Attaching package: 'spam'
The following objects are masked from 'package:base':
backsolve, forwardsolve
Loading required package: maps
See www.image.ucar.edu/~nychka/Fields for
a vignette and other supplements.
Loading required package: gstat
Warning message:
no DISPLAY variable so Tk is not available
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.