knitr::opts_chunk$set(echo = TRUE)
RHESSysIOinR contains functions for running RHESSys in R and processing output. The objective of this package is to clearly and efficiently produce R code that can be used to setup RHESSys, conduct calibrations and simulations, and process output. This package supports a long(er)-term goal of having experiments involving RHESSys be reproducible. #OpenScience
You can install RHESSysIOinR directly from R
# install.packages("devtools") devtools::install_github("RHESSys/RHESSysIOinR")
The run_rhessys()
function is the core method used to setup and run RHESSys. Documentation on how to set up and use the function is contained in the package.
build_redefine()
: generates redefine worldfilescal.wyd()
: calculates wateryear daychange_def_file()
: create new def file based on existing file and input parsclim_auto()
: helper to simplify climate input for run_rhessys()
evaluation()
: used to evaluate model outputinput_tec()
: helper to simplify input of tec eventsmkdate()
: generates wy, yd, and wyd based on day, month, yearread_clim()
: reads rhessys formatted climate data into Rreadin_rhessys_output()
: reads rhessys output into R, includes some subsetting and simply aggregationreadin_rhessys_output_old()
: legacy method to read in rhessys outputtec_repeat()
: generates repeating tec events for input into run_rhessys()
, can also copy+rename a redefine file as neededwrite_sample_clim()
: generate new climate based on existing climateAdd the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.