stilt.footprint.correct_near_field#

stilt.footprint.correct_near_field(particles, release, footprint_depth)[source]#

Correct foot for plume dilution in the hyper-near field, as STILT-R’s calc_plume_dilution does.

foot assumes surface fluxes are mixed through the air below footprint_depth: a fraction of the mixed-layer height when it is 1 or less, and a height in meters above ground when it is larger, as HYSPLIT reads VEGHT. Close to the release, the plume from the release point is thinner than that. Following STILT-R, the plume depth grows from the release height with the turbulence each particle meets. While it is below that height, foot is recalculated with the plume depth in its place. stilt.calc_footprint() applies it to any model’s particles when hnf_plume is set, so a stored particle file holds the uncorrected foot; call it yourself before gridding the particles another way, or before particles.stilt.enhancement.

Needs the columns HNF_PLUME_COLUMNS, and the release height: release_height (runtraj.particles.add_release_heights()) or the altitude of a point release. The plume grows from the ground, so for a release whose heights are above sea level (altitude_ref="msl") it starts at the release height minus the terrain under it, the median zsfc of the first rows of the particles released there, which must be a column too.

Parameters:
  • particles (DataFrame) – Particle table.

  • release (runtraj.releases.Release) – Release the particles were released from.

  • footprint_depth (float) – Height that surface fluxes are mixed through (VEGHT in HYSPLIT and STILT-R): a fraction of the mixed-layer height when 1 or less, else meters above ground.

Returns:

A copy of particles with foot corrected and the original values in foot_no_hnf_dilution.

Return type:

DataFrame

Raises:

ValueError – If a required column is missing, or the release height is unknown.