pyatran.runtime.run_sciatran

pyatran.runtime.run_sciatran(runpath, executable)[source]

Run SCIATRAN.

This function runs the SCIATRAN executable excecutable in the runtime directory runpath. STDOUT and STDERR of the SCIATRAN process are redirected to the files stdout.log and stderr.log, respectively, inside the runtime directory. After termination of the SCIATRAN process, the STDOUT is being checked for the string ***** Normal termination *****; if this string is not found, a RuntimeError is raised.

Parameters:

runpath : str

Path to the runtime directory of SCIATRAN

executable : str

Filename of the SCIATRAN executable to run.

Notes

This function assumes that the runtime directory runpath has been properly set up beforehand.