make_model_image

one_pass_fitting.make_model_image(data, cat, mod, size=None)

Reconstructs image from psf models at given positions/fluxes

Parameters

datandarray

The image from which to get the desired shape of the model image

catTable

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 data and the positions must be in zero-indexed pixels

modGriddedPSFModel

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

model_imagendarray

The data array with PSF models subtracted.