read_nhruOut: read_nhruOut

Description Usage Arguments Details Value Examples

View source: R/read_nhruOut.R

Description

Function to read the nhru summary files output by PRMS

Usage

1
read_nhruOut(nhruOutBaseFileName = "", nhruOutVar_names, nhru)

Arguments

nhruOutBaseFileName

Character, base file name for nhru summary files specified in the PRMS control file. Note this should also contain the pathname to Output folder containing nhru summary .csv files.

nhruOutVar_names

Character vector of variable names to read, based on variables specified in the PRMS control file.

nhru

Integer, number of HRUs in PRMS model

Details

A function for reading in nhru summary output files. Note that in the PRMS control file, nhruOutON_OFF must be set to 1 for .csv files to be output.

Value

A list of dataframes containing the nhru summary output. List elements are each variable specified in nhruOutVar_names

Examples

1
2
3
4
exampleData2 <- read_nhruOut(nhruOutBaseFileName = "data/rghw_Daymet_nhru_summary_",
                             nhruOutVar_names = c("hru_rain", "hru_snow"),
                             nhru = 28)
rain <- exampleData2$hru_rain

cpenn-usgs/prmsTools documentation built on May 6, 2019, 9:49 p.m.