db.reduce {RGeostats}R Documentation

Extract a sub-part of a Db

Description

Extract a sub-part of a Db

Usage

db.reduce(db, names=NA, flag.sel=TRUE, ranks=NA, flag.keep.grid=FALSE,
          nabove=NA, nbelow=NA)

Arguments

db

The db-class containing the data information from which a subpart must be extracted.

names

List of names of attributes that must be extracted. For more information see db.ident. If 'names' is not specified, all the attributes are extracted.

flag.sel

When TRUE, only the active samples are extracted. When FALSE, the selection is ignored.

ranks

When defined, this argument gives the array of indices (between 1 and db$nech) that must be kept in the output db-class.

flag.keep.grid

This flag only makes sense when initial db-class structure is organized as a regular grid. When TRUE, the resulting file is a db-class (also organized as a grid) whose dimensions are calculated so as to contain the active samples of the initial Db.

nabove

When using the 'flag.keep.grid', the resulting db-class is dimensioned to the smallest area containing the active samples of the initial db-class. Nevertheless, you can wish to dilate this area. The argument 'nabove' provides the number of nodes for this dilation upwards along each axis of the working space.

If the length of 'nabove' is not equal to the space dimension, the argument is repeated up to the space dimension.

nbelow

When using the 'flag.keep.grid', the resulting db-class is dimensioned to the smallest area containing the active samples of the initial db-class. Nevertheless, you can wish to dilate this area. The argument 'nbelow' provides the number of nodes for this dilation upwards along each axis of the working space.

If the length of 'nbelow' is not equal to the space dimension, the argument is repeated up to the space dimension.

Value

The extracted db-class. The variables copied in the output db-class keep the original names, from the input db-class file. The locators are not kept.


[Package RGeostats version 14.0.10 Index]