|
lsst.pipe.tasks g2c8cee2ce7+a177a69160
|
Public Member Functions | |
| __init__ (self, *args, **kwargs) | |
| run (self, exposures) | |
| combine (self, snap0, snap1) | |
Static Public Attributes | |
| ConfigClass = SnapCombineConfig | |
Protected Member Functions | |
| _add_snaps (self, snap0, snap1) | |
| _merge_visit_info (self, info0, info1) | |
Static Protected Attributes | |
| str | _DefaultName = "snapCombine" |
Combine one or two snaps into a single visit image.
Definition at line 43 of file snapCombine.py.
| lsst.pipe.tasks.snapCombine.SnapCombineTask.__init__ | ( | self, | |
| * | args, | ||
| ** | kwargs ) |
Definition at line 50 of file snapCombine.py.
|
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.
|
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.
| 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.
| 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.
|
staticprotected |
Definition at line 48 of file snapCombine.py.
|
static |
Definition at line 47 of file snapCombine.py.