lsst.meas.extensions.multiprofit¶
lsst.meas.extensions.multiprofit
implements separate tasks for PSF and source model fitting using lsst.multiprofit
.
The tasks depend on more generic lsst.pipe.tasks.PipelineTask
classes defined in lsst.pipe.tasks.fit_coadd_psf
and lsst.pipe.tasks.fit_coadd_multiband
.
Both of the PSF and source model-fitting tasks operate row-by-row on single deblended objects from direct coadds.
Tickets such as DM-42968 may add additional functionality like multi-object fitting and initializing models from previous fit parameters.
Because these tasks produce per-patch Arrow/Astropy tables, a generic task to consolidate the results into a single multiband tract-based table is provided in lsst.meas.extensions.multiprofit.consolidate_astropy_table
.
It is anticipated that some of this functionality will be folded into the tasks producing objectTable_tract outputs in lsst.pipe.tasks.postprocess
.
Using lsst.meas.extensions.multiprofit¶
Besides the tasks classes themselves, various conveniently configured subclasses are provided in
lsst.meas.extensions.multiprofit.pipetasks_fit
,
lsst.meas.extensions.multiprofit.pipetasks_match
, and
lsst.meas.extensions.multiprofit.pipetasks_merge
.
Note
While use of these classes is not mandatory, it is recommended since they are standard configurations used in DRP pipelines and, amongst other things, set consistent dataset type names for commonly-used models.
To analyze the outputs, lsst.meas.extensions.multiprofit.analysis_tools
provides subclasses of
lsst.analysis.tools
tools for producing plots and metrics.
lsst.meas.extensions.multiprofit.plots
provides functions and classes for visualizing individual
blends.
lsst.meas.extensions.multiprofit.rebuild_coadd_multiband
expands on this functionality with
classes that can load and plot images from an entire patch while overlaying relevant model parameters.
Contributing¶
lsst.meas.extensions.multiprofit
is developed at https://github.com/lsst/meas_extensions_multiprofit.
You can find Jira issues for this module under the meas_extensions_multiprofit component.
Task reference¶
Pipeline tasks¶
No topics.
Command-line tasks¶
No topics.
Tasks¶
No topics.
Configurations¶
No topics.
Python API reference¶
lsst.meas.extensions.multiprofit.consolidate_astropy_table Module¶
Classes¶
|
Configurable action to return a catalog. |
|
A |
|
|
|
PipelineTaskConfig for ConsolidateAstropyTableTask. |
|
Config for ConsolidateAstropyTableTask. |
|
Connections for ConsolidateAstropyTableTask. |
|
Write patch-merged astropy tables to a tract-level astropy table. |
|
Config for inputs to ConsolidateAstropyTableTask. |
|
Configurable action to merge single-band flux tables into one. |
|
defaultdict(default_factory=None, /, [...]) --> dict with default factory |
lsst.meas.extensions.multiprofit.fit_coadd_multiband Module¶
Classes¶
|
Special type indicating an unconstrained type. |
|
Input data from lsst pipelines, parsed for MultiProFit. |
|
Interface for a CatalogExposure for source modelling. |
|
Configuration for MultiProFit PSF image fitter. |
|
A PSF fit configuration that can initialize models and images thereof. |
|
Fit a Gaussian mixture source model to an image with a PSF model. |
|
Configuration for the MultiProFit profile fitter. |
|
Configuration data for a fitter that can initialize lsst.gauss2d.fit models and images thereof. |
|
A |
|
|
|
RuntimeError for objects that are parents and shouldn't be fit. |
|
Configuration for the MultiProFit profile fitter. |
|
A MultiProFit source fitter. |
|
Run MultiProFit on Exposure/SourceCatalog pairs in multiple bands. |
|
RuntimeError for when there is no data to fit. |
|
RuntimeError for objects that are not primary and shouldn't be fit. |
|
Base action to return a list of Gaussians from a source mapping. |
|
Base action to return whether a source had a succesful PSF fit. |
|
RuntimeError for when a PSF can't be rebuilt because the fit failed. |
|
Action to return PSF components from a SourceTable. |
|
Action to return PSF fit status from a SourceTable row. |
|
A class to represent tables of heterogeneous data. |
|
lsst.meas.extensions.multiprofit.fit_coadd_psf Module¶
Classes¶
|
Fit a Gaussian mixture model to a pixelated PSF image. |
|
Configuration for MultiProFit PSF image fitter. |
|
A PSF fit configuration that can initialize models and images thereof. |
|
Configuration for a group of lsst.gauss2d.fit Components. |
|
Configuration for flux fraction parameters (ProperFractionParameterD). |
|
Configuration for flux parameters (IntegralParameterD). |
|
Configuration for an lsst.gauss2d.fit Gaussian component. |
|
|
|
RuntimeError for objects that are parents and shouldn't be fit. |
|
Configuration for the MultiProFit Gaussian mixture PSF fitter. |
|
Fit a Gaussian mixture PSF model at cataloged locations. |
|
Configuration for a parameter. |
|
Configuration for an lsst.gauss2d.fit Source. |