lsst.meas.deblender
17.0.1-1-g5f4ed7e+58
|
Public Member Functions | |
def | __init__ (self, schema, peakSchema=None, kwargs) |
def | run (self, mExposure, mergedSources) |
def | deblend (self, mExposure, sources, psfs) |
def | preSingleDeblendHook (self, exposures, sources, pk, fp, psfs, psf_fwhms, sigmas) |
def | postSingleDeblendHook (self, exposures, fluxCatalogs, templateCatalogs, pk, npre, fp, psfs, psf_fwhms, sigmas, result) |
def | isLargeFootprint (self, footprint) |
def | isMasked (self, footprint, mask) |
def | skipParent (self, source, masks) |
Static Public Attributes | |
ConfigClass = MultibandDeblendConfig | |
MultibandDeblendTask Split blended sources into individual sources. This task has no return value; it only modifies the SourceCatalog in-place.
Definition at line 661 of file deblend.py.
def lsst.meas.deblender.deblend.MultibandDeblendTask.__init__ | ( | self, | |
schema, | |||
peakSchema = None , |
|||
kwargs | |||
) |
Create the task, adding necessary fields to the given schema. Parameters ---------- schema: `lsst.afw.table.schema.schema.Schema` Schema object for measurement fields; will be modified in-place. peakSchema: `lsst.afw.table.schema.schema.Schema` Schema of Footprint Peaks that will be passed to the deblender. Any fields beyond the PeakTable minimal schema will be transferred to the main source Schema. If None, no fields will be transferred from the Peaks. filters: list of str Names of the filters used for the eposures. This is needed to store the SED as a field **kwargs Passed to Task.__init__.
Definition at line 671 of file deblend.py.
def lsst.meas.deblender.deblend.MultibandDeblendTask.deblend | ( | self, | |
mExposure, | |||
sources, | |||
psfs | |||
) |
Deblend a data cube of multiband images Parameters ---------- mExposure: `MultibandExposure` The exposures should be co-added images of the same shape and region of the sky. sources: `SourceCatalog` The merged `SourceCatalog` that contains parent footprints to (potentially) deblend. psfs: dict Keys are the names of the filters (should be the same as `mExposure.filters`) and the values are the PSFs in each band. Returns ------- fluxCatalogs: dict or None Keys are the names of the filters and the values are `lsst.afw.table.source.source.SourceCatalog`'s. These are the flux-conserved catalogs with heavy footprints with the image data weighted by the multiband templates. If `self.config.conserveFlux` is `False`, then this item will be None templateCatalogs: dict or None Keys are the names of the filters and the values are `lsst.afw.table.source.source.SourceCatalog`'s. These are catalogs with heavy footprints that are the templates created by the multiband templates. If `self.config.saveTemplates` is `False`, then this item will be None
Definition at line 891 of file deblend.py.
def lsst.meas.deblender.deblend.MultibandDeblendTask.isLargeFootprint | ( | self, | |
footprint | |||
) |
Returns whether a Footprint is large 'Large' is defined by thresholds on the area, size and axis ratio. These may be disabled independently by configuring them to be non-positive. This is principally intended to get rid of satellite streaks, which the deblender or other downstream processing can have trouble dealing with (e.g., multiple large HeavyFootprints can chew up memory).
Definition at line 1135 of file deblend.py.
def lsst.meas.deblender.deblend.MultibandDeblendTask.isMasked | ( | self, | |
footprint, | |||
mask | |||
) |
Returns whether the footprint violates the mask limits
Definition at line 1157 of file deblend.py.
def lsst.meas.deblender.deblend.MultibandDeblendTask.postSingleDeblendHook | ( | self, | |
exposures, | |||
fluxCatalogs, | |||
templateCatalogs, | |||
pk, | |||
npre, | |||
fp, | |||
psfs, | |||
psf_fwhms, | |||
sigmas, | |||
result | |||
) |
Definition at line 1132 of file deblend.py.
def lsst.meas.deblender.deblend.MultibandDeblendTask.preSingleDeblendHook | ( | self, | |
exposures, | |||
sources, | |||
pk, | |||
fp, | |||
psfs, | |||
psf_fwhms, | |||
sigmas | |||
) |
Definition at line 1128 of file deblend.py.
def lsst.meas.deblender.deblend.MultibandDeblendTask.run | ( | self, | |
mExposure, | |||
mergedSources | |||
) |
Get the psf from each exposure and then run deblend(). Parameters ---------- mExposure: `MultibandExposure` The exposures should be co-added images of the same shape and region of the sky. mergedSources: `SourceCatalog` The merged `SourceCatalog` that contains parent footprints to (potentially) deblend. Returns ------- fluxCatalogs: dict or None Keys are the names of the filters and the values are `lsst.afw.table.source.source.SourceCatalog`'s. These are the flux-conserved catalogs with heavy footprints with the image data weighted by the multiband templates. If `self.config.conserveFlux` is `False`, then this item will be None templateCatalogs: dict or None Keys are the names of the filters and the values are `lsst.afw.table.source.source.SourceCatalog`'s. These are catalogs with heavy footprints that are the templates created by the multiband templates. If `self.config.saveTemplates` is `False`, then this item will be None
Definition at line 837 of file deblend.py.
def lsst.meas.deblender.deblend.MultibandDeblendTask.skipParent | ( | self, | |
source, | |||
masks | |||
) |
Indicate that the parent source is not being deblended We set the appropriate flags and masks for each exposure. Parameters ---------- source: `lsst.afw.table.source.source.SourceRecord` The source to flag as skipped masks: list of `lsst.afw.image.MaskX` The mask in each band to update with the non-detection
Definition at line 1167 of file deblend.py.
|
static |
Definition at line 668 of file deblend.py.
lsst.meas.deblender.deblend.MultibandDeblendTask.deblendFailedKey |
Definition at line 806 of file deblend.py.
lsst.meas.deblender.deblend.MultibandDeblendTask.deblendPatchedTemplateKey |
Definition at line 823 of file deblend.py.
lsst.meas.deblender.deblend.MultibandDeblendTask.deblendRampedTemplateKey |
Definition at line 818 of file deblend.py.
lsst.meas.deblender.deblend.MultibandDeblendTask.deblendSkippedKey |
Definition at line 809 of file deblend.py.
lsst.meas.deblender.deblend.MultibandDeblendTask.hasStrayFluxKey |
Definition at line 828 of file deblend.py.
lsst.meas.deblender.deblend.MultibandDeblendTask.maskedKey |
Definition at line 804 of file deblend.py.
lsst.meas.deblender.deblend.MultibandDeblendTask.nChildKey |
Definition at line 795 of file deblend.py.
lsst.meas.deblender.deblend.MultibandDeblendTask.peakSchemaMapper |
Definition at line 698 of file deblend.py.
lsst.meas.deblender.deblend.MultibandDeblendTask.plugins |
Definition at line 767 of file deblend.py.
lsst.meas.deblender.deblend.MultibandDeblendTask.psfCenterKey |
Definition at line 814 of file deblend.py.
lsst.meas.deblender.deblend.MultibandDeblendTask.psfFluxKey |
Definition at line 816 of file deblend.py.
lsst.meas.deblender.deblend.MultibandDeblendTask.psfKey |
Definition at line 797 of file deblend.py.
lsst.meas.deblender.deblend.MultibandDeblendTask.runtimeKey |
Definition at line 793 of file deblend.py.
lsst.meas.deblender.deblend.MultibandDeblendTask.schema |
Definition at line 711 of file deblend.py.
lsst.meas.deblender.deblend.MultibandDeblendTask.tooBigKey |
Definition at line 802 of file deblend.py.
lsst.meas.deblender.deblend.MultibandDeblendTask.tooManyPeaksKey |
Definition at line 799 of file deblend.py.