runtraj.models.flexpart.FlexpartModel.run#

FlexpartModel.run(release, config, met, window, workdir=None, timeout=None)[source]#

Run FLEXPART for one release in workdir and return its particles.

Raises:
  • MeteorologyError – Before FLEXPART runs, when the met files do not cover window or one between is missing.

  • SimulationError – With FLEXPART’s output in log: reason TIMEOUT when the run exceeded timeout seconds, EXIT_STATUS when FLEXPART stopped without finishing, and NO_PARTICLE_DATA when it finished but wrote no particle file.

Return type:

ModelRun

Parameters:
  • release (runtraj.releases.Release)

  • config (FlexpartConfig)

  • met (FlexpartMetConfig)

  • window (tuple[datetime, datetime])

  • workdir (Path | None)

  • timeout (int | None)