LSSTApplications  17.0+10,17.0+52,17.0+91,18.0.0+11,18.0.0+16,18.0.0+38,18.0.0+4,18.0.0-2-ge43143a+8,18.1.0-1-g0001055+4,18.1.0-1-g1349e88+13,18.1.0-1-g2505f39+10,18.1.0-1-g380d4d4+13,18.1.0-1-g5315e5e,18.1.0-1-g5e4b7ea+4,18.1.0-1-g7e8fceb,18.1.0-1-g85f8cd4+10,18.1.0-1-g9a6769a+4,18.1.0-1-ga1a4c1a+9,18.1.0-1-gd55f500+5,18.1.0-1-ge10677a+10,18.1.0-11-gb2589d7b,18.1.0-13-g451e75588+2,18.1.0-13-gbfe7f7f+4,18.1.0-14-g2e73c10+1,18.1.0-2-g31c43f9+10,18.1.0-2-g919ecaf,18.1.0-2-g9c63283+13,18.1.0-2-gdf0b915+13,18.1.0-2-gfefb8b5+2,18.1.0-3-g52aa583+4,18.1.0-3-g8f4a2b1+4,18.1.0-3-g9cb968e+12,18.1.0-3-gab23065,18.1.0-4-g7bbbad0+4,18.1.0-5-g510c42a+12,18.1.0-5-gaeab27e+13,18.1.0-6-gc4bdb98+2,18.1.0-6-gdda7f3e+15,18.1.0-9-g9613d271+1,w.2019.34
LSSTDataManagementBasePackage
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
lsst.pipe.tasks.assembleCoadd.AssembleCoaddConfig Class Reference
Inheritance diagram for lsst.pipe.tasks.assembleCoadd.AssembleCoaddConfig:
lsst.pipe.tasks.assembleCoadd.CompareWarpAssembleCoaddConfig lsst.pipe.tasks.assembleCoadd.SafeClipAssembleCoaddConfig lsst.pipe.tasks.dcrAssembleCoadd.DcrAssembleCoaddConfig

Public Member Functions

def setDefaults (self)
 
def validate (self)
 

Public Attributes

 badMaskPlanes
 

Static Public Attributes

 warpType
 
 subregionSize
 
 statistic
 
 doSigmaClip
 
 sigmaClip
 
 clipIter
 
 calcErrorFromInputVariance
 
 scaleZeroPoint
 
 doInterp
 
 interpImage
 
 doWrite
 
 doNImage
 
 doUsePsfMatchedPolygons
 
 maskPropagationThresholds
 
 removeMaskPlanes
 
 doMaskBrightObjects
 
 brightObjectMaskName
 
 coaddPsf
 
 doAttachTransmissionCurve
 
 inputWarps
 
 skyMap
 
 brightObjectMask
 
 coaddExposure
 
 nImage
 
 hasFakes
 

Detailed Description

Configuration parameters for the `AssembleCoaddTask`.

Notes
-----
The `doMaskBrightObjects` and `brightObjectMaskName` configuration options
only set the bitplane config.brightObjectMaskName. To make this useful you
*must* also configure the flags.pixel algorithm, for example by adding

.. code-block:: none

   config.measurement.plugins["base_PixelFlags"].masksFpCenter.append("BRIGHT_OBJECT")
   config.measurement.plugins["base_PixelFlags"].masksFpAnywhere.append("BRIGHT_OBJECT")

to your measureCoaddSources.py and forcedPhotCoadd.py config overrides.

Definition at line 50 of file assembleCoadd.py.

Member Function Documentation

◆ setDefaults()

def lsst.pipe.tasks.assembleCoadd.AssembleCoaddConfig.setDefaults (   self)

Definition at line 199 of file assembleCoadd.py.

199  def setDefaults(self):
200  super().setDefaults()
201  self.badMaskPlanes = ["NO_DATA", "BAD", "SAT", "EDGE"]
202  self.formatTemplateNames({"inputCoaddName": "deep", "outputCoaddName": "deep",
203  "warpType": self.warpType})
204  self.quantum.dimensions = ("tract", "patch", "abstract_filter", "skymap")
205 

◆ validate()

def lsst.pipe.tasks.assembleCoadd.AssembleCoaddConfig.validate (   self)

Definition at line 206 of file assembleCoadd.py.

206  def validate(self):
207  super().validate()
208  if self.doPsfMatch:
209  # Backwards compatibility.
210  # Configs do not have loggers
211  log.warn("Config doPsfMatch deprecated. Setting warpType='psfMatched'")
212  self.warpType = 'psfMatched'
213  if self.doSigmaClip and self.statistic != "MEANCLIP":
214  log.warn('doSigmaClip deprecated. To replicate behavior, setting statistic to "MEANCLIP"')
215  self.statistic = "MEANCLIP"
216  if self.doInterp and self.statistic not in ['MEAN', 'MEDIAN', 'MEANCLIP', 'VARIANCE', 'VARIANCECLIP']:
217  raise ValueError("Must set doInterp=False for statistic=%s, which does not "
218  "compute and set a non-zero coadd variance estimate." % (self.statistic))
219 
220  unstackableStats = ['NOTHING', 'ERROR', 'ORMASK']
221  if not hasattr(afwMath.Property, self.statistic) or self.statistic in unstackableStats:
222  stackableStats = [str(k) for k in afwMath.Property.__members__.keys()
223  if str(k) not in unstackableStats]
224  raise ValueError("statistic %s is not allowed. Please choose one of %s."
225  % (self.statistic, stackableStats))
226 
227 

Member Data Documentation

◆ badMaskPlanes

lsst.pipe.tasks.assembleCoadd.AssembleCoaddConfig.badMaskPlanes

Definition at line 201 of file assembleCoadd.py.

◆ brightObjectMask

lsst.pipe.tasks.assembleCoadd.AssembleCoaddConfig.brightObjectMask
static
Initial value:
= pipeBase.InputDatasetField(
doc=("Input Bright Object Mask mask produced with external catalogs to be applied to the mask plane"
" BRIGHT_OBJECT."),
name="brightObjectMask",
storageClass="ObjectMaskCatalog",
dimensions=("tract", "patch", "skymap", "abstract_filter"),
scalar=True
)

Definition at line 170 of file assembleCoadd.py.

◆ brightObjectMaskName

lsst.pipe.tasks.assembleCoadd.AssembleCoaddConfig.brightObjectMaskName
static
Initial value:
= pexConfig.Field(dtype=str, default="BRIGHT_OBJECT",
doc="Name of mask bit used for bright objects")

Definition at line 144 of file assembleCoadd.py.

◆ calcErrorFromInputVariance

lsst.pipe.tasks.assembleCoadd.AssembleCoaddConfig.calcErrorFromInputVariance
static
Initial value:
= pexConfig.Field(
dtype=bool,
doc="Calculate coadd variance from input variance by stacking statistic."
"Passed to StatisticsControl.setCalcErrorFromInputVariance()",
default=True,
)

Definition at line 98 of file assembleCoadd.py.

◆ clipIter

lsst.pipe.tasks.assembleCoadd.AssembleCoaddConfig.clipIter
static
Initial value:
= pexConfig.Field(
dtype=int,
doc="Number of iterations of outlier rejection; ignored if non-clipping statistic selected.",
default=2,
)

Definition at line 93 of file assembleCoadd.py.

◆ coaddExposure

lsst.pipe.tasks.assembleCoadd.AssembleCoaddConfig.coaddExposure
static
Initial value:
= pipeBase.OutputDatasetField(
doc="Output coadded exposure, produced by stacking input warps",
nameTemplate="{outputCoaddName}Coadd",
storageClass="ExposureF",
dimensions=("tract", "patch", "skymap", "abstract_filter"),
scalar=True
)

Definition at line 178 of file assembleCoadd.py.

◆ coaddPsf

lsst.pipe.tasks.assembleCoadd.AssembleCoaddConfig.coaddPsf
static
Initial value:
= pexConfig.ConfigField(
doc="Configuration for CoaddPsf",
dtype=measAlg.CoaddPsfConfig,
)

Definition at line 146 of file assembleCoadd.py.

◆ doAttachTransmissionCurve

lsst.pipe.tasks.assembleCoadd.AssembleCoaddConfig.doAttachTransmissionCurve
static
Initial value:
= pexConfig.Field(
dtype=bool, default=False, optional=False,
doc=("Attach a piecewise TransmissionCurve for the coadd? "
"(requires all input Exposures to have TransmissionCurves).")
)

Definition at line 150 of file assembleCoadd.py.

◆ doInterp

lsst.pipe.tasks.assembleCoadd.AssembleCoaddConfig.doInterp
static
Initial value:
= pexConfig.Field(
doc="Interpolate over NaN pixels? Also extrapolate, if necessary, but the results are ugly.",
dtype=bool,
default=True,
)

Definition at line 108 of file assembleCoadd.py.

◆ doMaskBrightObjects

lsst.pipe.tasks.assembleCoadd.AssembleCoaddConfig.doMaskBrightObjects
static
Initial value:
= pexConfig.Field(dtype=bool, default=False,
doc="Set mask and flag bits for bright objects?")

Definition at line 142 of file assembleCoadd.py.

◆ doNImage

lsst.pipe.tasks.assembleCoadd.AssembleCoaddConfig.doNImage
static
Initial value:
= pexConfig.Field(
doc="Create image of number of contributing exposures for each pixel",
dtype=bool,
default=False,
)

Definition at line 122 of file assembleCoadd.py.

◆ doSigmaClip

lsst.pipe.tasks.assembleCoadd.AssembleCoaddConfig.doSigmaClip
static
Initial value:
= pexConfig.Field(
dtype=bool,
doc="Perform sigma clipped outlier rejection with MEANCLIP statistic? (DEPRECATED)",
default=False,
)

Definition at line 83 of file assembleCoadd.py.

◆ doUsePsfMatchedPolygons

lsst.pipe.tasks.assembleCoadd.AssembleCoaddConfig.doUsePsfMatchedPolygons
static
Initial value:
= pexConfig.Field(
doc="Use ValidPolygons from shrunk Psf-Matched Calexps? Should be set to True by CompareWarp only.",
dtype=bool,
default=False,
)

Definition at line 127 of file assembleCoadd.py.

◆ doWrite

lsst.pipe.tasks.assembleCoadd.AssembleCoaddConfig.doWrite
static
Initial value:
= pexConfig.Field(
doc="Persist coadd?",
dtype=bool,
default=True,
)

Definition at line 117 of file assembleCoadd.py.

◆ hasFakes

lsst.pipe.tasks.assembleCoadd.AssembleCoaddConfig.hasFakes
static
Initial value:
= pexConfig.Field(
dtype=bool,
default=False,
doc="Should be set to True if fake sources have been inserted into the input data."
)

Definition at line 193 of file assembleCoadd.py.

◆ inputWarps

lsst.pipe.tasks.assembleCoadd.AssembleCoaddConfig.inputWarps
static
Initial value:
= pipeBase.InputDatasetField(
doc=("Input list of warps to be assemebled i.e. stacked."
"WarpType (e.g. direct, psfMatched) is controlled by we warpType config parameter"),
nameTemplate="{inputCoaddName}Coadd_{warpType}Warp",
storageClass="ExposureF",
dimensions=("tract", "patch", "skymap", "visit", "instrument"),
manualLoad=True,
)

Definition at line 155 of file assembleCoadd.py.

◆ interpImage

lsst.pipe.tasks.assembleCoadd.AssembleCoaddConfig.interpImage
static
Initial value:
= pexConfig.ConfigurableField(
target=InterpImageTask,
doc="Task to interpolate (and extrapolate) over NaN pixels",
)

Definition at line 113 of file assembleCoadd.py.

◆ maskPropagationThresholds

lsst.pipe.tasks.assembleCoadd.AssembleCoaddConfig.maskPropagationThresholds
static
Initial value:
= pexConfig.DictField(
keytype=str,
itemtype=float,
doc=("Threshold (in fractional weight) of rejection at which we propagate a mask plane to "
"the coadd; that is, we set the mask bit on the coadd if the fraction the rejected frames "
"would have contributed exceeds this value."),
default={"SAT": 0.1},
)

Definition at line 132 of file assembleCoadd.py.

◆ nImage

lsst.pipe.tasks.assembleCoadd.AssembleCoaddConfig.nImage
static
Initial value:
= pipeBase.OutputDatasetField(
doc="Output image of number of input images per pixel",
nameTemplate="{outputCoaddName}Coadd_nImage",
storageClass="ImageU",
dimensions=("tract", "patch", "skymap", "abstract_filter"),
scalar=True
)

Definition at line 185 of file assembleCoadd.py.

◆ removeMaskPlanes

lsst.pipe.tasks.assembleCoadd.AssembleCoaddConfig.removeMaskPlanes
static
Initial value:
= pexConfig.ListField(dtype=str, default=["NOT_DEBLENDED"],
doc="Mask planes to remove before coadding")

Definition at line 140 of file assembleCoadd.py.

◆ scaleZeroPoint

lsst.pipe.tasks.assembleCoadd.AssembleCoaddConfig.scaleZeroPoint
static
Initial value:
= pexConfig.ConfigurableField(
target=ScaleZeroPointTask,
doc="Task to adjust the photometric zero point of the coadd temp exposures",
)

Definition at line 104 of file assembleCoadd.py.

◆ sigmaClip

lsst.pipe.tasks.assembleCoadd.AssembleCoaddConfig.sigmaClip
static
Initial value:
= pexConfig.Field(
dtype=float,
doc="Sigma for outlier rejection; ignored if non-clipping statistic selected.",
default=3.0,
)

Definition at line 88 of file assembleCoadd.py.

◆ skyMap

lsst.pipe.tasks.assembleCoadd.AssembleCoaddConfig.skyMap
static
Initial value:
= pipeBase.InputDatasetField(
doc="Input definition of geometry/bbox and projection/wcs for coadded exposures",
nameTemplate="{inputCoaddName}Coadd_skyMap",
storageClass="SkyMap",
dimensions=("skymap", ),
scalar=True
)

Definition at line 163 of file assembleCoadd.py.

◆ statistic

lsst.pipe.tasks.assembleCoadd.AssembleCoaddConfig.statistic
static
Initial value:
= pexConfig.Field(
dtype=str,
doc="Main stacking statistic for aggregating over the epochs.",
default="MEANCLIP",
)

Definition at line 78 of file assembleCoadd.py.

◆ subregionSize

lsst.pipe.tasks.assembleCoadd.AssembleCoaddConfig.subregionSize
static
Initial value:
= pexConfig.ListField(
dtype=int,
doc="Width, height of stack subregion size; "
"make small enough that a full stack of images will fit into memory at once.",
length=2,
default=(2000, 2000),
)

Definition at line 71 of file assembleCoadd.py.

◆ warpType

lsst.pipe.tasks.assembleCoadd.AssembleCoaddConfig.warpType
static
Initial value:
= pexConfig.Field(
doc="Warp name: one of 'direct' or 'psfMatched'",
dtype=str,
default="direct",
)

Definition at line 66 of file assembleCoadd.py.


The documentation for this class was generated from the following file: