runtraj.models.hysplit.releases.particles_per_step#

runtraj.models.hysplit.releases.particles_per_step(config, locations=1)[source]#

Return how many particles HYSPLIT releases from one location in one block of a time step of a particle run.

HYSPLIT’s EMSPNT spreads numpar, divided among the locations horizontal locations of the release, over the emisshrs of the release, rounding up the particles of an hour and then of a step, in single precision. A particle run (ICHEM=8) steps one minute, so a release of a minute or less is one step of numpar or numpar + 1 particles; a longer one is a step every minute until MAXPAR particles are out, the last step cut short. Each step releases a block of this many particles for each of the nbptyp size bins, and with maxdim: 1 the bins share numpar. A puff run (initd 1 or 2, or a three-digit initd whose tens digit is 1 or 2) releases one puff a step, at the middle of the column. HYSPLIT 5.1.0 to 5.4.2 count the same way.

Examples

>>> from runtraj.models.hysplit import HysplitConfig
>>> particles_per_step(HysplitConfig(n_hours=-24, numpar=1000))
1001
>>> particles_per_step(HysplitConfig(n_hours=-24, numpar=1000, emisshrs=0.5))
34
>>> particles_per_step(HysplitConfig(n_hours=-24, numpar=1000, emisshrs=0.5), 3)
12
Return type:

int

Parameters: