calcindex_raster | R Documentation |
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
)
x |
Input file path, or |
sel_formula |
Formula used to compute output raster (specific formats are used - documentation will be improved). |
out_file |
Output file path. |
NAflag |
(optional) |
sel_format |
(optional) Format of the output file (in a format recognised by GDAL). Default "GTiff". |
compress |
(optional) In the case a GTiff format is present, the compression indicated with this parameter is used. |
datatype |
(optional) Numeric datatype of the output rasters
(see |
bigtiff |
(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. |
overwrite |
Logical value: should existing output files be overwritten? (default: FALSE) |
minrows |
(optional) parameter passed to |
NULL (the function is called for its side effects)
License: GPL 3.0
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. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1016/j.cageo.2020.104473")}, URL: https://sen2r.ranghetti.info/.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.