gridcell2lnglat: Query Grid Identifier for Coordinates

gridcell2lnglatR Documentation

Query Grid Identifier for Coordinates

Description

The function returns a longitude and latitude coordinate pair based on the grid identifier.

Usage

gridcell2lnglat(x)

Arguments

x

Character. A grid cell identifier, e.g. ⁠"8144-3"⁠.

Value

A two-column matrix. First column is longitude, second latitude.

Author(s)

Roland Kaiser

References

Niklfeld, H. (1971): Bericht über die Kartierung der Flora Mitteleuropas. Taxon 20: 545-571.

See Also

floragrid, lnglat2gridcell

Examples

# test against floragrid()
x <- floragrid(extent(12, 13, 47, 48))

# the function returns the exact same center points
xx <- gridcell2lnglat(x$GRIDCELL)

plot(x)

points(xx)

kardinal-eros/sabotag-tools documentation built on Feb. 6, 2025, 1:12 a.m.