cwitools.reduction.align_crpix3¶
-
cwitools.reduction.align_crpix3(fits_list, xmargin=2, ymargin=2)¶ Get relative offsets in wavelength axis by cross-correlating sky spectra.
- Args:
fits_list (Astropy.io.fits.HDUList list): List of sky cube FITS objects. xmargin (int): Margin to use along FITS axis 1 when summing spatially to
create spectra. e.g. xmargin = 2 - exclude the edge 2 pixels left and right from contributing to the spectrum.ymargin (int): Margin to use along fits axis 2 when creating spevtrum.
- Returns:
- crpix3_corr (list): List of corrected CRPIX3 values.