db.proportion {RGeostats}R Documentation

Compute proportions of a variable of a Db into a Grid Db

Description

Compute proportions of a variable of a Db into a Grid Db

Usage

db.proportion(db1, dbgrid, nfac1max = NA, nfac2max = NA, radix = "Proportions",
	       modify.target = db.locmod())

Arguments

db1

The db-class used to read input facies variable(s). The facies variables must be located as Z-variables. The count of facies variables may be 1 or 2.

dbgrid

The db-class of Grid type where the calculated proportions will be calculated.

nfac1max

When defined, it defines the maximum value for a sample for the first variable to be considered as valid. If not defined, the number of facies (for the first variable) is defined as the maximum facies value encountered in the file.

nfac2max

When defined, it defines the maximum value for a sample for the second variable to be considered as valid. If not defined, the number of facies (for the second variable) is defined as the maximum facies value encountered in the file.

radix

Radix of the name given to the variables storing the results in the output Grid Db.

modify.target

Decides whether or not the newly created variables will have their locator defined or not. For more information, see db.locmod.

Details

When two facies variables are defined in the Input Db, the proportions are calculated for pairs of facies.

Value

The output Grid Db containing the various proportions.


[Package RGeostats version 14.0.10 Index]