runtraj.particles.add_release_heights#

runtraj.particles.add_release_heights(particles, release)[source]#

Return particles with each particle’s release_height, for a column or multipoint release.

The release row (age = 0) says where each particle started. For a multipoint release that is one of its points, and release_height is that point’s altitude. For a column release it is inside one of the numpar slabs the column is split into, and release_height is that slab’s center: the slab is what the particle stands for, not the random height inside it. A model that writes no release row, such as HYSPLIT 5.1.0, falls back to matching: a column’s particles are released bottom to top in particle order, and a multipoint release’s are matched to the nearest point from their first row.

A point release’s particles are returned as they are.

Return type:

DataFrame

Parameters:
  • particles (DataFrame)

  • release (runtraj.releases.Release)