pyatran.runtime.run_sciatran¶
-
pyatran.runtime.run_sciatran(runpath, executable)[source]¶ Run SCIATRAN.
This function runs the SCIATRAN executable
excecutablein the runtime directoryrunpath. STDOUT and STDERR of the SCIATRAN process are redirected to the filesstdout.logandstderr.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
runpathhas been properly set up beforehand.