stilt.observations.plume_background#

stilt.observations.plume_background(longitudes, latitudes, values, plume, *, uncertainties=None, side=None, width=0.5, pad=0.1, trim=0.9)[source]#

Background from the soundings next to, but outside, the plume.

The soundings inside plume are the enhanced ones. Around them a box is drawn, the bounding box of the in-plume soundings padded by pad times its size, and the out-of-plume soundings within width degrees of that box on each side are the background candidates. side picks one side (choose the upwind one; the forward particles’ drift tells you which); None pools all four. trim first drops the out-of-plume soundings above that quantile of their values, X-STILT’s guard against enhanced air the plume outline missed; None keeps them all. The background is the median of what remains.

Pass only good-quality soundings. Raises when no sounding falls inside the plume, because then the overpass did not see it.

Return type:

PlumeBackground

Parameters: