Skip to content

Commit

Permalink
oxygenised helper functions
Browse files Browse the repository at this point in the history
  • Loading branch information
robertladwig committed Feb 8, 2021
1 parent affa771 commit f7a6d64
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 13 deletions.
16 changes: 10 additions & 6 deletions R/helper.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,18 @@ add_noise <- function(bc){
}


#' Extract time and space information
#' Simple two-layer water temperature model
#'
#' Extracts time (from date column) and space (aka depth) information
#' Runs a simple two-layer water temperature model in dependence of meteorological drivers and
#' lake setup/configuration. The model automatically calculates summer stratification onset and
#' offset
#'
#' @param t matrix; Water temperatures (rows correspond to time, cols to depth)
#' @param y matrix; Water temperatures (rows correspond to time, cols to depth)
#' @param parns matrix; Water temperatures (rows correspond to time, cols to depth)
#' @return list of datetimes and depths
#' @param bc meteorological boundary conditions: day, shortwave radiation, air temperature, dew
#' point temperature, wind speed and wind shear stress
#' @param params configuration parameters
#' @param ini vector of the initial water temperatures of the epilimnion and hypolimnion
#' @param times vector of time information
#' @return matrix of simulated water temperatures in the pilimnion and hypolimnion
#' @export
#' @import deSolve
#' @import LakeMetabolizer
Expand Down
Binary file modified inst/mendota/2L_visual_mendota.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 12 additions & 7 deletions man/run_model.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f7a6d64

Please sign in to comment.