Skip to content

Commit 4af4524

Browse files
committed
add proper references for color indices
1 parent ec6106e commit 4af4524

8 files changed

Lines changed: 34 additions & 6 deletions

R/soilColorIndices.R

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
# miscellaneous soil color indices
22

33
#' @title Horizon Color Indices
4-
#' @description Calculate basic horizon-level color indices for a SoilProfileCollection. Basic indices do not require aggregation over the whole profile or comparison to a "reference" (e.g. parent material) color. Includes Hurst (1977) Redness Index, Barron-Torrent Redness Index (1986) and Buntley-Westin Index (1965).
4+
#' @description Calculate basic horizon-level color indices for a SoilProfileCollection. Basic indices do not require aggregation over the whole profile or comparison to a "reference" (e.g. parent material) color. Includes Hurst (1977) Redness Index, Barron-Torrent Redness Index (1986) and Buntley-Westin Index (1965). This is a wrapper method around several horizon-level indices. See the individual functions for more details.
55
#' @param p A SoilProfileCollection
66
#' @param hue Column name containing moist hue; default: "m_hue"
77
#' @param value Column name containing moist value; default: "m_value"
88
#' @param chroma Column name containing moist chroma; default: "m_chroma"
99
#' @return A data.frame containing unique pedon and horizon IDs and horizon-level color indices.
1010
#' @author Andrew G. Brown.
11+
#' @seealso \code{\link{hurst.redness}} \code{\link{barron.torrent.redness.LAB}} \code{\link{buntley.westin.index}}
1112
#' @examples
1213
#' data(sp1)
1314
#'
@@ -47,6 +48,7 @@ horizonColorIndices <- function(p, hue="m_hue", value="m_value", chroma="m_chrom
4748
#' @param chroma A numeric vector containing Munsell chromas
4849
#' @return A numeric vector of horizon redness index (lower values = redder).
4950
#' @author Andrew G. Brown.
51+
#' @references Hurst, V.J. (1977) Visual estimation of iron in saprolite. GSA Bulletin. 88(2): 174–176. doi: https://doi.org/10.1130/0016-7606(1977)88<174:VEOIIS>2.0.CO;2
5052
#' @rdname hurst.redness
5153
#' @export hurst.redness
5254
hurst.redness <- function(hue, value, chroma) {
@@ -66,6 +68,7 @@ hurst.redness <- function(hue, value, chroma) {
6668
#' @param chroma A numeric vector containing Munsell chromas
6769
#' @return A numeric vector of horizon redness index (higher values = redder).
6870
#' @author Andrew G. Brown.
71+
#' @references Barron, V. and Torrent, J. (1986), Use of the Kubelka—Munk theory to study the influence of iron oxides on soil colour. Journal of Soil Science, 37: 499-510. doi:10.1111/j.1365-2389.1986.tb00382.x
6972
#' @rdname barron.torrent.redness.LAB
7073
#' @export barron.torrent.redness.LAB
7174
barron.torrent.redness.LAB <- function(hue, value, chroma) {
@@ -83,6 +86,7 @@ barron.torrent.redness.LAB <- function(hue, value, chroma) {
8386
#' @param chroma_ref A numeric vector containing Munsell chroma(s) for reference material
8487
#' @return A numeric vector reflecting horizon redness increase relative to a reference (e.g. parent) material.
8588
#' @author Andrew G. Brown.
89+
#' @references Harden, J.W. (1982) A quantitative index of soil development from field descriptions: Examples from a chronosequence in central California. Geoderma. 28(1) 1-28. doi: 10.1016/0016-7061(82)90037-4
8690
#' @rdname harden.rubification
8791
#' @export harden.rubification
8892
harden.rubification <- function(hue, chroma, hue_ref, chroma_ref) {
@@ -101,6 +105,7 @@ harden.rubification <- function(hue, chroma, hue_ref, chroma_ref) {
101105
#' @param value_ref A numeric vector containingMunsell value(s) for reference material
102106
#' @return A numeric vector reflecting horizon darkening relative to a reference (e.g. parent) material.
103107
#' @author Andrew G. Brown.
108+
#' @references Harden, J.W. (1982) A quantitative index of soil development from field descriptions: Examples from a chronosequence in central California. Geoderma. 28(1) 1-28. doi: 10.1016/0016-7061(82)90037-4
104109
#' @rdname harden.melanization
105110
#' @export harden.melanization
106111
harden.melanization <- function(value, value_ref) {
@@ -115,8 +120,9 @@ harden.melanization <- function(value, value_ref) {
115120
#' @description Calculate "Color Development Equivalent" by the method of Buntley & Westin (1965) "A Comparative Study of Developmental Color in a Chestnut-Chernozem-Brunizem Soil Climosequence" DOI: 10.2136/sssaj1965.03615995002900050029x. Originally developed for Mollisols, the Buntley-Westin index has been used as a tool to separate soils based on depth to particular colors.
116121
#' @param hue A character vector containing Munsell hues (e.g. "7.5YR")
117122
#' @param chroma A numeric vector containing Munsell chromas
118-
#' @return A numeric vector reflecting horizon redness (higher values = redder).
123+
#' @return A numeric vector reflecting horizon color development.
119124
#' @author Andrew G. Brown.
125+
#' @references Buntley, G.J. and Westin, F.C. (1965), A Comparative Study of Developmental Color in a Chestnut‐Chernozem‐Brunizem Soil Climosequence. Soil Science Society of America Journal, 29: 579-582. doi:10.2136/sssaj1965.03615995002900050029x
120126
#' @rdname buntley.westin.index
121127
#' @export buntley.westin.index
122128
buntley.westin.index <- function(hue, chroma) {
@@ -135,8 +141,9 @@ buntley.westin.index <- function(hue, chroma) {
135141
#' @param pattern Regular expression to match A horizons (default: "^A" which means horizon designation _starts with_ A)
136142
#' @param value Column name containing horizon color values (default: "m_value")
137143
#' @param chroma Column name containing horizon color chromas (default: "m_chroma")
138-
#' @return A numeric vector reflecting horizon redness (higher values = redder).
144+
#' @return A numeric vector reflecting horizon darkness (lower values = darker).
139145
#' @author Andrew G. Brown.
146+
#' @references Thompson, J.A. and Bell, J.C. (1996), Color Index for Identifying Hydric Conditions for Seasonally Saturated Mollisols in Minnesota. Soil Science Society of America Journal, 60: 1979-1988. doi:10.2136/sssaj1996.03615995006000060051x
140147
#' @rdname thompson.bell.darkness
141148
#' @export thompson.bell.darkness
142149
thompson.bell.darkness <- function(p, name = NULL, pattern="^A", value="m_value", chroma="m_chroma") {

man/barron.torrent.redness.LAB.Rd

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/buntley.westin.index.Rd

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/harden.melanization.Rd

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/harden.rubification.Rd

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/horizonColorIndices.Rd

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/hurst.redness.Rd

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/thompson.bell.darkness.Rd

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)