runtraj.models.run_model#

runtraj.models.run_model(name, release, config, met, workdir=None, timeout=None)[source]#

Run the transport model called name for one release, and finish its particles.

The particles are checked against the particle table (runtraj.particles.check_particles()) and get their release heights (runtraj.particles.add_release_heights()). These steps are runtraj’s, the same for any model. Nothing else is added: foot is the model’s own, or missing for a model that writes none.

Parameters:
  • name (str) – The transport model (MODELS).

  • release (runtraj.releases.Release) – Where and when particles are released.

  • config (TransportConfig) – The model’s config.

  • met (Any) – The meteorology, of the model’s met_config_class.

  • workdir (Path | None) – An empty directory for the run’s files. None lets the model make its own.

  • timeout (int | None) – Time limit in seconds.

Raises:

SimulationError – If the run fails, as when the meteorology does not cover it (MET_COVERAGE), or the model wrote no particles.

Return type:

ModelRun