init_state: Initial conditions of the model

Description Usage Arguments Details Value Author(s) References Examples

View source: R/init_state.R

Description

This function uploads or creates the initial conditions of the two-state variables present in the DWB model, in raster format.

Usage

1
init_state(raster)

Arguments

raster

It could be a raster containing the maximum storage in the root zone or two raster with the initial conditions of storage

Details

It requires the raster composed of the Srmax values that were created using the buildGRUmaps function or two rasters previously created with the initial conditions of the soil water and groundwater storage. If there is only be one raster found, the function creates those two rasters using the value of the provide raster reduced by half.

Value

A list containing initial conditions in storage and in ground.

Author(s)

Nicolas Duque Gardeazabal <nduqueg@unal.edu.co>
Pedro Felipe Arboleda <pfarboledao@unal.edu.co>
Carolina Vega Viviescas <cvegav@unal.edu.co>
David Zamora <dazamoraa@unal.edu.co>

Water Resources Engineering Research Group - GIREH Universidad Nacional de Colombia - Sede Bogota

References

Budyko. (1974). "Climate and life". New York: Academic Press, INC.

Zhang, L., Potter, N., Hickel, K., Zhang, Y., & Shao, Q. (2008). "Water balance modeling over variable time scales based on the Budyko framework - Model development and testing. Journal of Hydrology", 360(1-4), 117-131.

Examples

1
2
3
4
5
6
7
8
9
library(raster)

# Example 1
data(gru_maps)
init <- init_state(gru_maps$smaxR)

# Example 2
data(In_storage, In_ground)
init <- init_state(stack(In_storage, In_ground))

dazamora/DWBmodelUN documentation built on Aug. 29, 2020, 11:41 a.m.