prediction: Prediction with preprocess Sentinel-2 images calculated

Description Usage Arguments Value

View source: R/prediction.R

Description

The function is a wrapper to perform the entire processing chain to find, download and pre-process Sentinel-2 data and produce prediction of Presence/Absence of a phenome. Input is a set of parameters that can be passed with a list or file (parameter param_list) or singularly (see the descriptions of all the other parameters).

Usage

1
prediction(param_list = NULL)

Arguments

param_list

(optional) List of input parameters: it can be both an R list or the path of a JSON file. If some parameters are passed both as elements of param_list and as function arguments, the values passed as function arguments are considered. If some parameters are missing in param_list and are not provided as arguments, default values will be used. Use the function s2_gui() to create a complete list of parameters. If param_list is NULL (default), values given with the parameters below (or default values for parameters not provided) are used.

path_indices

(optional) Path of the directory in which files of spectral indices are searched and/or generated. If not provided (default), path_out is used.

sigma

(optional) Default value 0.999, this is the value for extract point from raster file predict.

parallel

(optional) Logical or integer: if TRUE (default), some functions (sen2cor, s2_mask and s2_calcindices for now) are executed using multiple cores in order to speed up the execution. The number of cores is automatically determined; specifying it is also possible (e.g. parallel = 4). If FALSE, the processing chain is forced to run with a single core (this can be useful if multiple cnes instances are run in parallel). This argument can be set only in commandline mode, not using the GUI.

use_python

(optional) Logical: if TRUE (default), the presence of python in the system is checked before running the function; if FALSE, this is skipped. Setting this to FALSE can bge useful on systems with problems with python, when theia2r() is intended to be used only for processing existing SAFE files (python is required in any case to download SAFE).

tmpdir

(optional) Path where intermediate files will be created. Default is a temporary directory (unless outformat = "VRT": in this case, default is a subdirectory named ".vrt" within path_out).

Value

A vector with the paths of the files which were created (excluded the temporary files); NULL otherwise. The vector includes two attributes:


pobsteta/shiny-cnes documentation built on May 26, 2019, 2:31 a.m.