ursa.utils.regions

Module Contents

Functions

get_info

Creates a consistent mapping between a region and a unique identifying integer Also determines the bounds for plotting.

API

ursa.utils.regions.get_info(regions, basins, inundation_info, buffer=100)

Creates a consistent mapping between a region and a unique identifying integer Also determines the bounds for plotting.

Inputs:
regionslist of shapely.object

list of regions to map

basinslist of shapely.Polygon

list of basins

inundation_infodictionary

The top level key is the I15. It returns a dictionary of key-value pairs for which the key is the debris-flow simulation index threshold and the value is a shapely.Shape cooresponding to the area impacted by hazard index greater than or equal to the threshold.

bufferint (default=100)

size of the buffer for the basin impact areas

Outputs:
infodict

key is region label, values are the region object and the bounds of the region