envs_userEnvs
envs_userEnvs.Rd
Load user provided rasters
Arguments
- rasPath
character. Path to rasters, must be the full path including file name and extension
- rasName
character. Vector of raster names to be assigned to loaded rasters
- doBrick
logical. Converts downloaded rasters to brick for faster processing
- logger
Stores all notification messages to be displayed in the Log Window of Wallace GUI. Insert the logger reactive list here for running in shiny, otherwise leave the default NULL
Details
This function is called by the module envs to load user provided raster variables for use in further analyses. It returns either a rasterStack or rasterBrick of loaded variables with appropriate names for further analyses.
Examples
if (FALSE) { # \dontrun{
pathRast <- list.files(system.file("extdata/wc", package = "wallace"),
pattern = ".tif$", full.names = TRUE)
nameRast <- list.files(system.file("extdata/wc", package = "wallace"),
pattern = ".tif$", full.names = FALSE)
userEnvs <- envs_userEnvs(rasPath = pathRast, rasName = nameRast)
} # }