lsst.meas.base  22.0.1-21-g61eb88f+ec95a677f0
Classes | Functions | Variables
lsst.meas.base.forcedPhotCoadd Namespace Reference

Classes

class  ForcedPhotCoaddRunner
 
class  ForcedPhotCoaddConnections
 
class  documentation
 

Functions

def getExposureId (self, dataRef)
 
def fetchReferences (self, dataRef, exposure)
 
def attachFootprints (self, sources, refCat, exposure, refWcs, dataRef)
 
def getExposure (self, dataRef)
 
def writeOutput (self, dataRef, sources)
 
def getSchemaCatalogs (self)
 

Variables

 removePatchOverlaps
 
 exposureIdInfo
 

Function Documentation

◆ attachFootprints()

def lsst.meas.base.forcedPhotCoadd.attachFootprints (   self,
  sources,
  refCat,
  exposure,
  refWcs,
  dataRef 
)
Attach Footprints to source records.

For coadd forced photometry, we use the deblended "heavy"
`~lsst.afw.detection.Footprint`\ s from the single-band measurements
of the same band - because we've guaranteed that the peaks (and hence
child sources) will be consistent across all bands before we get to
measurement, this should yield reasonable deblending for most sources.
It's most likely limitation is that it will not provide good flux
upper limits for sources that were not detected in this band but were
blended with sources that were.

Definition at line 389 of file forcedPhotCoadd.py.

◆ fetchReferences()

def lsst.meas.base.forcedPhotCoadd.fetchReferences (   self,
  dataRef,
  exposure 
)
Return an iterable of reference sources which overlap the exposure.

Parameters
----------
dataRef : `lsst.daf.persistence.ButlerDataRef`
    Butler data reference corresponding to the image to be measured;
    should have tract, patch, and filter keys.

exposure : `lsst.afw.image.Exposure`
    Unused.

Notes
-----
All work is delegated to the references subtask; see
`CoaddSrcReferencesTask` for information about the default behavior.

Definition at line 364 of file forcedPhotCoadd.py.

◆ getExposure()

def lsst.meas.base.forcedPhotCoadd.getExposure (   self,
  dataRef 
)
Read input exposure on which measurement will be performed.

Parameters
----------
dataRef : `lsst.daf.persistence.ButlerDataRef`
    Butler data reference.

Definition at line 417 of file forcedPhotCoadd.py.

◆ getExposureId()

def lsst.meas.base.forcedPhotCoadd.getExposureId (   self,
  dataRef 
)

Definition at line 361 of file forcedPhotCoadd.py.

◆ getSchemaCatalogs()

def lsst.meas.base.forcedPhotCoadd.getSchemaCatalogs (   self)
The schema catalogs that will be used by this task.

Returns
-------
schemaCatalogs : `dict`
    Dictionary mapping dataset type to schema catalog.

Notes
-----
There is only one schema for each type of forced measurement. The
dataset type for this measurement is defined in the mapper.

Definition at line 445 of file forcedPhotCoadd.py.

◆ writeOutput()

def lsst.meas.base.forcedPhotCoadd.writeOutput (   self,
  dataRef,
  sources 
)
Write forced source table

Parameters
----------
dataRef : `lsst.daf.persistence.ButlerDataRef`
    Butler data reference. The forced_src dataset (with
    self.dataPrefix prepended) is all that will be modified.
sources : `lsst.afw.table.SourceCatalog`
    Catalog of sources to save.

Definition at line 432 of file forcedPhotCoadd.py.

Variable Documentation

◆ exposureIdInfo

lsst.meas.base.forcedPhotCoadd.exposureIdInfo
Initial value:
1 = ExposureIdInfo(int(dataRef.get(self.config.coaddName + "CoaddId")),
2  dataRef.get(self.config.coaddName + "CoaddId_bits"))

Definition at line 357 of file forcedPhotCoadd.py.

◆ removePatchOverlaps

lsst.meas.base.forcedPhotCoadd.removePatchOverlaps

Definition at line 153 of file forcedPhotCoadd.py.