lsst.pipe.tasks gd5638573c2+392ae78cd2
Loading...
Searching...
No Matches
lsst.pipe.tasks.coaddInputRecorder.CoaddInputRecorderTask Class Reference
Inheritance diagram for lsst.pipe.tasks.coaddInputRecorder.CoaddInputRecorderTask:

Public Member Functions

 __init__ (self, *args, **kwargs)
 makeCoaddTempExpRecorder (self, visitId, num=0)
 makeCoaddInputs (self)
 addVisitToCoadd (self, coaddInputs, coaddTempExp, weight)

Public Attributes

 visitSchema = afwTable.ExposureTable.makeMinimalSchema()
 visitGoodPixKey
 visitWeightKey
 ccdSchema = afwTable.ExposureTable.makeMinimalSchema()
 ccdCcdKey = self.ccdSchema.addField("ccd", type=numpy.int32, doc="cameraGeom CCD serial number")
 ccdVisitKey
 ccdGoodPixKey
 ccdWeightKey
 visitFilterKey
 ccdFilterKey

Static Public Attributes

 ConfigClass = CoaddInputRecorderConfig

Detailed Description

Subtask that handles filling a CoaddInputs object for a coadd exposure, tracking the CCDs and
visits that went into a coadd.

The interface here is a little messy, but I think this is at least partly a product of a bit of
messiness in the coadd code it's plugged into.  I hope #2590 might result in a better design.

Member Function Documentation

◆ addVisitToCoadd()

lsst.pipe.tasks.coaddInputRecorder.CoaddInputRecorderTask.addVisitToCoadd ( self,
coaddInputs,
coaddTempExp,
weight )
Called by AssembleCoaddTask when adding (a subset of) a coaddTempExp to a coadd.  The
base class impementation extracts the CoaddInputs from the coaddTempExp and appends
them to the given coaddInputs, filling in the weight column(s).

Parameters
----------
coaddInputs : `lsst.afw.Image.CoaddInputs`
    A record of the observations that are included in the coadd.
coaddTempExp : `lsst.afw.image.Exposure`
    Exposure object from which to obtain the PSF, WCS, and bounding
    box for the entry in the 'visits' table.  On return, the completed
    CoaddInputs object will be attached to it.
weight : `Unknown`

Returns
-------
inputVisitRecord : `Unknown`
    The record for the visit to allow subclasses to fill in additional fields or
    None if the inputRecorder catalogs for the coaddTempExp are not usable.

Notes
-----
Note that the passed coaddTempExp may be a subimage, but that this method will only be
called for the first subimage.

◆ makeCoaddInputs()

lsst.pipe.tasks.coaddInputRecorder.CoaddInputRecorderTask.makeCoaddInputs ( self)
Create a CoaddInputs object with schemas defined by the task configuration.

◆ makeCoaddTempExpRecorder()

lsst.pipe.tasks.coaddInputRecorder.CoaddInputRecorderTask.makeCoaddTempExpRecorder ( self,
visitId,
num = 0 )
Return a CoaddTempExpInputRecorder instance to help with saving a CoaddTempExp's inputs.

Parameters
----------
visitId : `Unknown`
num : `int`, optional
    Number of CCDs for this visit that overlap this patch (for reserving memory).

Notes
-----
The visitId may be any number that is unique for each :that goes into a coadd,
but ideally should be something more meaningful that can be used to reconstruct a data ID.

Member Data Documentation

◆ ccdFilterKey

lsst.pipe.tasks.coaddInputRecorder.CoaddInputRecorderTask.ccdFilterKey
Initial value:
= self.ccdSchema.addField("filter", type=str, size=32,
doc="Physical filter associated with this visit.")

◆ ccdGoodPixKey

lsst.pipe.tasks.coaddInputRecorder.CoaddInputRecorderTask.ccdGoodPixKey
Initial value:
= self.ccdSchema.addField("goodpix", type=numpy.int32,
doc="Number of good pixels in this CCD")

◆ ccdVisitKey

lsst.pipe.tasks.coaddInputRecorder.CoaddInputRecorderTask.ccdVisitKey
Initial value:
= self.ccdSchema.addField("visit", type=numpy.int64,
doc="Foreign key for the visits (coaddTempExp) catalog")

◆ ccdWeightKey

lsst.pipe.tasks.coaddInputRecorder.CoaddInputRecorderTask.ccdWeightKey
Initial value:
= self.ccdSchema.addField("weight", type=float,
doc="Weight for this visit in the coadd")

◆ visitFilterKey

lsst.pipe.tasks.coaddInputRecorder.CoaddInputRecorderTask.visitFilterKey
Initial value:
= self.visitSchema.addField("filter", type=str, size=32,
doc="Physical filter associated with this visit.")

◆ visitGoodPixKey

lsst.pipe.tasks.coaddInputRecorder.CoaddInputRecorderTask.visitGoodPixKey
Initial value:
= self.visitSchema.addField("goodpix", type=numpy.int32,
doc="Number of good pixels in the coaddTempExp")

◆ visitWeightKey

lsst.pipe.tasks.coaddInputRecorder.CoaddInputRecorderTask.visitWeightKey
Initial value:
= self.visitSchema.addField("weight", type=float,
doc="Weight for this visit in the coadd")

The documentation for this class was generated from the following file:
  • python/lsst/pipe/tasks/coaddInputRecorder.py