ssdpars: Creates a parameters file and generates the simulated maps

ssdparsR Documentation

Creates a parameters file and generates the simulated maps

Description

Creates a parameters file (.par) and invokes dss.c.64.exe to run block simulation program and generate simulated map files (.out). As input you should provide name of objects and parameter values required for the simulation process.

Usage

ssdpars(
  grdobj,
  maskobj,
  dfobj,
  varmobj,
  simulations = 1,
  nrbias = 20,
  biascor = c(1, 1),
  ndMin = 1,
  ndMax = 32,
  nodMax = 12,
  radius1,
  radius2,
  radius3 = 1,
  ktype = 1
)

Arguments

grdobj,

string, name of list, output of function 'grdfile()'

maskobj,

string, name of list, output of function 'maskfile()'

dfobj,

string, name of list, output of function 'irates()'

varmobj,

string, name of list, output of function 'varmodel()'

simulations,

numeric, number of simulations

nrbias,

numeric, nr simulations for bias correction

biascor,

num vector, flag for (mean, variance) correction (yes = 1, no = 0)

ndMin,

numeric, min number of neighbour observations used in kriging

ndMax,

numeric, max number of neighbour observations used in kriging

nodMax,

numeric, max number of previously simulated nodes used in kriging

radius1,

numeric, search radii in the major horizontal axe

radius2,

numeric, search radii in the axe orthogonal (horizontal) to radius1

radius3,

numeric, search radii in the vertical axe

ktype,

numeric, the kriging type to be used (available are: 0 = simple, 1 = ordinary)

Details

Both parameters file (.par) and simulations files (.out) are stored in input folder. Note that the simulation process may take a while, depending mostly on the number of simulation nodes and number of simulations specified.

Value

Function returns the following list of objects:

structures

the number of spatial strutures (excluding nugget-effect)

parameters

a dataframe with model information to be passed to ssdpars()

fittedval

a numeric vector of fitted values as set by the semi-variogram model


maluicr/blockdss documentation built on Nov. 22, 2023, 11:42 a.m.