varcalcR: Run the CCG 'varcalc' Program to Calculate Experimental...

Description Usage Arguments Details Value

Description

varcalcR calculates experimental variograms. This process is suited to irregulalry spaced data such as samples. If more than one variable is input all possible semi-variograms and cross-variograms are calculated. Default arguments will create omni-directional 2D variograms for each variable.

Usage

1
2
3
4
5
varcalcR(data, vars, sysout, xyz = c("x", "y"), vpar = list(dir1 =
  c(azm = 0, azmtol = 90, bandhorz = 1e+21, dip = 0, diptol = 90, bandvert
  = 1e+21, tilt = 0, nlags = 10, lagdist = 30, lagtol = 0.5)),
  variostd = FALSE, variosills = NULL, legacy = FALSE,
  strict = TRUE, single = TRUE, debug = TRUE)

Arguments

data

Data frame of sample data.

vars

Character vector, column names in data for variograms.

sysout

Character: name of GSLIB-format experimental variogram file without the extension part, and extension of ".out" is added for compatibility with vl_lmc.

xyz

Character vector, column names in data for coordinate fields, 2 for 2D and 3 for 3D.

vpar

list of named vectors containing parameters for each variogram direction to be calculated. See function argument default for spec.

variostd

Scalar boolean, if TRUE standardize the sill.

variosills

Numeric scalar. Sill to standardize to if variostd is TRUE. Default NULL means let program decide.

legacy

Scalar boolean, if TRUE output legacy format.

strict

Scalar boolean, if TRUE run input checks.

single

Boolean: produce a single variogram rather than direct and cross variograms.

debug

Scalar boolean. If TRUE don't delete temporary system files.

Details

Variogram calculation parameters are provided as a list of vectors for each direction. The default list provided in the function argument list uses a named vector. The vector does not need ot me named but values must be provided in the order shown.

Value

A data frame of class "gstat::gstatVariogram" with calculated variogram data. Side effect is output variogram calculation file from varcalc program. This file is used by other programs such as varmod.


truemoid/rgslib documentation built on May 30, 2019, 2:14 p.m.