Extract details from HydroRun object

Share:

Description

get.data.types extracts a list of data.types stored in a HydroRun object. get.stations extracts a list of stations for which data is available. get.runCount returns the number of runs stored in the object.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
get.names(object, ...)
validity.check(object)
get.data.types(object, type = factor(c("flux", "state")),
 		origin = factor(c("simulated", "measured")), 
		runs = 1:max(object@metadata$run.ID))

get.stations(object, type = factor(c("flux", "state")), 
		origin = factor(c("simulated", "measured")), 
		data.types = get.data.types(object, type = type, origin = origin),
                 runs = 1:max(object@metadata$run.ID), unique = TRUE)

get.runCount(object)

Arguments

object

a HydroRun object

type

ToDo

origin

ToDo

unique

ToDo

...

Optional arguments for the get.names function

data.types

List of strings with the data.types for which to obtain information

stations

List of strings with the stations for which to obtain information

runs

Vector of run-indizes for which to get information

Value

A list of strings is returned.

Author(s)

Dominik Reusser, Wouter Buytaert

References

thePaper

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
library(RHydroWasimData)
file=system.file("controllfile.$$$", package="RHydroWasimData")

object <- wasim.read.Run(file)
get.data.types(object)
get.stations(object)

## End(Not run)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.