LSSTApplications  20.0.0
LSSTDataManagementBasePackage
Classes | Functions
lsst.meas.algorithms.detection Namespace Reference

Classes

class  SourceDetectionConfig
 Configuration parameters for the SourceDetectionTask. More...
 
class  SourceDetectionTask
 Detect positive and negative sources on an exposure and return a new table.SourceCatalog. More...
 

Functions

def addExposures (exposureList)
 

Function Documentation

◆ addExposures()

def lsst.meas.algorithms.detection.addExposures (   exposureList)
Add a set of exposures together.

Parameters
----------
exposureList : `list` of `lsst.afw.image.Exposure`
    Sequence of exposures to add.

Returns
-------
addedExposure : `lsst.afw.image.Exposure`
    An exposure of the same size as each exposure in ``exposureList``,
    with the metadata from ``exposureList[0]`` and a masked image equal
    to the sum of all the exposure's masked images.

Definition at line 954 of file detection.py.

954 def addExposures(exposureList):
955  """Add a set of exposures together.
956 
957  Parameters
958  ----------
959  exposureList : `list` of `lsst.afw.image.Exposure`
960  Sequence of exposures to add.
961 
962  Returns
963  -------
964  addedExposure : `lsst.afw.image.Exposure`
965  An exposure of the same size as each exposure in ``exposureList``,
966  with the metadata from ``exposureList[0]`` and a masked image equal
967  to the sum of all the exposure's masked images.
968  """
969  exposure0 = exposureList[0]
970  image0 = exposure0.getMaskedImage()
971 
972  addedImage = image0.Factory(image0, True)
973  addedImage.setXY0(image0.getXY0())
974 
975  for exposure in exposureList[1:]:
976  image = exposure.getMaskedImage()
977  addedImage += image
978 
979  addedExposure = exposure0.Factory(addedImage, exposure0.getWcs())
980  return addedExposure
lsst::meas::algorithms.detection.addExposures
def addExposures(exposureList)
Definition: detection.py:954