db.grid.locate {RGeostats}R Documentation

Identify the absolute grid node

Description

Identify the absolute grid node

Usage

db.grid.locate(db, coor = NA)

Arguments

db

The db-class of grid type where the target must be located

coor

Coordinates of the sample which must be located within the grid

Details

If the sample lies within the grid, this function returns the absolute index of the closest grid node to the target point. If the sample does not lie within the grid, the function returns -1.

Value

The absolute grid index or -1.


[Package RGeostats version 11.1.2 Index]