stilt.observations.plumes.density_polygon#

stilt.observations.plumes.density_polygon(density, threshold)[source]#

Return the largest connected region where density >= threshold.

Grid cells at or above the threshold are merged. When they form several separate pieces, the largest is the plume, as X-STILT keeps the longest contour piece. The outline follows cell edges, so it is as fine as the density grid.

Return type:

Polygon

Parameters: