
Check if all files required for a given date already exist
Source:R/check_files_existance.R
check_files_existence.RdAccessory function used to see if all expected out files for the selected date are already present in the output folder. If all expected out files are already present, check_files is set to TRUE, and the date is skipped in MODIStsp_process.
Usage
check_files_existence(
out_prod_folder,
file_prefix,
yy,
DOY,
bandnames,
bandsel_orig_choice,
indexes_bandnames,
indexes_bandsel,
quality_bandnames,
quality_bandsel,
out_format
)Arguments
- out_prod_folder
characterMODIStsp output folder- file_prefix
characterFile prefix of the processed product (e.g., MOD13Q1)- yy
characteryear- DOY
characterdoy- bandnames
character arrayBandnames of the MODIS product- bandsel_orig_choice
numeric 0/1 arrayIndicates which original MODIS layers were selected for processing (does not contain names of bands needed to compute SIs but not selected by the user!)- indexes_bandnames
character arrayNames of available spectral indexes (standard + custom) available for the currently processed product- indexes_bandsel
numeric 0/1 arrayIndicates which spectral indexes were selected for processing- quality_bandnames
character arrayName of available Quality Indicators for the currently processed product- quality_bandsel
numeric 0/1 arrayIndicates which Quality Indicators were selected- out_format
characterGTiff or ENVI