read_inputData: read_inputData

Description Usage Arguments Details Value See Also Examples

View source: R/read_inputData.R

Description

Function to read the input data file used in a PRMS simulation

Usage

1
read_inputData(file, nheader, nvars, NAval = -999)

Arguments

file

Character, pathname to input data file

nheader

Integer, number of header lines, usually containing created by and station metadata, in the file

nvars

Integer, number of unique variables (ex. runoff, tmin, tmax; nvars=3) in the data file

NAval

Integer, value of missing data in statvar/data file (usually -999)

Details

Variables and station numbers of the data file are determined by the variable numberOfStations which is the format read by PRMS and setup by the user prior to a simulation. This function will assign each timeseries the column title of variable_stationNumber in the order that they are listed.

Value

A dataframe containing the input data file with varialbe_stationNumber column titles

See Also

calc_WYstats,

Examples

1
exampleData <- read_inputData(file = "data/rghw_ALL.data")

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