CALACS

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.

Examples

In Python without TEAL:

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

In Python with TEAL:

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

In Pyraf:

--> import acstools
--> epar calacs

For help usage use exe_args=['--help']

acstools.calacs.calacs(input_file, exec_path=None, time_stamps=False, temp_files=False, verbose=False, debug=False, quiet=False, single_core=False, exe_args=None)

Run the calacs.e executable as from the shell.

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

Parameters:
  • 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.
  • exe_args (list, optional) – Arbitrary arguments passed to underlying executable call. Note: Implementation uses subprocess.call and whitespace is not permitted. E.g. use exe_args=[‘–nThreads’, ‘1’]