cwi_apply_wcs

cwitools.scripts.apply_wcs.apply_wcs(wcs_table, ctypes='icubes.fits', ext='.wc.fits', outdir=None, log=None, silent=None)

Apply a WCS corrections table to a set of FITS images.

Parameters:
  • wcs_table (str) – The path to the WCS correction table file (.wcs)
  • ctypes (list or str) – The file type to apply corrections to. For example, ‘icubes.fits’. A list of strings can be provided to apply the WCS correction to multuple cubetypes, e.g. [‘icubes.fits’, ‘ocubes.fits’]
  • ext (str) – The file extension for the updated files, such as ‘icubes.fits’
  • outdir (str) – Output directory for files. Default is the same directory as input.
  • log (str) – The path to a log file to save output to (default: None)
  • silent (bool) – Set to FALSE to turn on standard terminal output.
Returns:

None