This function computes interquartile range (IQR) for a SpatRaster

IQR_SpatRaster(input_rast, weightIRQ = 3)

Arguments

input_rast

SpatRaster.

weightIRQ

numeric. weighting factor applied to IRQ to define lower and upper boundaries for outliers

Value

outlier_IQR numeric. band numbers of original sensor corresponding to S2