Skip to content

ptfkit.wang2012

ptfkit.wang2012

Wang et al. (2012), surface loess across China's Loess Plateau.

Reference

Wang, Y. Q., Shao, M. A., & Liu, Z. P. (2012). Pedotransfer functions for predicting soil hydraulic properties of the Chinese Loess Plateau. Soil Science, 177, 424-432. DOI: 10.1097/SS.0b013e318255a449

Territory

Surface soils across the entire Loess Plateau, China

Dataset

382 surface (0-5 cm) sites; 252 derivation and 130 validation data sets.

CLASS DESCRIPTION
Wang2012PTFResult

Results returned by the matching PTF.

FUNCTION DESCRIPTION
calc_ptf_wang2012

Estimate saturated water content, field capacity, and saturated conductivity.

Wang2012PTFResult

Bases: NamedTuple, Generic[T]

Results returned by the matching PTF.

ATTRIBUTE DESCRIPTION
theta_s

Saturated volumetric water content normalized from the regression's volume-percent scale. (cm^3/cm^3)

TYPE: T

theta_fc

Volumetric water content at -33 kPa normalized from the regression's volume-percent scale. (cm^3/cm^3)

TYPE: T

k_sat

Saturated hydraulic conductivity converted from cm/day. (m/s)

TYPE: T

Source code in ptfkit/wang2012.py
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
class Wang2012PTFResult(NamedTuple, Generic[T]):
    """Results returned by the matching PTF.

    Attributes:
        theta_s: Saturated volumetric water content normalized from the regression's volume-percent
            scale. (cm^3/cm^3)
        theta_fc: Volumetric water content at -33 kPa normalized from the regression's
            volume-percent scale. (cm^3/cm^3)
        k_sat: Saturated hydraulic conductivity converted from cm/day. (m/s)

    """

    theta_s: T
    theta_fc: T
    k_sat: T

calc_ptf_wang2012

calc_ptf_wang2012(*, sand: float, silt: float, clay: float, bulk_density: float, soil_organic_carbon: float, altitude: float) -> Wang2012PTFResult[floating]
calc_ptf_wang2012(*, sand: ArrayLike, silt: ArrayLike, clay: ArrayLike, bulk_density: ArrayLike, soil_organic_carbon: ArrayLike, altitude: ArrayLike, out: Wang2012PTFResult[NDArray[floating]] | None = None) -> Wang2012PTFResult[NDArray[floating]]

Estimate saturated water content, field capacity, and saturated conductivity.

PARAMETER DESCRIPTION
sand

Sand content, 0.05-1 mm. (%)

TYPE: float | ArrayLike

silt

Silt content, 0.002-0.05 mm. (%)

TYPE: float | ArrayLike

clay

Clay content, <0.002 mm. (%)

TYPE: float | ArrayLike

bulk_density

Bulk density. (g/cm^3)

TYPE: float | ArrayLike

soil_organic_carbon

Soil organic carbon exposed by the public API as percent by mass. (%)

TYPE: float | ArrayLike

altitude

Altitude above sea level. (m)

TYPE: float | ArrayLike

out

Optional output arrays for in-place calculation.

TYPE: Wang2012PTFResult[NDArray[floating]] | None DEFAULT: None

RETURNS DESCRIPTION
Wang2012PTFResult

Results grouped by result attributes.

TYPE: Wang2012PTFResult[floating] | Wang2012PTFResult[NDArray[floating]]

Models

\(h(\theta)\): Point estimates at saturation and -33 kPa \(k(h)\): Saturated hydraulic conductivity

Notes

Prediction target: Saturated soil-water content, water content at -33 kPa, and saturated hydraulic conductivity. The regression uses source SOC in g/kg; the public API accepts percent. Base-10 logarithms reproduce the source's raw and transformed Ks ranges. Water-content equations are evaluated in percentage points and divided by 100 for public volumetric fractions.

Warning

This normalization intentionally changes the legacy water-content outputs by a factor of 100.

Source code in ptfkit/wang2012.py
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
def calc_ptf_wang2012(
    *,
    sand: float | ArrayLike,
    silt: float | ArrayLike,
    clay: float | ArrayLike,
    bulk_density: float | ArrayLike,
    soil_organic_carbon: float | ArrayLike,
    altitude: float | ArrayLike,
    out: Wang2012PTFResult[NDArray[floating]] | None = None,
) -> Wang2012PTFResult[floating] | Wang2012PTFResult[NDArray[floating]]:
    r"""Estimate saturated water content, field capacity, and saturated conductivity.

    Arguments:
        sand: Sand content, 0.05-1 mm. (%)
        silt: Silt content, 0.002-0.05 mm. (%)
        clay: Clay content, <0.002 mm. (%)
        bulk_density: Bulk density. (g/cm^3)
        soil_organic_carbon: Soil organic carbon exposed by the public API as percent by mass. (%)
        altitude: Altitude above sea level. (m)
        out: Optional output arrays for in-place calculation.

    Returns:
        Wang2012PTFResult: Results grouped by result attributes.

    Models:
        $h(\theta)$: Point estimates at saturation and -33 kPa
        $k(h)$: Saturated hydraulic conductivity

    Notes:
        Prediction target: Saturated soil-water content, water content at -33 kPa, and saturated
            hydraulic conductivity.
        The regression uses source SOC in g/kg; the public API accepts percent.
        Base-10 logarithms reproduce the source's raw and transformed Ks ranges.
        Water-content equations are evaluated in percentage points and divided by 100 for public
            volumetric fractions.

    Warning:
        This normalization intentionally changes the legacy water-content outputs by a factor of
            100.

    """
    values = _call(
        _calc_ptf_wang2012,
        sand,
        silt,
        clay,
        bulk_density,
        soil_organic_carbon,
        altitude,
        out=out,
    )

    return Wang2012PTFResult(*values)