rvn_rvt_read {RavenR}R Documentation

Read .rvt (Raven time series) file

Description

This routine reads in a valid Raven time series input (.rvt) file and returns the information as an xts time series.

Usage

rvn_rvt_read(filename, tzone = "UTC")

Arguments

filename

the name of the .rvt file (with .rvt extension included ), either relative to the working directory or absolute.

tzone

string indicating the timezone of the data provided in filename (default "UTC")

Details

It supports :MultiData, :Data, :ObservedData, :BasinInflowHydrograph, and most of the other :Data-like time series commands. It does NOT support the master .rvt file with :Gauge or :GriddedForcing commands

The timezone is provided by the tzone argument as "UTC" by default, and should be adjusted by the user to the local time zone as needed, based on the model run.

Value

Returns an xts time series with at least one dataset (multiple for :MultiData files)

Author(s)

James R. Craig, University of Waterloo

Examples

# read in rvt file
system.file('extdata','GlenAllan.rvt',package="RavenR") %>%
rvn_rvt_read(.) -> rvt
plot(rvt$TEMP_DAILY_MIN)


[Package RavenR version 2.1.0 Index]