dot-check_raster: Check Raster Input

.check_rasterR Documentation

Check Raster Input

Description

This function checks the input object to ensure it is a valid raster object or a character path to a raster file. It also provides warnings and informative messages based on the input type.

Usage

.check_raster(input, extent = NULL, ...)

Arguments

input

The input object to be checked. It can be either a SpatRaster object or a character path to a raster file.

extent

The extent of the raster. Defaults to NULL. Numeric vector should be put in order of c(xmin, xmax, ymin, ymax).

...

Placeholder.

Value

The validated input object.


chopin documentation built on Sept. 10, 2025, 5:08 p.m.