Skip to contents

Create a latitude raster from an input raster template.

Usage

get_lat_from_raster(r)

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)
}