stilt.transport.hysplit.HysplitConfig.maxpar_for#
- HysplitConfig.maxpar_for(locations)[source]#
Return the
MAXPARHYSPLIT gets for a release from locations horizontal locations.HYSPLIT gives each location
numpar // locationsparticles, which its rounding often raises by one, and stops releasing when it reachesMAXPAR. A setmaxparis used as given. Unset, one location getsnumpar(HYSPLIT may ask for one more and keepsnumpar), and several getlocations * (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