AusClimateService / plotting_maps

Standardising hazard maps for ACS
4 stars 1 forks source link

area_stats for any region #20

Closed xenct closed 3 weeks ago

xenct commented 1 month ago

At the moment, the stats function uses NCRA regions as a default to calculate area statistics. Issue request: enhanced function to apply this function to any region

xenct commented 1 month ago

I have added a "get_regions" function to replace the preloaded regions_dict. This saves time importing the module and allows regions in ia39 to be easily loaded. This will require changes to existing workflows. river_regions has problems because the region names are not all unique. The acs_regional_stats can take any mask (defined by regions). If you want to use your own user-specified regions, you can specify any mask you wish. The default inbuilt masks will only mask NCRA regions. I do not intend to change this. I am waiting to push the changes to main while the team are delivering plots for urgent timelines. There is a change in how the shapefiles are accessed that will disrupt people's workflows.