get_subtrahend¶
- one_pass_fitting.get_subtrahend(xs, ys, fluxes, mod, shape, size=None)¶
Constructs the image to be subtracted based on PSF models at given positions.
Parameters¶
- xsarray_like
X-coordinates of PSF positions.
- ysarray_like
Y-coordinates of PSF positions.
- fluxesarray_like
Fluxes of the PSF models.
- mod
GriddedPSFModel The PSF model to evaluate.
- shapetuple
Shape of the data array.
- 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¶
- subtrahend
ndarray The constructed image to be subtracted.