Skip to contents

Create mosaics of downloaded sen2r images from the parent directory, as specified in the sen2r path_out argument. The images used are those detected in the parent directory as of running the function. The list of spectral indices are retrieved from sen2r and library('terra') is used to create the mosaics.

Usage

mosaic_sen2r(parent_dir, exclude = NULL, rm_outlier = TRUE)

Arguments

parent_dir

File path of parent directory for sen2r images, as specified in the sen2r path_out argument.

exclude

Character vector of spectral indices to be excluded from the mosaic operation. 'CLD', 'SCL', 'RGB432B', and 'BOA' are excluded by default.

rm_outlier

TRUE or FALSE to perform outlier removal. Threshold values are specific to spectral indices.

Value

The .tif raster mosaic.tif within the subdirectory of included indices.