Skip to contents

Load user provided rasters

Usage

envs_userEnvs(rasPath, rasName, doBrick = FALSE, logger = NULL)

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

Value

A rasterStack or a rasterBrick (if doBrick = TRUE) of user provided rasters

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.

Author

Jamie Kass <jamie.m.kass@gmail.com >

Gonzalo E. Pinilla-Buitrago <gepinillab@gmail.com>

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)
} # }