Prep Incoming Data

prep_input(data, subds = 0, lyrs = NULL, win = NULL)

Arguments

data

SpatRaster, file path, raster

subds

positive integer or character to select a sub-dataset. If zero or "", all sub-datasets are returned (if possible)

lyrs

positive integer or character to select a subset of layers (a.k.a. "bands")

win

SpatExtent to set a window (area of interest)

Value

SpatRaster