run_arts

pyarts.common.run_arts(controlfile=None, arts=None, writetxt=False, ignore_error=False, **kwargs)[source]

Start an ARTS Simulation.

Parameters:
  • controlfile (str) – Path to the ARTS controlfile.

  • arts (str) – Path to the arts executable.

  • writetxt (bool) – Write stdout and stderr to ASCII files.

  • ignore_error (bool) – If set to True, erros during the ARTS run do not result in an exception (default is False).

  • **kwargs – Additional command line arguments passed as keyword. See arts –help for more details.

Returns:

Named tuple containing the fields stdout, stderr and retcode.

Examples

Run a simple ARTS job and set the output directory and the report level:

>>> run_arts('foo.arts', outdir='bar', reporting='020')

If a keyword is set to True it is added as flag. Show the ARTS help message:

>>> run_arts(help=True)