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, andrelease_heightis that point’s altitude. For a column release it is inside one of thenumparslabs the column is split into, andrelease_heightis 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 inparticleorder, 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.