DcrAssembleCoaddConnections#
- class lsst.drp.tasks.dcr_assemble_coadd.DcrAssembleCoaddConnections(*, config: PipelineTaskConfig | None = None)#
Bases:
CompareWarpAssembleCoaddConnectionsAttributes Summary
Mapping holding all connection attributes.
Connection for output dataset.
Class used for declaring PipelineTask prerequisite connections.
Connection for output dataset.
Connection for output dataset.
Connection for output dataset.
Set of dimension names that define the unit of work for this task.
Set with the names of all
InitInputconnection attributes.Set with the names of all
InitOutputconnection attributes.Connection for output dataset.
Class used for declaring PipelineTask input connections.
Set with the names of all
connectionTypes.Inputconnection attributes.Connection for output dataset.
Set with the names of all
Outputconnection attributes.Set with the names of all
PrerequisiteInputconnection attributes.Class used for declaring PipelineTask input connections.
Class used for declaring PipelineTask input connections.
Class used for declaring PipelineTask input connections.
Connection for output dataset.
Class used for declaring PipelineTask input connections.
Attributes Documentation
- allConnections: Mapping[str, BaseConnection] = {'artifactMasks': Output(name='compare_warp_artifact_mask', storageClass='Mask', doc='Mask of artifacts detected in the coadd', multiple=True, deprecated=None, _deprecation_context='', dimensions=('tract', 'patch', 'skymap', 'visit', 'instrument'), isCalibration=False), 'brightObjectMask': PrerequisiteInput(name='brightObjectMask', storageClass='ObjectMaskCatalog', doc='Input Bright Object Mask mask produced with external catalogs to be applied to the mask plane BRIGHT_OBJECT.', multiple=False, deprecated=None, _deprecation_context='', dimensions=('tract', 'patch', 'skymap', 'band'), isCalibration=False, deferLoad=False, minimum=0, lookupFunction=None), 'coaddExposure': Output(name='{outputCoaddName}Coadd{warpTypeSuffix}', storageClass='ExposureF', doc='Output coadded exposure, produced by stacking input warps', multiple=False, deprecated=None, _deprecation_context='', dimensions=('tract', 'patch', 'skymap', 'band'), isCalibration=False), 'dcrCoadds': Output(name='{fakesType}{outputCoaddName}Coadd{warpTypeSuffix}', storageClass='ExposureF', doc='Output coadded exposure, produced by stacking input warps', multiple=True, deprecated=None, _deprecation_context='', dimensions=('tract', 'patch', 'skymap', 'band', 'subfilter'), isCalibration=False), 'dcrNImages': Output(name='{outputCoaddName}Coadd_nImage', storageClass='ImageU', doc='Output image of number of input images per pixel', multiple=True, deprecated=None, _deprecation_context='', dimensions=('tract', 'patch', 'skymap', 'band', 'subfilter'), isCalibration=False), 'inputMap': Output(name='{outputCoaddName}Coadd_inputMap', storageClass='HealSparseMap', doc='Output healsparse map of input images', multiple=False, deprecated=None, _deprecation_context='', dimensions=('tract', 'patch', 'skymap', 'band'), isCalibration=False), 'inputWarps': Input(name='{inputWarpName}Coadd_{warpType}Warp', storageClass='ExposureF', doc='Input list of warps to be assembled i.e. stacked.Note that this will often be different than the inputCoaddName.WarpType (e.g. direct, psfMatched) is controlled by the warpType config parameter', multiple=True, deprecated=None, _deprecation_context='', dimensions=('tract', 'patch', 'skymap', 'visit', 'instrument'), isCalibration=False, deferLoad=True, minimum=1, deferGraphConstraint=False, deferBinding=False), 'nImage': Output(name='{outputCoaddName}Coadd_nImage', storageClass='ImageU', doc='Output image of number of input images per pixel', multiple=False, deprecated=None, _deprecation_context='', dimensions=('tract', 'patch', 'skymap', 'band'), isCalibration=False), 'psfMatchedWarps': Input(name='{inputCoaddName}Coadd_psfMatchedWarp', storageClass='ExposureF', doc='PSF-Matched Warps are required by CompareWarp regardless of the coadd type requested. Only PSF-Matched Warps make sense for image subtraction. Therefore, they must be an additional declared input.', multiple=True, deprecated=None, _deprecation_context='', dimensions=('tract', 'patch', 'skymap', 'visit'), isCalibration=False, deferLoad=True, minimum=1, deferGraphConstraint=False, deferBinding=False), 'selectedVisits': Input(name='{outputCoaddName}Visits', storageClass='StructuredDataDict', doc='Selected visits to be coadded.', multiple=False, deprecated=None, _deprecation_context='', dimensions=('instrument', 'tract', 'patch', 'skymap', 'band'), isCalibration=False, deferLoad=False, minimum=1, deferGraphConstraint=False, deferBinding=False), 'skyMap': Input(name='skyMap', storageClass='SkyMap', doc='Input definition of geometry/bbox and projection/wcs for coadded exposures', multiple=False, deprecated=None, _deprecation_context='', dimensions=('skymap',), isCalibration=False, deferLoad=False, minimum=1, deferGraphConstraint=False, deferBinding=False), 'templateCoadd': Output(name='{outputCoaddName}CoaddPsfMatched', storageClass='ExposureF', doc='Model of the static sky, used to find temporal artifacts. Typically a PSF-Matched, sigma-clipped coadd. Written if and only if assembleStaticSkyModel.doWrite=True', multiple=False, deprecated=None, _deprecation_context='', dimensions=('tract', 'patch', 'skymap', 'band'), isCalibration=False), 'templateExposure': Input(name='{fakesType}{inputCoaddName}Coadd{warpTypeSuffix}', storageClass='ExposureF', doc='Input coadded exposure, produced by previous call to AssembleCoadd', multiple=False, deprecated=None, _deprecation_context='', dimensions=('tract', 'patch', 'skymap', 'band'), isCalibration=False, deferLoad=False, minimum=1, deferGraphConstraint=False, deferBinding=False)}#
Mapping holding all connection attributes.
This is a read-only view that is automatically updated when connection attributes are added, removed, or replaced in
__init__. It is also updated after__init__completes to reflect changes ininputs,prerequisiteInputs,outputs,initInputs, andinitOutputs.
- artifactMasks#
Connection for output dataset.
- brightObjectMask#
Class used for declaring PipelineTask prerequisite connections.
Raises#
- TypeError
Raised if
minimumis greater than one butmultiple=False.
Notes#
Prerequisite inputs are used for datasets that must exist in the data repository before a pipeline including this is run; they cannot be produced by another task in the same pipeline.
In exchange for this limitation, they have a number of advantages relative to regular
Inputconnections:The query used to find them then during
QuantumGraphgeneration can be fully customized by providing alookupFunction.Failed searches for prerequisites during
QuantumGraphgeneration will usually generate more helpful diagnostics than those for regularInputconnections.The default query for prerequisite inputs relates the quantum dimensions directly to the dimensions of its dataset type, without being constrained by any of the other dimensions in the pipeline. This allows them to be used for temporal calibration lookups (which regular
Inputconnections cannot do at present) and to work aroundQuantumGraphgeneration limitations involving cases where naive spatial overlap relationships between dimensions are not desired (e.g. a task that wants all detectors in each visit for which the visit overlaps a tract, not just those where that detector+visit combination overlaps the tract).Prerequisite inputs may be optional (regular inputs are never optional).
- coaddExposure#
Connection for output dataset.
- dcrCoadds#
Connection for output dataset.
- dcrNImages#
Connection for output dataset.
- defaultTemplates = {'fakesType': '', 'inputCoaddName': 'deep', 'inputWarpName': 'deep', 'outputCoaddName': 'dcr', 'warpType': 'direct', 'warpTypeSuffix': ''}#
- deprecatedTemplates = {}#
- dimensions: set[str] = {'band', 'patch', 'skymap', 'tract'}#
Set of dimension names that define the unit of work for this task.
Required and implied dependencies will automatically be expanded later and need not be provided.
This may be replaced or modified in
__init__to change the dimensions of the task. After__init__it will be afrozensetand may not be replaced.
- initInputs: set[str] = frozenset({})#
Set with the names of all
InitInputconnection attributes.See
inputsfor additional information.
- initOutputs: set[str] = frozenset({})#
Set with the names of all
InitOutputconnection attributes.See
inputsfor additional information.
- inputMap#
Connection for output dataset.
- inputWarps#
Class used for declaring PipelineTask input connections.
Raises#
- TypeError
Raised if
minimumis greater than one butmultiple=False.- NotImplementedError
Raised if
minimumis zero for a regularInputconnection; this is not currently supported by our QuantumGraph generation algorithm.
- inputs: set[str] = frozenset({'inputWarps', 'psfMatchedWarps', 'selectedVisits', 'skyMap', 'templateExposure'})#
Set with the names of all
connectionTypes.Inputconnection attributes.This is updated automatically as class attributes are added, removed, or replaced in
__init__. Removing entries from this set will cause those connections to be removed after__init__completes, but this is supported only for backwards compatibility; new code should instead just delete the collection attributed directly. After__init__this will be afrozensetand may not be replaced.
- nImage#
Connection for output dataset.
- outputs: set[str] = frozenset({'artifactMasks', 'coaddExposure', 'dcrCoadds', 'dcrNImages', 'inputMap', 'nImage', 'templateCoadd'})#
Set with the names of all
Outputconnection attributes.See
inputsfor additional information.
- prerequisiteInputs: set[str] = frozenset({'brightObjectMask'})#
Set with the names of all
PrerequisiteInputconnection attributes.See
inputsfor additional information.
- psfMatchedWarps#
Class used for declaring PipelineTask input connections.
Raises#
- TypeError
Raised if
minimumis greater than one butmultiple=False.- NotImplementedError
Raised if
minimumis zero for a regularInputconnection; this is not currently supported by our QuantumGraph generation algorithm.
- selectedVisits#
Class used for declaring PipelineTask input connections.
Raises#
- TypeError
Raised if
minimumis greater than one butmultiple=False.- NotImplementedError
Raised if
minimumis zero for a regularInputconnection; this is not currently supported by our QuantumGraph generation algorithm.
- skyMap#
Class used for declaring PipelineTask input connections.
Raises#
- TypeError
Raised if
minimumis greater than one butmultiple=False.- NotImplementedError
Raised if
minimumis zero for a regularInputconnection; this is not currently supported by our QuantumGraph generation algorithm.
- templateCoadd#
Connection for output dataset.
- templateExposure#
Class used for declaring PipelineTask input connections.
Raises#
- TypeError
Raised if
minimumis greater than one butmultiple=False.- NotImplementedError
Raised if
minimumis zero for a regularInputconnection; this is not currently supported by our QuantumGraph generation algorithm.