subtract_psfs¶
- one_pass_fitting.subtract_psfs(data, cat, mod, size=None)¶
Subtracts PSF models from the specified positions in the data.
Parameters¶
- data
ndarray The image from which to subtract the psfs
- cat
Table Astropy table containing flux and positions. The flux column must be labeled ‘f’ and the positions must be ‘x’ and ‘y’. The fluxes must be in the same units as the
dataand the positions must be in zero-indexed pixels- mod
GriddedPSFModel The PSF model to generate the star images from the fit values
- sizeint or iterable of length 2 or
None, optional Size of the cutout. If None, the size is determined based on the PSF model shape.
Returns¶
- difference
ndarray The data array with PSF models subtracted.
- data