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.
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 thezonal_stats
function + some data formatting of the ouput for compatibility with downstream code.