
MODIStsp helper for computing spectral indexes
Source:R/MODIStsp_process_indexes.R
MODIStsp_process_indexes.Rdfunction used to compute spectral indexes, given the index formula
Usage
MODIStsp_process_indexes(
out_filename,
out_prod_folder,
formula,
bandnames,
nodata_out,
indexes_nodata_out,
file_prefix,
compress,
yy,
out_format,
DOY,
scale_val
)Arguments
- out_filename
characterbasename of the file in to which save results- out_prod_folder
characteroutput folder for the product used to retrieve filenames of rasters of original bands to be used in computations- formula
characterIndex formula, as derived from XML file and stored in prod_opts within previous_file- bandnames
characterarray of names of original HDF layer. Used to identify the bands required for index computation- nodata_out
characterarray of NoData values of reflectance bands- indexes_nodata_out
characterNoData value for resulting raster- file_prefix
characterused to retrieve filenames of rasters of original bands to be used in computations- compress
charactercompression option for GTiff files- yy
characteryear string used to retrieve filenames of rasters of original bands to be used in computations- out_format
characterstring used to retrieve filenames of rasters of original bands to be used in computations- DOY
characterdoy string used to retrieve filenames of rasters of original bands to be used in computations- scale_val
character(Yes/No) if Yes, output values in are computed as float -1 - 1, otherwise integer -10000 - 10000