Create a latitude raster from an input raster template.
get_lat_from_raster.Rd
Create a latitude raster from an input raster template.
Arguments
- r
The
terra::rast
to generate a latitude grid for.
Value
A single layer terra::rast
where each pixel's value is the latitude.
Examples
if (FALSE) {
r <- terra::rast(rh)
get_lat_from_raster(r)
}