stilt.transport.hysplit.HysplitConfig.maxpar_for#

HysplitConfig.maxpar_for(locations)[source]#

Return the MAXPAR HYSPLIT gets for a release from locations horizontal locations.

HYSPLIT gives each location numpar // locations particles, which its rounding often raises by one, and stops releasing when it reaches MAXPAR. A set maxpar is used as given. Unset, one location gets numpar (HYSPLIT may ask for one more and keeps numpar), and several get locations * (numpar // locations + 1), so the last locations are not left short.

Examples

>>> HysplitConfig(numpar=1000).maxpar_for(40)
1040
>>> HysplitConfig(numpar=1000).maxpar_for(1)
1000
Return type:

int

Parameters:

locations (int)