R/Lib_FilterData.R
perform_radiometric_filtering.Rd
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
)
character. Path of the image to be processed
character. Path of the mask corresponding to the image
character. Path for output directory
character. Type of PCA: choose either "PCA" or "SPCA"
numeric. NDVI threshold applied to produce a mask (select pixels with NDVI>NDVI_Thresh)
numeric. Blue threshold applied to produce a mask (select pixels with Blue refl < Blue_Thresh –> filter clouds) refl expected between 0 and 10000
numeric. NIR threshold applied to produce a mask (select pixels with NIR refl > NIR_Thresh) refl expected between 0 and 10000
numeric. central wavelength corresponding to the blue spectral band (in nanometers)
numeric. central wavelength corresponding to the red spectral band (in nanometers)
numeric. central wavelength corresponding to the NIR spectral band (in nanometers)
MaskPath = updated mask file