maskapply_parallel: Parallel masking over SR products

Description Usage Arguments Note Author(s)

Description

Internal function to apply cloud mask to SR products. It is used inside s2_mask only on multiband virtual products (because if the output is a physical file there is no gain in using this procedure).

Usage

1
2
3
maskapply_parallel(in_rast, in_mask, outpath, tmpdir = NA, binpaths,
  NAflag = 0, parallel = TRUE, minrows = NULL, datatype = "INT2S",
  overwrite = FALSE, .log_message = NA, .log_output = NA)

Arguments

in_rast

Input raster Stack.

in_mask

Input Raster to be used as mask (pixesl with values 1 are not masked, pixels with values 0 are masked).

outpath

Path of the output file.

tmpdir

(optional) Path where intermediate VRT will be created. Default is in a temporary directory.

binpaths

list of paths of binaries.

NAflag

(optional) NA value to be used where mask is applied.

parallel

(optional) Logical: if TRUE, masking is conducted using parallel processing, to speed-up the computation for large rasters. The number of cores is automatically determined; specifying it is also possible (e.g. parallel = 4). If FALSE (default), single core processing is used.

minrows

(optional) Argument to be passed to raster::blockSize.

datatype

(optional) data type of the output raster.

overwrite

(optional) Logical value: should existing output files be overwritten? (default: FALSE)

.log_message

(optional) Internal parameter (it is used when the function is called by s2_mask()).

.log_output

(optional) Internal parameter (it is used when the function is called by s2_mask()).

Note

License: GPL 3.0

Author(s)

Lorenzo Busetto, phD (2018) lbusett@gmail.com

Luigi Ranghetti, phD (2018) ranghetti.l@irea.cnr.it


pobsteta/theia2r documentation built on May 25, 2019, 2:21 p.m.