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.

modGriddedPSFModel

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

subtrahendndarray

The constructed image to be subtracted.