read_standard: Read Standard Table

Description Usage Arguments Value Examples

View source: R/main.r

Description

Read a standard (not grain class-specific) table.

Usage

1
2
read_standard(f, table.name, which.times = NULL, which.stations = NULL,
  override.sediment = FALSE)

Arguments

f

The HDF5 file to read.

table.name

The table to read.

which.times

Character vector of timestamps to extract. If NULL, all timestamps will be returned.

which.stations

Character vector of stations to extract. If NULL, all stations will be returned.

override.sediment

(For Unsteady+Sediment models only) If True, extract data from the hydraulic rather than sediment output.

Value

A dataframe with a column "Time" containing the Date Time Stamp data and columns "XS_####" where ### is the cross-section ID.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
simple.quasi = system.file("sample-data/SampleQuasiUnsteady.hdf",
  package = "RAStestR")
read_standard(simple.quasi, "Flow")

simple.unsteady = system.file("sample-data/SampleUnsteady.hdf",
  package = "RAStestR")
read_standard(simple.unsteady, "Flow")

read_standard(simple.quasi, "Flow", which.times = "11DEC1990 01:00:00",
  which.stations = c("XS_800", "XS_796.00*"))

read_standard(simple.quasi, "Flow", which.times = 2:3,
  which.stations = 1:4)

mkoohafkan/RAStestR documentation built on July 14, 2019, 11:41 p.m.