runtraj.transforms.PressureWeighting.apply#

PressureWeighting.apply(particles, release=None, directory=None)[source]#

Return the particles with weight multiplied by the pressure weight.

The release heights are in the release’s altitude_ref, and taken to be above ground without a release. A table of several simulations is weighted one simulation at a time.

Return type:

DataFrame

Parameters:
  • particles (DataFrame)

  • release (TypeAliasForwardRef('runtraj.releases.Release') | None)

  • directory (str | Path | None)