Bushfire Attack Level

bal.py

bal - Calculate the bushfire attack level (BAL)

This module is used to produce the bushfire attack level (BAL) for an area of interest within Australia based on input vegetation and elevation datasets as per Method 1 in the Australian Standard AS 3959 (2009) – Construction of buildings in bushfire-prone areas.

moduleauthor:Tina Yang <tina.yang@ga.gov.au>
bal.bal_calc(vegetation, dem, fdi, output_folder, remap, mask)[source]

Calcuate BAL based on vegetation map and DEM.

Parameters:
  • vegetationfile the original vegetation
  • demfile the input DEM
  • fdiint the input FDI value
  • output_folderstr the output folder
  • remapsrt the vegetation reclassification
  • maskfile the mask for the effective area of interest (AOI)
bal.find_aoi(extent, dem, veg)[source]

Find the effective area of interest based on input vegetation map, DEM and extent.

Parameters:
  • extentstr the input extent
  • demfile the input DEM
  • vegfile the input vegetation
Returns:

file the mask for effective AOI

bal.find_common_area(veg_class, slope, aspect)[source]

Find the common area of vegetation, slope and aspect to calculate BAL.

Parameters:
  • veg_classfile the reclassified vegetation
  • slopefile the slope derived from DEM
  • aspectfile the aspect derived from DEM
Returns:

file the vegetation in common area

Returns:

file the slope in common area

Returns:

file the aspect in common area

bal.get_extent_mask(extent, mask)[source]

Derive the mask for the customised input extent.

Parameters:
  • extentstr the input extent
  • maskfile the output mask
bal.get_footprint(raster, footprint)[source]

Find the footprint of a raster

Parameters:
  • rasterfile the input raster
  • footprintfile the output footprint
bal.get_slope_aspect(input_dem, output_folder, mask)[source]

Calculate the slope and aspect from the input DEM

Parameters:
  • input_demfile the input DEM
  • output_folderstr the output folder
  • maskfile the mask for the effective AOI
Returns:

file the reclassified slope

Returns:

file the reclassified aspect

bal.reclass_veg(veg, dem, output_folder, remap, mask)[source]

Reclassify the original vegetation into the categories classified as Table 2.3 in AS 3959 (2009).

Parameters:
  • vegfile the input vegetation
  • demfile the input dem used as reference projection
  • output_folderstr the output folder
  • remapsrt the vegetation reclassification
  • maskfile the mask for the effective AOI
Returns:

file the reclassified vegetation

bal.run()[source]

Run the BAL calculations.