raster
or stars
featuresInternal functions used to compute spectral indices and
thumbnails through raster
or stars
features.
calcindex_raster(
x,
sel_formula,
out_file,
NAflag = -32768,
sel_format = "GTiff",
compress = "LZW",
datatype = "Int32",
bigtiff = FALSE,
overwrite = FALSE,
minrows = NULL
)calcindex_stars(
x,
sel_formula,
out_file,
NAflag = -32768,
sel_format = "GTiff",
compress = "LZW",
datatype = "Int16",
bigtiff = FALSE,
overwrite = FALSE
)
NULL (the function is called for its side effects)
Input file path, or RasterLayer
(in calcindex_raster()
) or
stars
(in calcindex_stars()
).
Formula used to compute output raster (specific formats are used - documentation will be improved).
Output file path.
(optional)
(optional) Format of the output file (in a format recognised by GDAL). Default "GTiff".
(optional) In the case a GTiff format is present, the compression indicated with this parameter is used.
(optional) Numeric datatype of the output rasters
(see s2_calcindices()
).
(optional) Logical: if TRUE, the creation of a BigTIFF is forced (default is FALSE). This option is used only in the case a GTiff format was chosen.
Logical value: should existing output files be overwritten? (default: FALSE)
(optional) parameter passed to blockSize()
.
Luigi Ranghetti, phD (2020)
L. Ranghetti, M. Boschetti, F. Nutini, L. Busetto (2020). "sen2r": An R toolbox for automatically downloading and preprocessing Sentinel-2 satellite data. Computers & Geosciences, 139, 104473. tools:::Rd_expr_doi("10.1016/j.cageo.2020.104473"), URL: https://sen2r.ranghetti.info/.