cwitools.subtraction.psf_sub_2d¶
-
cwitools.subtraction.psf_sub_2d(inputfits, pos, fit_rad=1.5, sub_rad=5.0, wl_window=200, wmasks=[], recenter=True, recenter_rad=5)¶ Models and subtracts point-sources in a 3D data cube.
- Args:
inputfits (astrop FITS object): Input data cube/FITS. fit_rad (float): Inner radius, used for fitting PSF. sub_rad (float): Outer radius, used to subtract PSF. pos (float tuple): (x,y) position of the source to subtract. recenter (bool): Recenter the input (x, y) using the centroid within a
box of size recenter_box, arcseconds.recenter_rad(float): Radius of circle used to recenter PSF, in arcsec. wl_window (int): Size of white-light window (in Angstrom) to use.
This is the window used to form a white-light image centered on each wavelength layer. Default: 200A.- wmasks (list): List of wavelength tuples to exclude when making
- white-light images. Use to exclude nebular emission or sky lines.
- Returns:
- numpy.ndarray: PSF-subtracted data cube numpy.ndarray: PSF model cube