Generate spp_file based on a directory of input rasters.
create_spp(
filename = "filelist.spp",
weight = 1,
alpha = 1,
bqp = 1,
bqp_p = 1,
cellrem = 0.25,
spp_file_dir,
recursive = FALSE,
spp_file_pattern = ".+\\.(tif|img)$",
override_path = NULL
)
character string defining the name of the spp file created.
numeric template value for weights.
numeric template value for alpha values.
numeric template value for bqp values.
numeric template value for bqp_p values.
numeric template value for cellrem values.
character path or a vector of paths to target dir.
Logical defining whether files in spp_file_dir
should
be listed recursively.
pattern used to match raster files.
character path used to override the dirpath in input
raster file paths. In case recursive = TRUE
, then there can be
an arbitrary number of subdirectories and override path is used only up
until the spp_file_dir
. This way the correct subdirectory structure
is retained.
invisible(TRUE), functrion is used for side effects.