environmentaltools.processes.dry_soil
- environmentaltools.processes.dry_soil(window, cn)[source]
Determine if soil is in dry condition based on antecedent dry period.
Evaluates soil moisture dynamics using a rolling window. Classifies soil as dry if no rainfall occurred within the last 5 days.
- Parameters:
window (np.ndarray) – Rolling window of cumulative precipitation values (typically 5 days = 120 hours)
cn (float) – Curve Number value for dry soil conditions (CN1)
- Returns:
Curve Number for dry conditions if all values in window are zero, otherwise returns NaN
- Return type:
float