db.grid.refine {RGeostats}R Documentation

Duplicate a Grid Db, refining or dividing the number of meshes

Description

Duplicate a Grid Db, refining or dividing the number of meshes

Usage

db.grid.refine(dbgrid, nmult, flag.refine = TRUE, flag.copy=FALSE,
               flag.cell = TRUE)

Arguments

dbgrid

The db-class of grid type that must be duplicated

nmult

The vector giving the multipliers. The dimension of this vector must be equal to the space dimension. The number of grid meshes along the i-th dimension must be either divided or multiplied by 'nmult[i]', according to 'flag.refine'. The value of the grid mesh is modified consistently so as the final and the initial grid cover the same area.

flag.refine

When TRUE, the resulting grid is finer than the initial one: there are more grid nodes, and the grid mesh is smaller. When FALSE, the resulting grid is coarser then the initial one: there are less grid nodes, and the grid mesh is larger.

flag.copy

When TRUE, all the variables are copied from the input to the output file. Moreover, the new variables keep the same 'name' and 'locator' in the output file, as they had in the input file.

flag.cell

When TRUE, the initial and final grids share the same edge for the lower left corner cell.

When FALSE, the initial and final grid share the same location for the lower left corner node.

Value

A db-class of grid type.


[Package RGeostats version 11.1.1 Index]