Generates raster layers for longitude and latitude from given raster data, applies optional scaling, and restricts the output to a specified spatial mask.
create_coords_layer(layers, study_area = NULL, scale_layers = FALSE)
Raster stack with layers lon and lat.
Raster or stack of raster layers to derive geographic extent and resolution.
Spatial object for masking output layers.
Logical indicating if scaling is applied. Default is FALSE.