make_model_image¶
- one_pass_fitting.make_model_image(data, cat, mod, size=None)¶
Reconstructs image from psf models at given positions/fluxes
Parameters¶
- data
ndarray The image from which to get the desired shape of the model image
- 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¶
- model_image
ndarray The data array with PSF models subtracted.
- data