check_raster: Check input raster

View source: R/check_raster.R

check_rasterR Documentation

Check input raster

Description

Checks the validity of raster layers to be inputted in mland(), intended to represent land cover. The function directly calls landscapemetrics::check_landscape().

Usage

check_raster(raster, verbose = TRUE)

Arguments

raster

An object of class 'RasterLayer', 'RasterStack', 'RasterBrick', 'SpatRaster', or a list of raster objects (one of 'RasterLayer' or 'SpatRaster').

verbose

Print warning messages in the console? Default is TRUE.

Details

Extracts basic information about the inputted raster: coordinate reference system (crs) - either "geographic", "projected", or NA, units of the coordinate reference system, class for the values of the inputted raster and the number of classes found in the raster.

Value

A data frame with relevant information about the inputted raster.


phuais/multilandR documentation built on Feb. 21, 2025, 7:52 a.m.