stilt.transforms.PressureWeighting#

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

Weight each particle by the fraction of the column’s air mass it represents.

The pressure weighting function is derived from the particles’ own first-step heights and pressures (see particle_pwf()); nothing needs to be supplied. Because stilt.Footprint.calculate() divides by the particle count, the weights are multiplied by n_particles so the weighted footprint does not scale with numpar. Adds xpres (release pressure, hPa) and pwf columns. Requires pres and zagl in varsiwant (both are defaults).

Methods#

apply(particles[, context])

Weight each particle by its share of the column's air mass.

Attributes#

kind

surface_pressure