cwi_measure_wcs

cwitools.scripts.measure_wcs.measure_wcs(clist, ctype='icubes.fits', xymode='none', radec=None, box=10.0, crpix1s=None, crpix2s=None, background_sub=False, zmode='none', crval3=None, zwindow=20, sky_type=None, plot=False, out=None, log=None, silent=None)

Automatically create a WCS correction table for a list of input cubes.

Parameters:
  • clist (str) – Path to the CWITools .list file
  • ctype (str) – File extension for type of cube to use as input. Default value: ‘icubes.fits’ (.fits extension should be included)
  • xymode (str) – Method to use for XY alignment: ‘src_fit’: Fit 1D profiles to a known point source (interactive) ‘xcor’: Perform 2D (XY) cross-correlation of input images. ‘none’: Do not align the spatial axes.
  • radec (float tuple) – Tuple of (RA, DEC) of source in decimal degrees, if using ‘src_fit’
  • box (float) – Size of box (in arcsec) to use for finding/fitting source, if using ‘src_fit’
  • crpix1s (list) – List of CRPIX1 values to serve as initial estimates of spatial alignment, if using xymode=xcor
  • crpix2s (list) – List of CRPIX2 values, for the same reason as crpix2s.
  • background_sub (bool) – Set to TRUE to subtract background before cross-correlating spatially.
  • zmode (str) – Method to use for Z alignment: ‘fit’: Fit a 1D Gaussian to a known emission line at ‘crval3’ ‘xcor’: Cross-correlate the spectra and provide relative alignment ‘none’: Do not align z-axes
  • crval3 (float) – The central wavelength [Angstrom] of the fittable sky-line, if using zmode=’fit’
  • zwindow (float) – If using zmode=’fit’, the window-size [Angstrom] to use when fitting the sky emission line. Default is 20A (i.e. +/- 10A)
  • sky_type (str) – The type of cube to load for the sky spectrum (e.g. scubes.fits)
  • plot (bool) – Set to TRUE to show diagnostic plots.
  • out (str) – File extension to use for masked FITS (“.M.fits”)
  • log (str) – Path to log file to save output to.
  • silent (bool) – Set to TRUE to suppress standard output.
Returns:

None