pub fn deaccumulate_precipitation(
current_mm: &[f64],
previous_mm: Option<&[f64]>,
step_hours: i64,
) -> Vec<f64>Available on crate feature
encoder only.Expand description
Mean precipitation rate (mm/h) over the step ending at the current frame, from run-total accumulations in mm. The first frame has no preceding interval, so its rate is zero; packing noise can make the accumulation dip slightly, so negative differences clamp to zero.