driptorch.BurnUnit#

class driptorch.BurnUnit(polygon: shapely.geometry.polygon.Polygon, firing_direction: float, utm_epsg: Optional[int] = None)#

A burn unit is a polygon that is split into segments based on the firing direction.

Parameters
polygonshapely.Polygon

Shapely polygon geometry object

firing_directionfloat

firing direction (degrees)

utmint

UTM EPSG code of spatial data. If not provided it is assumed that coordinates are in 4326 and will be converted to UTM. Defaults to None.

__init__(polygon: shapely.geometry.polygon.Polygon, firing_direction: float, utm_epsg: Optional[int] = None) None#

Methods

__init__(polygon, firing_direction[, utm_epsg])

buffer_control_line(width)

Shrink the burn unit to account for the width of the control line

buffer_downwind(width)

Create a downwind blackline buffer

copy()

Utility method for copying a BurnUnit instance

difference(burn_unit)

Return a burn unit instance that is the difference between this burn unit and another.

fetch_dem([resolution])

Extract elevation data for the burn unit from cloud-hosted CONUS DEM

from_json(geojson, firing_direction, **kwargs)

Alternative constructor used to create a BurnUnit object from a GeoJSON dictionary.

to_json(**kwargs)

Returns a GeoJSON representation of the BurnUnit as a string

Attributes

bounds

Returns the bounding box of the unit