latlongfromraster: Derives latitude and longitude of centre of SpatRaster object

latlongfromrasterR Documentation

Derives latitude and longitude of centre of SpatRaster object

Description

latlongfromraster is used to calculate the latitude and longitude of the centre of a raster object.

Usage

latlongfromraster(r)

Arguments

r

a SpatRaster object with the coordinate reference system defined by crs()

Value

a data.frame with the latitude and longitude of the centre of the raster

Examples

latlongfromraster(rast(dtm1m))
latlongfromraster(rast(dtm100m))

ilyamaclean/microclima documentation built on Sept. 5, 2024, 8:37 p.m.