data.coordinates2gridcellnumber: Search number of gridcell for given coordinates.

Description Usage Arguments Details Value Author(s) Examples

View source: R/data.coordinates2gridcellnumber.R

Description

Searches the number of the cell of a given spatial grid by given coordinates (Gauss-Krueger-Coordinates).

Usage

1

Arguments

grid

The grid in which the cell should be searched.

x

The ‘Rechtswert’ of the Gauss-Krueger-Coordinates.

y

The ‘Hochwert’ of the Gauss-Krueger-Coordinates.

Details

Searches the number of the cell of a given spatial grid by given coordinates (Gauss-Krueger-Coordinates).

Value

Returns the cell-number of the grid-cell which is next to the given coordinates.

Author(s)

Daniel Doktor, Maximilian Lange

Examples

1
2
3
4
5
6
7
8
9
  ## load grid containing spatial information
  data(relatedGrid)

  ## search position in grid
  xy <- util.geoco2gk(54.12,10.17,4)
  gridposition <- data.coordinates2gridcellnumber(grid=relatedGrid, 
	x=xy[,1],y=xy[,2])

  gridposition

phenmod documentation built on May 29, 2017, 11:37 a.m.