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
EMSPNTspreadsnumpar, divided among the locations horizontal locations of the release, over theemisshrsof 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 ofnumparornumpar + 1particles; a longer one is a step every minute untilMAXPARparticles are out, the last step cut short. Each step releases a block of this many particles for each of thenbptypsize bins, and withmaxdim: 1the bins sharenumpar. A puff run (initd1 or 2, or a three-digitinitdwhose 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:
- Parameters:
config (HysplitConfig)
locations (int)