lsst.meas.deblender
15.0-2-g35685a8+10
|
Public Member Functions | |
def | __init__ (self, schema, peakSchema=None, kwargs) |
def | run (self, exposures, sources) |
def | deblend (self, exposures, sources, psfs, bands=None) |
def | preSingleDeblendHook (self, exposures, sources, pk, fp, psfs, psf_fwhms, sigmas) |
def | postSingleDeblendHook (self, exposures, flux_catalogs, template_catalogs, 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 636 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. bands: 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 646 of file deblend.py.
def lsst.meas.deblender.deblend.MultibandDeblendTask.deblend | ( | self, | |
exposures, | |||
sources, | |||
psfs, | |||
bands = None |
|||
) |
Deblend a data cube of multiband images Parameters ---------- exposures: dict Keys of the dict are the names of the filters and values are `lsst.afw.image.exposure.exposure.ExposureF`'s. The exposures should be co-added images of the same shape and region of the sky. sources: dict Keys are the names of the filters and the values are `lsst.afw.table.source.source.SourceCatalog`'s, which should be a merged catalog of the sources in each band ('deepCoadd_mergeDet'). psfs: dict bands: list, default=None Names of the bands in the deblender. If `bands` is `None`, the keys of `exposures` are used. Either `bands` should be specified or `exposures` should be an `OrderedDict` to set the preferential order of the filters. Returns ------- flux_catalogs: 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 template_catalogs: 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 870 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, | |||
flux_catalogs, | |||
template_catalogs, | |||
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, | |
exposures, | |||
sources | |||
) |
Get the psf from each exposure and then run deblend(). Parameters ---------- exposures: dict Keys of the dict are the names of the filters and values are `lsst.afw.image.exposure.exposure.ExposureF`'s. The exposures should be co-added images of the same shape and region of the sky. sources: dict Keys are the names of the filters and the values are `lsst.afw.table.source.source.SourceCatalog`'s, which should be a merged catalog of the sources in each band. Returns ------- flux_catalogs: 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 template_catalogs: 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 813 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.mask.mask.MaskX` The mask in each band to update with the non-detection
Definition at line 1167 of file deblend.py.
|
static |
Definition at line 643 of file deblend.py.
lsst.meas.deblender.deblend.MultibandDeblendTask.deblendFailedKey |
Definition at line 782 of file deblend.py.
lsst.meas.deblender.deblend.MultibandDeblendTask.deblendPatchedTemplateKey |
Definition at line 799 of file deblend.py.
lsst.meas.deblender.deblend.MultibandDeblendTask.deblendRampedTemplateKey |
Definition at line 794 of file deblend.py.
lsst.meas.deblender.deblend.MultibandDeblendTask.deblendSkippedKey |
Definition at line 785 of file deblend.py.
lsst.meas.deblender.deblend.MultibandDeblendTask.hasStrayFluxKey |
Definition at line 804 of file deblend.py.
lsst.meas.deblender.deblend.MultibandDeblendTask.maskedKey |
Definition at line 780 of file deblend.py.
lsst.meas.deblender.deblend.MultibandDeblendTask.nChildKey |
Definition at line 771 of file deblend.py.
lsst.meas.deblender.deblend.MultibandDeblendTask.peakSchemaMapper |
Definition at line 674 of file deblend.py.
lsst.meas.deblender.deblend.MultibandDeblendTask.plugins |
Definition at line 743 of file deblend.py.
lsst.meas.deblender.deblend.MultibandDeblendTask.psfCenterKey |
Definition at line 790 of file deblend.py.
lsst.meas.deblender.deblend.MultibandDeblendTask.psfFluxKey |
Definition at line 792 of file deblend.py.
lsst.meas.deblender.deblend.MultibandDeblendTask.psfKey |
Definition at line 773 of file deblend.py.
lsst.meas.deblender.deblend.MultibandDeblendTask.runtimeKey |
Definition at line 769 of file deblend.py.
lsst.meas.deblender.deblend.MultibandDeblendTask.tooBigKey |
Definition at line 778 of file deblend.py.
lsst.meas.deblender.deblend.MultibandDeblendTask.tooManyPeaksKey |
Definition at line 775 of file deblend.py.