stilt.transport.hysplit.HysplitModel.run#
- HysplitModel.run(receptor, config, met, window, workdir=None, timeout=None)[source]#
Run HYSPLIT for one receptor in workdir and return its particles.
It finds the met files that cover window, up to the met step at or after its end, which HYSPLIT interpolates, cropped when the met is. Its output is
stilt.login workdir, returned as the run’s log. Without workdir it runs in a temporary directory. The release heights and the near-field correction are added by the caller, as for any model (stilt.transport.run_model()).- Raises:
SimulationError – With HYSPLIT’s log in
log, andreasonTIMEOUTwhen the run exceeded timeout seconds; theFailureReasonof a known failure message in the log orWARNINGfile, such as the met running out (MET_COVERAGE);EXIT_STATUSwhenhycs_stdwas killed by a signal or exited with a non-zero status, whatever it had written;PARTICLE_LIMITwhenmaxparstopped a release from several locations before the last ones got their particles; orNO_PARTICLE_DATAwhen HYSPLIT wrote no particle file. A run whose particles stopped beforen_hourswell inside the met’s domain fails asMET_COVERAGEtoo, whenoutdtis 0: more than 5 grid cells from every side of the met grid. Particles that all left the met’s domain before the end of the run are kept.MeteorologyError – Before HYSPLIT runs, when a met file the run needs is missing or damaged, or the files do not hold every time the run covers (
Met.check()).
- Return type:
- Parameters: