Performs radiometric filtering based on three criteria: NDVI, NIR reflectance, Blue reflectance

perform_radiometric_filtering(
  Image_Path,
  Mask_Path = FALSE,
  Output_Dir,
  TypePCA = "SPCA",
  NDVI_Thresh = 0.8,
  Blue_Thresh = 500,
  NIR_Thresh = 1500,
  Blue = 480,
  Red = 670,
  NIR = 835
)

Arguments

Image_Path

character. Path of the image to be processed

Mask_Path

character. Path of the mask corresponding to the image

Output_Dir

character. Path for output directory

TypePCA

character. Type of PCA: choose either "PCA" or "SPCA"

NDVI_Thresh

numeric. NDVI threshold applied to produce a mask (select pixels with NDVI>NDVI_Thresh)

Blue_Thresh

numeric. Blue threshold applied to produce a mask (select pixels with Blue refl < Blue_Thresh --> filter clouds) refl expected between 0 and 10000

NIR_Thresh

numeric. NIR threshold applied to produce a mask (select pixels with NIR refl > NIR_Thresh) refl expected between 0 and 10000

Blue

numeric. central wavelength corresponding to the blue spectral band (in nanometers)

Red

numeric. central wavelength corresponding to the red spectral band (in nanometers)

NIR

numeric. central wavelength corresponding to the NIR spectral band (in nanometers)

Value

MaskPath = updated mask file