environmentaltools.processes.wet_soil
- environmentaltools.processes.wet_soil(window, cn)[source]
Determine if soil is in wet condition based on rainfall history.
Evaluates soil moisture dynamics using a rolling window. Classifies soil as wet if continuous rainfall occurred within the last 5 hours.
- Parameters:
window (np.ndarray) – Rolling window of cumulative precipitation values
cn (float) – Curve Number value for wet soil conditions (CN3)
- Returns:
Curve Number for wet conditions if all values in window are non-zero, otherwise returns NaN
- Return type:
float
Notes
Soil moisture classification criteria:
More than 5 hours of continuous rain: wet soil (returns cn)
More than 5 days without rain: dry soil (see dry_soil function)
Between 1-5 hours of rain: average conditions (CN2)