WFP-VAM / anticipatory-action

0 stars 1 forks source link

Use `AnalysisArea.zonal_stats` instread of `aggregate_by_district`. #17

Open paololucchino opened 1 month ago

paololucchino commented 1 month ago

The aggregate_by_district function carries out the same task already available in hip-analysis (AnalysisArea.zonal_stats) and takes over a minute to run an aggregation for a given accumulation period. This code could be standardized and sped up by moving it to use the zonal_stats function + some data formatting of the ouput for compatibility with downstream code.