Combine one or two snaps into a single visit image.
Definition at line 43 of file snapCombine.py.
◆ __init__()
| lsst.pipe.tasks.snapCombine.SnapCombineTask.__init__ |
( |
| self, |
|
|
* | args, |
|
|
** | kwargs ) |
◆ _add_snaps()
| lsst.pipe.tasks.snapCombine.SnapCombineTask._add_snaps |
( |
| self, |
|
|
| snap0, |
|
|
| snap1 ) |
|
protected |
Add two snap exposures together, returning a new exposure.
Parameters
----------
snap0 : `lsst.afw.image.Exposure`
Snap exposure 0.
snap1 : `lsst.afw.image.Exposure`
Snap exposure 1.
Returns
-------
combined : `lsst.afw.image.Exposure`
Combined exposure.
Definition at line 113 of file snapCombine.py.
◆ _merge_visit_info()
| lsst.pipe.tasks.snapCombine.SnapCombineTask._merge_visit_info |
( |
| self, |
|
|
| info0, |
|
|
| info1 ) |
|
protected |
Merge the visitInfo values from the two exposures.
In particular:
* id will be the id of snap 0.
* date will be the average of the dates.
* exposure time will be the sum of the times.
Parameters
----------
info0, info1 : `lsst.afw.image.VisitInfo`
Metadata to combine.
Returns
-------
info : `lsst.afw.image.VisitInfo`
Combined metadata.
Definition at line 147 of file snapCombine.py.
◆ combine()
| lsst.pipe.tasks.snapCombine.SnapCombineTask.combine |
( |
| self, |
|
|
| snap0, |
|
|
| snap1 ) |
Combine two snaps, returning the combined image.
Parameters
----------
snap0, snap1 : `lsst.afw.image.Exposure`
Exposures to combine.
Returns
-------
result : `lsst.pipe.base.Struct`
Results as a struct with attributes:
``exposure``
Snap-combined exposure.
Definition at line 90 of file snapCombine.py.
◆ run()
| lsst.pipe.tasks.snapCombine.SnapCombineTask.run |
( |
| self, |
|
|
| exposures ) |
Combine one or two snaps, returning the combined image.
Parameters
----------
exposures : `lsst.afw.image.Exposure` or `list` [`lsst.afw.image.Exposure`]
One or two exposures to combine as snaps.
Returns
-------
result : `lsst.pipe.base.Struct`
Results as a struct with attributes:
``exposure``
Snap-combined exposure.
Raises
------
RuntimeError
Raised if input argument does not contain either 1 or 2 exposures.
Definition at line 54 of file snapCombine.py.
◆ _DefaultName
| str lsst.pipe.tasks.snapCombine.SnapCombineTask._DefaultName = "snapCombine" |
|
staticprotected |
◆ ConfigClass
The documentation for this class was generated from the following file: