-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #207 from lawinslow/master
Fixed plotting issue and added whole.lake temp helper function
- Loading branch information
Showing
5 changed files
with
38 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
Package: glmtools | ||
Type: Package | ||
Title: glmtools | ||
Version: 0.14.0 | ||
Version: 0.14.1 | ||
Date: 2016-03-28 | ||
Authors@R: c( person("Jordan", "Read", role = c("aut","cre"), | ||
email = "[email protected]"), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#'@title Get volumetrically averaged whole lake temperature | ||
#'@details A metric function used like an rLakeAnalyzer function to be | ||
#'called by \code{\link{sim_metrics}} | ||
#'@param wtr a water temperature vector | ||
#' | ||
#'@import rLakeAnalyzer | ||
#' | ||
#'@seealso \code{\link{sim_metrics}}, \code{\link{compare_to_field}}, \code{\link{validate_sim}} | ||
#'@export | ||
whole.lake.temperature <- function(wtr, depths, bthA, bthD){ | ||
|
||
|
||
avg_temp = layer.temperature(0,max(depths), wtr=wtr, depths=depths, bthA=bthA, bthD=bthD) | ||
|
||
return(avg_temp) | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.