check_raster: Check input raster

View source: R/check_raster.R

check_rasterR Documentation

Check input raster

Description

Checks the validity of rasterlayers to be inputted in mland(). The function directly calls landscapemetrics::check_landscape().

Usage

check_raster(raster, verbose = T)

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.

Details

This function 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.


phuais/multilandR documentation built on Feb. 11, 2024, 9:27 p.m.