rvn_rvi_getparams: Retrieve Parameter Information from RVI file Algorithms

View source: R/rvn_rvi_getparams.R

rvn_rvi_getparamsR Documentation

Retrieve Parameter Information from RVI file Algorithms

Description

Reads the processed rvi object and returns a data frame of parameter information for parameters associated with processes in the rvi object.

Usage

rvn_rvi_getparams(
  rvi,
  RavenAlgParamsFile = system.file("extdata", "RavenAlgParams.dat", package = "RavenR"),
  RavenParamsFile = system.file("extdata", "RavenParameters.dat", package = "RavenR")
)

Arguments

rvi

data object generated from the rvn_rvi_read routine

RavenAlgParamsFile

(optional) path to RavenAlgParams.dat file

RavenParamsFile

(optional) path to RavenParameters.dat file

Details

Uses the Raven database files in the /extdata folder to (1) associate parameters with particular algorithms, and (2) subset the database parameter list based on the information in the rvi file.

These files are stored with the RavenR package and retrieved with this function by default, but a separate link may be provided to a modified file if desired. Note that the database files held in the RavenR package are unofficial copies of those in the official Raven SVN, and any discrepancies should defer to the Raven SVN versions.

Value

Returns a data frame with parameter information containing the parameter name, parameter class, units, auto (whether the parameter may be autogenerated within Raven), default, min, and max values. Note that the flags 'xxx', -9999, and 9999 are used as missing values within the parameter data frame.

Examples

# sample workflow of rvn_rvi_read
rvi <- system.file("extdata","Nith.rvi", package="RavenR") %>%
rvn_rvi_read(.)

# get data frame of parameters related to processes in rvi file
rvn_rvi_getparams(rvi)


rchlumsk/RavenR documentation built on April 19, 2024, 5:15 a.m.