The calacs module contains a function calacs that calls the CALACS executable. Use this function to facilitate batch runs of CALACS, or for the TEAL interface.


In Python without TEAL:

>>> from acstools import calacs
>>> calacs.calacs(filename)

In Python with TEAL:

>>> from import teal
>>> from acstools import calacs
>>> teal.teal('calacs')

In Pyraf:

--> import acstools
--> epar calacs
acstools.calacs.calacs(input_file, exec_path=None, time_stamps=False, temp_files=False, verbose=False, debug=False, quiet=False, single_core=False)

Run the calacs.e executable as from the shell.

By default this will run the calacs given by ‘calacs.e’.

  • input_file (str) – Name of input file.
  • exec_path (str, optional) – The complete path to a calacs executable.
  • time_stamps (bool, optional) – Set to True to turn on the printing of time stamps.
  • temp_files (bool, optional) – Set to True to have CALACS save temporary files.
  • verbose (bool, optional) – Set to True for verbose output.
  • debug (bool, optional) – Set to True to turn on debugging output.
  • quiet (bool, optional) – Set to True for quiet output.
  • single_core (bool, optional) – CTE correction in CALACS will by default try to use all available CPUs on your computer. Set this to True to force the use of just one CPU.