stilt.footprint.correct_near_field#
- stilt.footprint.correct_near_field(particles, release, footprint_depth)[source]#
Correct
footfor plume dilution in the hyper-near field, as STILT-R’scalc_plume_dilutiondoes.footassumes 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 readsVEGHT. 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,footis recalculated with the plume depth in its place.stilt.calc_footprint()applies it to any model’s particles whenhnf_plumeis set, so a stored particle file holds the uncorrectedfoot; call it yourself before gridding the particles another way, or beforeparticles.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 medianzsfcof 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 (VEGHTin 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
footcorrected and the original values infoot_no_hnf_dilution.- Return type:
- Raises:
ValueError – If a required column is missing, or the release height is unknown.