Learn R Programming

DWBmodelUN (version 1.0.0)

buildGRUmaps: Build Grouped Response Units in maps

Description

This function builds raster maps for each parameter based on a raster file where the location of the Grouped Response Units (GRUs) are defined. This raster must have the same resolution as the forcing files (i.e., for each cell that is planned to be simulated, there must be forcing time series and a cell assigned to a GRU).

Usage

buildGRUmaps(gruLoc, parsValues)

Arguments

gruLoc

raster file that is comprised by numbers from 1 to the total number of GRUs that were defined.

parsValues

data frame that has the values of the four parameters of each GRU. It must have equal number of rows as number of GRU that were defined, and must have four columns which define the alpha1, alpha2, d and Smax parameters.

Value

a list which consists of four vectors and four raster, each one of them has the values of a parameter spatialized according with the GRU raster layer.

Examples

Run this code
# NOT RUN {
data(GRU)    
data(param)
gru_maps <- buildGRUmaps(GRU, param)


# }

Run the code above in your browser using DataLab