Work to support AFG AA Framework discussions. In particular we are looking at the SEAS5 ECMWF Forecast.
More framework details:
AOI: Faryab Province
Data source: ECMWF SEAS5
Season of interest: 2025 Spring Wheat - March - April - May (M-A-M)
The time frame of interest is 2025 . At the time of writing we have a The October 2024 Seasonal forecast which runs through April. Therefore we want to better understand how well the the October M-A forecast precedes drought predictions for M-A-M that come November-March.
aggregate_forecast <-function(df,valid_months){ df |>group_by(issued_date) %>%filter(# all(valid_months %in% month(valid_date))&month(valid_date) %in% valid_months,all(valid_months %in%month(valid_date)) ) |>summarise(mm =sum(precipitation),# **min() - BECAUSE** for MJJA (5,6,7,8) at each pub_date we have a set of leadtimes# for EXAMPLE in March we have the following leadtimes 2# 2 : March + 2 = May,# 3 : March + 3 = June,# 4 : March + 4 = July# 5: March + 5 = Aug# Therefore when we sum those leadtime precip values we take min() of lt integer so we get the leadtime to first month being aggregatedleadtime =min(leadtime),.groups ="drop" ) |>arrange(issued_date)}df_mam <-aggregate_forecast(db_faryab_filt,valid_months = SEASON_OF_INTEREST)df_ma <-aggregate_forecast(db_faryab_filt, valid_months = LATEST_SEASON_PREDICTABLE)
Given the current M-A forecast what would be the likelihood to trigger framework based on M-A-M predictions and 3 year RP threshold at each lead time?
To answer this we look at the current October M-A rainfall prediction of ~104.2 mm. We look across all 40+ years of predictions and identify all years that had an October M-A rainfall prediction of 104.2 mm or less and then analyze how often that aligned with 3 year RP breach in for M-A-M from Nov-March predictions.
In this problem construction we are particularly interested in the precision metric. This is because we are using the current years prediction as a TRUE prediction of drought.