check_landscape function

Check input landscape

Check input landscape

check_landscape(landscape, verbose = TRUE)

Arguments

  • landscape: Raster* Layer, Stack, Brick, Stars or a list of rasterLayers
  • verbose: Print warning messages.

Returns

tibble

Details

This function extracts basic information about the input landscape. It includes a type of coordinate reference system (crs) - either "geographic", "projected", or NA, units of the coordinate reference system, a class of the input landscape's values and the number of classes found in the landscape.

Examples

augusta_nlcd <- terra::rast(landscapemetrics::augusta_nlcd) check_landscape(augusta_nlcd) podlasie_ccilc <- terra::rast(landscapemetrics::podlasie_ccilc) check_landscape(podlasie_ccilc) landscape <- terra::rast(landscapemetrics::landscape) check_landscape(c(landscape, landscape))