MultiProFitPsfTask#

class lsst.meas.extensions.multiprofit.fit_coadd_psf.MultiProFitPsfTask(**kwargs)#

Bases: CatalogPsfFitter, CoaddPsfFitSubTask

Fit a Gaussian mixture PSF model at cataloged locations.

This task uses MultiProFit to fit a PSF model to the coadd PSF, evaluated at the centroid of each source in the corresponding catalog.

Parameters#

**kwargs

Keyword arguments to pass to CoaddPsfFitSubTask.__init__.

Methods Summary

check_source(source, config)

Check whether a source can have its PSF model fit.

initialize_model(model, config_data[, ...])

Initialize a ModelD for a single source row.

run(catexp, **kwargs)

Run the MultiProFit PSF task on a catalog-exposure pair.

Methods Documentation

check_source(source, config)#

Check whether a source can have its PSF model fit.

Parameters#

source

The source row to check.

config

The fitter config.

Notes#

Derived classes may use the source row as they deem fit. For example, if the source has poor quality flags, a fitter may choose not to fit the PSF model if it will not end up being used anyway.

initialize_model(model: ModelD, config_data: CatalogPsfFitterConfigData, limits_x: LimitsD = None, limits_y: LimitsD = None) None#

Initialize a ModelD for a single source row.

Parameters#

model

The model object to initialize.

config_data

The fitter config with cached data.

limits_x

Hard limits for the source’s x centroid.

limits_y

Hard limits for the source’s y centroid.

run(catexp: CatalogExposurePsf, **kwargs) Struct#

Run the MultiProFit PSF task on a catalog-exposure pair.

Parameters#

catexp

An exposure to fit a model PSF at the position of all sources in the corresponding catalog.

**kwargs

Additional keyword arguments to pass to self.fit.

Returns#

catalog

A table with fit parameters for the PSF model at the location of each source.