Skip to contents

SoilChemistry: SAR, CEC (sum of cations) and ESP (U.S. Salinity Laboratory Staff 1954). SoilCarbon: SOC stock, Pieri (1992) structure index and mean weight diameter (van Bavel 1950). UsdaTexture: USDA texture triangle class. SobelFilter: Sobel gradients and magnitude.

Usage

SoilChemistry(na, ca, mg, k = 0, h_al = 0, na_ex = NULL)

SoilCarbon(
  soc_pct,
  bulk_density,
  depth_cm,
  coarse_fraction = 0,
  clay_pct = NULL,
  silt_pct = NULL,
  aggregate_fractions = NULL,
  aggregate_diameters = NULL
)

UsdaTexture(sand, silt, clay)

SobelFilter(grid, res = 1)

Arguments

na, ca, mg, k, h_al

Cations.

na_ex

Exchangeable sodium (default na).

soc_pct

Organic carbon (percent).

bulk_density

Bulk density (g/cm3).

depth_cm

Layer depth (cm).

coarse_fraction

Coarse fragment fraction.

clay_pct, silt_pct

Percentages.

aggregate_fractions, aggregate_diameters

Aggregate classes.

sand, silt, clay

Percentages summing to 100.

grid

Numeric matrix.

res

Cell size.

Value

List or character.

References

Pieri, C. (1992). Fertility of Soils: A Future for Farming in the West African Savannah. Springer.

Examples

SoilChemistry(na = 10, ca = 4, mg = 4, k = 1, h_al = 1)$sar
#> [1] 5
SoilCarbon(1, 1.3, 30)$stock
#> [1] 39
UsdaTexture(40, 40, 20)
#> [1] "loam"