Compute Snowmelt Progress Time
compute_tVolSnowmelt.Rd
Finds the time index when a certain percentage of total snowmelt volume has been reached.
Details
Computes:
Cumulative sum of baseflow (snowmelt)
Normalizes to 0-1 range
Finds closest time index to target percentage p
See also
compute_VolSnowmelt
for total volume calculation
Examples
Q <- c(10,15,20,18,12,8,5,7,9,12)
# Find when 50% of snowmelt has occurred:
compute_tVolSnowmelt(Q, p=0.5)
#> [1] NA