Learn R Programming

landscapemetrics (version 2.1.4)

check_landscape: Check input landscape

Description

Check input landscape

Usage

check_landscape(landscape, verbose = TRUE)

Value

tibble

Arguments

landscape

Raster* Layer, Stack, Brick, Stars or a list of rasterLayers

verbose

Print warning messages.

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

Run this code
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))

Run the code above in your browser using DataLab