Skip to contents

This function allow to calculate 5 information theory landscape metrics

Usage

calculate_it_metrics(landscape_raster, aoi_sf)

Arguments

landscape_raster

A categorical raster object: SpatRaster.

aoi_sf

The spatial area of interest as an sf object.

Value

An sf object

Details

Calculate the landscape metrics: condent, ent, joinent, mutinf, and relmutinf.

Note

This is a wrapper of the function "sample_lsm" from the landscapemetrics package (see References)

References

Hesselbarth, M.H.K., Sciaini, M., With, K.A., Wiegand, K., Nowosad, J. 2019. landscapemetrics: an open‐source R tool to calculate landscape metrics. Ecography, 42: 1648-1657 (v2.1.4).

Nowosad J., TF Stepinski. 2019. Information theory as a consistent framework for quantification and classification of landscape patterns. https://doi.org/10.1007/s10980-019-00830-x

Information theory-based framework for the analysis of landscape patterns

Examples

if (FALSE) { # \dontrun{
library(sf)
library(terra)
library(exactextractr)

clc <- rast(system.file('sao_miguel/clc2018_v2020_20u1.tif',
package = 'exactextractr'))


bbox <- st_bbox(clc) |>
st_as_sfc() |>
st_as_sf()

h3_bbox <- get_h3_grid(bbox, resolution = 6)


result_sf <- calculate_it_metrics(clc, h3_bbox)
} # }