CoaddInputRecorderTask#

class lsst.pipe.tasks.coaddInputRecorder.CoaddInputRecorderTask(*args, **kwargs)#

Bases: Task

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.

Methods Summary

addVisitToCoadd(coaddInputs, coaddTempExp, ...)

Called by AssembleCoaddTask when adding (a subset of) a coaddTempExp to a coadd.

makeCoaddInputs()

Create a CoaddInputs object with schemas defined by the task configuration.

makeCoaddTempExpRecorder(visitId[, num])

Return a CoaddTempExpInputRecorder instance to help with saving a CoaddTempExp's inputs.

Methods Documentation

addVisitToCoadd(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#

coaddInputslsst.afw.Image.CoaddInputs

A record of the observations that are included in the coadd.

coaddTempExplsst.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#

inputVisitRecordUnknown

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()#

Create a CoaddInputs object with schemas defined by the task configuration.

makeCoaddTempExpRecorder(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.