readin_rhessys_output_cal: Extracts output from a multiple RHESSys runs into R

View source: R/readin_rhessys_output_cal.R

readin_rhessys_output_calR Documentation

Extracts output from a multiple RHESSys runs into R

Description

Imports multiple-run RHESSys output that has been consolidated by variable. This function imports and manipulates data so that it is 'tidy' and easily imported into ggplot.

Usage

readin_rhessys_output_cal(
  var_names,
  path,
  initial_date,
  parameter_file = NULL,
  num_layers = 1
)

Arguments

var_names

Vector of the variables names that are to be imported into R. Variables should all have the same number of layers.

path

Path to the directory containing data

initial_date

Initial date for the data e.g. lubridate::ymd("1941-10-01")

parameter_file

Optional file containing parameters to be included in analysis (e.g. RHESSysIOinR output x_parameter_sets.csv)

num_layers

Number of layers in data. For most output (e.g. patch, basin), this will generally have a value of one. The exception being when using two canopies.

Details

This function processes the output from multiple run calibration or simulations which consolidate a selection of the output into the allsim folder.


ryanrbart/rhessysR documentation built on March 29, 2024, 4:30 p.m.