stilt.observations.plumes.density_polygon#

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

The largest connected region where density >= threshold, as a polygon.

Grid cells at or above the threshold are merged; when that gives several separate pieces, the one with the largest area is the plume (X-STILT keeps the longest contour piece for the same reason). The outline follows cell edges, so it is as fine as the density grid.

Return type:

Polygon

Parameters: