Predicting the timings can help protect people and guide crop plantings, irrigation and hydropower generation.