raster.clean: Uniformize raster layers.

View source: R/main.R

raster.cleanR Documentation

Uniformize raster layers.

Description

Crop raster layers to minimum size possible and uniformize NA values across layers.

Usage

raster.clean(layers)

Arguments

layers

Raster* object as defined by package raster.

Details

Excludes all marginal rows and columns with only NA values and change values to NA if they are NA in any of the layers.

Value

A Raster* object, same class as layers.

Examples

layers = red.examples("red.layers")
terra::plot(raster.clean(layers))

red documentation built on Sept. 9, 2023, 1:07 a.m.

Related to raster.clean in red...