Routing_GR2MSemiDistr: Routing discharges for each subbasin.

View source: R/Routing_GR2MSemiDistr.R

Routing_GR2MSemiDistrR Documentation

Routing discharges for each subbasin.

Description

Routing discharges for each subbasin.

Usage

Routing_GR2MSemiDistr(
  Model,
  Subbasins,
  Dem,
  AcumIni = NULL,
  AcumEnd = NULL,
  Save = FALSE,
  Update = FALSE
)

Arguments

Model

List of model results from Run_GR2MSemiDistr.

Subbasins

Subbasins' shapefile. Must contain the following attributes: 'Area' (in km2), 'Region' (in letters), and 'COMID' (identifier number).

Dem

Digital elevation model raster for the extent of the basin.

AcumIni

Initial date of the model routing in 'mm/yyyy' format. NULL as default

AcumEnd

Ending date of the model routing in 'mm/yyyy' format. NULL as default

Save

Boolean to save results as a text file in the 'Outputs' location. FALSE as default.

Update

Boolean for the updating mode where only the last month's values will be returned. FALSE as default.

Value

List of model routing outputs.

QR: Routed discharge timeseries for all subbasins in [m3/s].

Dates: Vector of dates of the simulation period.

COMID: Vector of identifier numbers for each subbasin.

Author(s)

Llauca H, Lavado-Casimiro W, Montesinos C, Santini W, Rau P. PISCO_HyM_GR2M: A Model of Monthly Water Balance in Peru (1981–2020). Water. 2021; 13(8):1048. https://doi.org/10.3390/w13081048

Examples

# Load data
require(GR2MSemiDistr)
data(dem)

# Routing discharges in the streamflow network
rou <- Routing_GR2MSemiDistr(Model=model,
                             Subbasins=roi,
                             Dem=dem,
                             AcumIni='01/1981',
                             AcumEnd='12/2016')
View(rou$QR)

hllauca/GR2MSemiDistr documentation built on March 2, 2024, 3:33 a.m.