initOTB: initOTB setup the orfeo toolbox bindings for a rsession

Description Usage Arguments Details Value Note Author(s) Examples

Description

The function initOTB trys to locate all valid OTB installation and returns the pathes and environment settings. All valid means that it looks for the otb_cli.bat file. If the file is found in a bin folder it is assumed to be a valid OTB binary installation.

Usage

1
2
initOTB(binPathOtb = NULL, rootPathOtb = NULL, otbType = NULL,
  DL = "C:", selectOtbVer = FALSE)

Arguments

binPathOtb

string contains path to where the otb binaries are located

rootPathOtb

string provides the root folder of the binPathOtb

DL

string hard drive letter default is C:

selectOtbVer

boolean default is FALSE. If there is more than one OTB installation and selectOtbVer = TRUE the user can select interactively the preferred OTB version

Details

initOTB

if called without any parameter initOTB() it performs a full search over the hardrive C:. If it finds one or more OTB binaries it will take the first hit. You have to set selectOtbVer = TRUE for an interactive selection of the preferred version.

Value

add otb pathes to the enviroment and creates global variables otbPath

Note

It is strongly recommended to set the path manually. Using a osgeo4w installation it is typically C:/OSGeo4W64/bin/

Author(s)

CR

Examples

1
2
3
4
5
6
7
8
## Not run: 
# call it for a default OSGeo4W installation of the OTB
initOTB("C:/OSGeo4W64/bin/")

# call it for a default Linux installation of the OTB
initOTB("/usr/bin/")

## End(Not run)

environmentalinformatics-marburg/satelliteTools documentation built on May 16, 2019, 8:16 a.m.