stilt.transforms.PressureWeighting#

class stilt.transforms.PressureWeighting(*, kind: Literal['pressure_weighting'] = 'pressure_weighting', surface_pressure: Annotated[float | None, Gt(gt=0)] = None) → None[source]#

Transform that weights each particle by its share of the column’s air mass.

The weights come from the particles’ own first-step heights and pressures (see particle_pwf()). stilt.Footprint.calculate() divides by the particle count, so the weights are multiplied by the number of particles and the weighted footprint does not change with numpar. The particles of a multipoint receptor share their point’s weight evenly. Adds xpres (release pressure, hPa) and pwf columns. Requires pres and zagl in varsiwant, which are both in the default, and zsfc for a receptor with altitude_ref="msl".

Methods#

apply(particles[, context])

Return the particles with foot weighted by pressure.

Attributes#

kind

surface_pressure