View source: R/Routing_GR2MSemiDistr.R
Routing_GR2MSemiDistr | R Documentation |
Routing discharges for each subbasin.
Routing_GR2MSemiDistr(
Model,
Subbasins,
Dem,
AcumIni = NULL,
AcumEnd = NULL,
Save = FALSE,
Update = FALSE
)
Model |
List of model results from |
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. |
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.
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
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.