waterOptions: Global options for water package

Description Usage Arguments Value Author(s) References

Description

This function is based on raster::rasterOptions by Robert Hijmans.

Usage

1
2
3
4
5
6
7
8
waterOptions(
  overwrite,
  writeResults,
  outputFolder,
  SRTMrepo,
  autoAoi,
  default = FALSE
)

Arguments

overwrite

Logical. If TRUE and writeResults is TRUE it will overwrite results. If FALSE, results are save with a name with name_datetime.

writeResults

Logical. If TRUE it'll write result to disk. This is slower but if FALSE you can have out-of-memory problems.

outputFolder

Name of a folder to save files, relative to workind folder.

SRTMrepo

A folder where SRTM grids are stored, to create DEM. See prepareSRTMdata()

autoAoi

Logical. If TRUE it'll look for a object called aoi on .GlobalEnv and use it as aoi. See createAoi()

default

Logical. If TRUE will revert all options to defaults values

Value

list of the current options (invisibly). If no arguments are provided the options are printed.

Author(s)

Guillermo F Olmedo, guillermo.olmedo@gmail.com

References

Robert J. Hijmans (2015). raster: Geographic Data Analysis and Modeling. R package version 2.4-18. http://CRAN.R-project.org/package=raster


midraed/water documentation built on Feb. 20, 2022, 7:30 a.m.