calcindex: Compute index using 'raster' or 'stars' features

calcindex_rasterR Documentation

Compute index using raster or stars features

Description

Internal functions used to compute spectral indices and thumbnails through raster or stars features.

Usage

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
)

Arguments

x

Input file path, or RasterLayer (in calcindex_raster()) or stars (in calcindex_stars()).

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 s2_calcindices()).

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 blockSize().

Value

NULL (the function is called for its side effects)

Note

License: GPL 3.0

Author(s)

Luigi Ranghetti, phD (2020)

References

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/.


ranghetti/fidolasen documentation built on March 27, 2024, 9:37 p.m.