Extract layers, apply mask (optional), crop (optional), calculate NDVI (possible other indices supported in the future) and write output to file (optional)
sr2vi(x, vi = "ndvi", e = NULL, mask = NULL, keep = c(0), L = 0.5,
...)
Character. File name of the hdf file containing the bands, or list of filenames (geoTiffs).
Character. Vegetation index to be computed. 'ndvi', 'evi' and 'savi' are supported at the moment. The function will first attempt to find if a pre-processed version of the index is present in the list supplied or in the .hdf file and will use that layer when available.
Extent object or object that can be coerced as extent.
Character or NULL. The name of the cloud/Land mask to be applied to the output (e.g.: mask='fmask'
)
Numeric. Can take multiple values. Which values of the mask layer should be kept?
Numeric. Soil-adjustment factor for SAVI (ignored if vi != 'savi'). L can take on values between 0 and 1, and a default of 0.5 is typically used.
Arguments to be passed to writeRaster
A rasterLayer object
processLandsat
and processLandsatBatch
for wrapper and wrapper/batcher functions