cwitools.reduction.get_crpix12¶
-
cwitools.reduction.get_crpix12(fits_in, crval1, crval2, box_size=10, plot=False, iters=3, std_max=4)¶ Measure the position of a known source to get crpix1 and crpix2.
- Args:
fits_in (Astropy.io.fits.HDUList): The input data cube as a fits object crval1 (float): The RA/CRVAL1 of the known source crval2 (float): The DEC/CRVAL2 of the known source crpix12_guess (int tuple): The estimated x,y location of the source.
If none provided, the existing WCS will be used to estimate x,y.box_size (float): The size of the box (in arcsec) to use for measuring.
- Returns:
- crval1 (float): The axis 1 centroid of the source crval2 (float): The axis 2 centroid of the source