Skip to content

Commit

Permalink
adding tenth bar VWC, updates
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanbeaudette committed Apr 3, 2024
1 parent 1982a4c commit e879b43
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Encoding: UTF-8
Title: A Soil Survey Toolkit
Description: Miscellaneous soil data management, summary, visualization, and conversion utilities to support soil survey.
Version: 2.2
Date: 2023-08-24
Date: 2024-04-03
Authors@R: c(
person(given="Dylan", family="Beaudette", role = c("cre", "aut"), email = "[email protected]"),
person(given="Jay", family="Skovlin", role = c("aut")),
Expand Down
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# sharpshootR 2.2 (2024-03-26)
* `prepare_SSURGO_hydro_data()` now returns more soil property data
* major updates to `monthlyWB()`:
- mass balance check, reporting, and messages when not closed
- new arguments which enable / modify the distribution of PPT and PET within k-bins / month
Expand Down
4 changes: 3 additions & 1 deletion R/prepare_SSURGO_hydro_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
#' |hz_bottom |horizon bottom depth (cm) |
#' |thick |horizon thickness (cm) |
#' |sat |VWC at saturation (cm/cm) |
#' |fc |VWC at field capacity or 1/3rd bar tension (cm/cm) |
#' |fc |VWC at field capacity defined by 1/3rd bar tension (cm/cm) |
#' |fc_tenthbar |VWC at field capacity defined by 1/3rd bar tension (cm/cm) |
#' |pwp |VWC at permanent wilting point or 15 bar tension (cm/cm) |
#' |awc |total sand content (<2mm fraction, mass %) |
#' |sand |total silt content (<2mm fraction, mass %) |
Expand All @@ -49,6 +50,7 @@ prepare_SSURGO_hydro_data <- function(cokeys, max.depth) {
(hzdepb_r - hzdept_r) AS thick,
wsatiated_r / 100.0 AS sat,
wthirdbar_r / 100.0 AS fc,
wtenthbar_r / 100.0 AS fc_tenthbar,
wfifteenbar_r / 100.0 as pwp,
awc_r as awc,
sandtotal_r as sand,
Expand Down
3 changes: 2 additions & 1 deletion man/prepare_SSURGO_hydro_data.Rd

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

0 comments on commit e879b43

Please sign in to comment.