LSSTApplications
10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
|
Public Member Functions | |
def | __init__ |
def | run |
def | getTempExpRefList |
def | getBackgroundReferenceScaler |
def | prepareInputs |
def | backgroundMatching |
def | assemble |
def | assembleMetadata |
def | assembleSubregion |
def | addBackgroundMatchingMetadata |
Static Public Attributes | |
ConfigClass = AssembleCoaddConfig | |
Private Member Functions | |
def | _makeArgumentParser |
Static Private Attributes | |
string | _DefaultName = "assembleCoadd" |
Assemble a coadd from a set of coaddTempExp
Definition at line 122 of file assembleCoadd.py.
def lsst.pipe.tasks.assembleCoadd.AssembleCoaddTask.__init__ | ( | self, | |
args, | |||
kwargs | |||
) |
|
private |
Create an argument parser
Definition at line 520 of file assembleCoadd.py.
def lsst.pipe.tasks.assembleCoadd.AssembleCoaddTask.addBackgroundMatchingMetadata | ( | self, | |
coaddExposure, | |||
tempExpRefList, | |||
backgroundInfoList | |||
) |
Add metadata from the background matching to the coadd @param coaddExposure: Coadd @param backgroundInfoList: List of background info, results from background matching
Definition at line 499 of file assembleCoadd.py.
def lsst.pipe.tasks.assembleCoadd.AssembleCoaddTask.assemble | ( | self, | |
skyInfo, | |||
tempExpRefList, | |||
imageScalerList, | |||
weightList, | |||
bgInfoList = None |
|||
) |
Assemble a coadd from input warps The assembly is performed over small areas on the image at a time, to conserve memory usage. @param skyInfo: Patch geometry information, from getSkyInfo @param tempExpRefList: List of data references to tempExp @param imageScalerList: List of image scalers @param weightList: List of weights @param bgInfoList: List of background data from background matching @return coadded exposure
Definition at line 372 of file assembleCoadd.py.
def lsst.pipe.tasks.assembleCoadd.AssembleCoaddTask.assembleMetadata | ( | self, | |
coaddExposure, | |||
tempExpRefList, | |||
weightList | |||
) |
Set the metadata for the coadd This basic implementation simply sets the filter from the first input. @param coaddExposure: The target image for the coadd @param tempExpRefList: List of data references to tempExp @param weightList: List of weights
Definition at line 425 of file assembleCoadd.py.
def lsst.pipe.tasks.assembleCoadd.AssembleCoaddTask.assembleSubregion | ( | self, | |
coaddExposure, | |||
bbox, | |||
tempExpRefList, | |||
imageScalerList, | |||
weightList, | |||
bgInfoList, | |||
statsFlags, | |||
statsCtrl | |||
) |
Assemble the coadd for a sub-region @param coaddExposure: The target image for the coadd @param bbox: Sub-region to coadd @param tempExpRefList: List of data reference to tempExp @param imageScalerList: List of image scalers @param weightList: List of weights @param bgInfoList: List of background data from background matching @param statsFlags: Statistic for coadd @param statsCtrl: Statistics control object for coadd
Definition at line 458 of file assembleCoadd.py.
def lsst.pipe.tasks.assembleCoadd.AssembleCoaddTask.backgroundMatching | ( | self, | |
inputData, | |||
refExpDataRef = None , |
|||
refImageScaler = None |
|||
) |
Perform background matching on the prepared inputs If no reference is provided, the background matcher will select one. This method returns a new inputData Struct that can replace the original. @param inputData: Struct from prepareInputs() with tempExpRefList, weightList, imageScalerList @param refExpDataRef: Data reference for background reference tempExp, or None @param refImageScaler: Image scaler for background reference tempExp, or None @return Struct: - tempExprefList: List of data references to tempExp - weightList: List of weightings - imageScalerList: List of image scalers - backgroundInfoList: result from background matching
Definition at line 302 of file assembleCoadd.py.
def lsst.pipe.tasks.assembleCoadd.AssembleCoaddTask.getBackgroundReferenceScaler | ( | self, | |
dataRef | |||
) |
Construct an image scaler for the background reference frame If there is no reference frame ('autoReference'), then this is a no-op and None is returned @param dataRef: Data reference for the background reference frame, or None @return image scaler, or None
Definition at line 216 of file assembleCoadd.py.
def lsst.pipe.tasks.assembleCoadd.AssembleCoaddTask.getTempExpRefList | ( | self, | |
patchRef, | |||
calExpRefList | |||
) |
Generate list of coaddTempExp data references @param patchRef: Data reference for patch @param calExpRefList: List of data references for input calexps @return List of coaddTempExp data references
Definition at line 202 of file assembleCoadd.py.
def lsst.pipe.tasks.assembleCoadd.AssembleCoaddTask.prepareInputs | ( | self, | |
refList | |||
) |
Prepare the input warps for coaddition This involves measuring weights and constructing image scalers for each of the inputs. @param refList: List of data references to tempExp @return Struct: - tempExprefList: List of data references to tempExp - weightList: List of weightings - imageScalerList: List of image scalers
Definition at line 241 of file assembleCoadd.py.
def lsst.pipe.tasks.assembleCoadd.AssembleCoaddTask.run | ( | self, | |
dataRef, | |||
selectDataList = [] |
|||
) |
Assemble a coadd from a set of coaddTempExp The coadd is computed as a mean with optional outlier rejection. AssumeCoaddTask performs coaddition of "coadd temporary exposures" ("coaddTempExps"). Each coaddTempExp is the size of a patch and contains data for one run, visit or (for a non-mosaic camera) exposure. The coaddTempExps to coadd are selected from the provided selectDataList based on their overlap with the patch specified by dataRef. By default, coaddTempExps contain backgrounds and hence require config.doMatchBackgrounds=True. Background-subtracted coaddTempExps can be coadded by setting config.doMatchBackgrounds=False. When background matching is enabled, the task may be configured to automatically select a reference exposure (config.autoReference=True). If this is not done, then we require that the input dataRef provides access to a coaddTempExp (dataset type coaddName + 'Coadd_tempExp') which is used as the reference exposure. @param dataRef: Data reference defining the patch for coaddition and the reference coaddTempExp (if config.autoReference=False). Used to access the following data products: - [in] self.config.coaddName + "Coadd_skyMap" - [in] self.config.coaddName + "Coadd_tempExp" (optionally) - [out] self.config.coaddName + "Coadd" @param selectDataList[in]: List of data references to coaddTempExp. Data to be coadded will be selected from this list based on overlap with the patch defined by dataRef. @return: a pipeBase.Struct with fields: - coaddExposure: coadded exposure
Definition at line 135 of file assembleCoadd.py.
|
staticprivate |
Definition at line 126 of file assembleCoadd.py.
|
static |
Definition at line 125 of file assembleCoadd.py.