db.point2cell {RGeostats}R Documentation

Calculate Surface and Volume of the Voronoi of a set of isolated points

Description

Calculate Surface and Volume of the Voronoi of a set of isolated points

Usage

db.point2cell(db, dbgrid, option=0, flag.size=FALSE, name.time=NA, name.size=NA,
  	      name.angle=NA, name.scaleu=NA, name.scalev=NA, name.scalew=NA, 
              flag.plot = TRUE, flag.grid = TRUE, radix = "Point2Cell",
              modify.target = db.locmod(), ...)

Arguments

db

The db-class which contains the set of isolated points whose Voronoi must be determined

dbgrid

The db-class which contains the discretization grid where the Voronoi will be calculated. This Voronoi will serve to calculate the surface and perimeter of the Voronoi cells.

option

Type of structuring element or connectivity:

  • 0 : Cross (6-connectivity in 3-D)

  • 1 : Block (26-connectivity in 3-D)

flag.size

This argument describes the border coding in the 'dbgrid'.

  • A pixel which does not belong to the border is set to 0

  • A pixel which belongs to the border is set to a value which depends on the argument 'flag.size':

    • FALSE The pixel is set to 1

    • TRUE The pixel is set to the border thickness value

name.time

Name of the variable which contains the Time shift used for Johnson-Mehl algorithm.

name.size

Name of the variable which contains the thickness of the Voronoi polygon

name.angle

Name of the variable which contains the rotation angle (around OZ) for defining the anisotropy on distances. If absent, no rotation is performed.

name.scaleu

Name of the variable which contains the scaling factor by which the distance along the first axis (after possible rotation) must be divided. If not defined, no distorsion will be applied. If equal to 1, no distance distorsion in the first direction (after rotation) is applied. If equal to 0, this component is not used for distance calculation.

name.scalev

Name of the variable which contains the scaling factor by which the distance along the second axis (after possible rotation) must be divided. If not defined, no distorsion will be applied. If equal to 1, no distance distorsion in the second direction (after rotation) is applied. If equal to 0, this component is not used for distance calculation.

name.scalew

Name of the variable which contains the scaling factor by which the distance along the third axis (after possible rotation) must be divided. If not defined, no distorsion will be applied. If equal to 1, no distance distorsion in the third direction (after rotation) is applied. If equal to 0, this component is not used for distance calculation.

flag.plot

When TRUE, the result of the Voronoi is displayed with the set of isolated points overlaid.

flag.grid

Defines the resulting argument:

  • When TRUE, the result is the db-class resulting Grid.

  • When FALSE, the result is the db-class which contains the set of isolated points.

radix

Radix of the name given to the output variable in any resulting file.

modify.target

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

...

Arguments passed to db.plot function.

Details

Use the solution: set_keypair("PTB_Flag_Index",1) to assign the Index of the closest sample to the grid cell (instead of the value of the attribute of the closest sample)

Value

The returned structure depends upon argument 'flag.grid'.


[Package RGeostats version 14.0.10 Index]