| waterOptions | R Documentation |
Sets or shows the global options of the water package. Inspired by rasterOptions() of the raster package (Robert J. Hijmans).
waterOptions(
overwrite,
writeResults,
outputFolder,
SRTMrepo,
autoAoi,
default = FALSE
)
overwrite |
Logical. If TRUE and writeResults is TRUE, the final outputs overwrite files of earlier sessions; a file written earlier in the same session is never overwritten (an object may still read it): a new name is used, with a warning (so, in one session, EB.tif keeps the first result). If FALSE, a time stamp is appended to the file name (name_YYYYmmddHHMMSS.tif). |
writeResults |
Logical. If TRUE (default FALSE) results are written to disk as GeoTIFF files: the final outputs (EB from METRIC.EB(), ET24 from ET24h(), DEM from getDEM() and prepareSRTMdata()) to outputFolder, and the intermediate results to terra's temporary files, with unique names. This is slower, but avoids out-of-memory problems with large images. Values are stored as 32-bit floats. The temporary files are deleted when the R session ends (they can be large for full scenes). |
outputFolder |
Name of a folder to save files, relative to the working directory. |
SRTMrepo |
A folder where SRTM grids are stored. Currently not used by prepareSRTMdata(); use its path argument |
autoAoi |
Deprecated and ignored, with a warning. An object
called aoi in the workspace is no longer used: pass aoi to loadImage(),
loadImageSR(), albedo() or the METRIC functions. See |
default |
Logical. If TRUE will revert all options to default values |
list of the current options (invisibly). If no arguments are provided the options are printed.
Guillermo Federico Olmedo
Robert J. Hijmans (2015). raster: Geographic Data Analysis and Modeling. R package version 2.4-18. https://CRAN.R-project.org/package=raster
Other support functions:
checkSRTMgrids(),
createAoi(),
getDEM(),
prepareSRTMdata()
# show the options
waterOptions()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.