get_grouped_psf_model

photutils.psf.get_grouped_psf_model(template_psf_model, star_group, pars_to_set)[source]

Deprecated since version 1.9.0: The get_grouped_psf_model function is deprecated and may be removed in a future version.

Construct a joint PSF model which consists of a sum of PSF’s templated on a specific model, but whose parameters are given by a table of objects.

Parameters:
template_psf_modelastropy.modeling.Fittable2DModel instance

The model to use for individual objects. Must have parameters named x_0, y_0, and flux.

star_groupTable

Table of stars for which the compound PSF will be constructed. It must have columns named x_0, y_0, and flux_0.

pars_to_setdict

A dictionary of parameter names and values to set.

Returns:
group_psf

An astropy.modeling CompoundModel instance which is a sum of the given PSF models.