install_sen2cor: Download and install (or link) Sen2Cor

View source: R/install_sen2cor.R

install_sen2corR Documentation

Download and install (or link) Sen2Cor

Description

install_sen2cor() downloads and installs a standalone version of Sen2Cor.

link_sen2cor() links an existing standalone version of Sen2Cor to sen2r.

Usage

install_sen2cor(sen2cor_dir = NA, version = "2.5.5", force = FALSE)

link_sen2cor(sen2cor_dir)

Arguments

sen2cor_dir

Path where sen2cor will be installed or searched (by default it is a subdirectory "sen2cor" of the default sen2r directory).

version

(optional) Character: Sen2Cor version (one among '2.5.5' - default - and '2.8.0').

force

(optional) Logical: if TRUE, installs sen2cor even if it is already found in sen2cor_dir (default is FALSE).

Value

NULL (the function is called for its side effects)

Note

License: GPL 3.0

Author(s)

Luigi Ranghetti, phD (2019)

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

Examples

## Not run: 
install_sen2cor(sen2cor_dir = tempdir())
# ( use a non-temporary folder path instead of tempdir() )

## End(Not run)

sen2r documentation built on Nov. 10, 2023, 9:08 a.m.