|
| Struct | run (self, Iterable[DeferredDatasetHandle] inputRGB, BaseSkyMap skyMap, Iterable[DeferredDatasetHandle] inputRGBMask) |
| |
| None | runQuantum (self, QuantumContext butlerQC, InputQuantizedConnection inputRefs, OutputQuantizedConnection outputRefs) |
| |
| Iterable[DeferredDatasetHandle] | makeInputsFromArrays (self, Iterable[tuple[Mapping[str, Any], NDArray]] inputs) |
| |
|
| | imageHandle = tempfile.NamedTemporaryFile(dir="." if self.config.useLocalTemp else None) |
| |
| | maskHandle = tempfile.NamedTemporaryFile(dir="." if self.config.useLocalTemp else None) |
| |
Combines multiple RGB arrays into one mosaic.
Definition at line 1062 of file _task.py.
◆ makeInputsFromArrays()
| Iterable[DeferredDatasetHandle] lsst.pipe.tasks.prettyPictureMaker._task.PrettyMosaicTask.makeInputsFromArrays |
( |
| self, |
|
|
Iterable[tuple[Mapping[str, Any], NDArray]]
| inputs ) |
Make valid inputs for the run method from numpy arrays.
Parameters
----------
inputs : `Iterable` of `tuple` of `Mapping` and `numpy.ndarray`
An iterable where each element is a tuple with the first
element is a mapping that corresponds to an arrays dataId,
and the second is an `numpy.ndarray`.
Returns
-------
sortedImages : `Iterable` of `~lsst.daf.butler.DeferredDatasetHandle`
An iterable of `~lsst.daf.butler.DeferredDatasetHandle`\ s
containing the input data.
Definition at line 1221 of file _task.py.
◆ run()
| Struct lsst.pipe.tasks.prettyPictureMaker._task.PrettyMosaicTask.run |
( |
| self, |
|
|
Iterable[DeferredDatasetHandle] | inputRGB, |
|
|
BaseSkyMap | skyMap, |
|
|
Iterable[DeferredDatasetHandle] | inputRGBMask ) |
Assemble individual `numpy.ndarrays` into a mosaic.
Each input is a `~lsst.daf.butler.DeferredDatasetHandle` because
they're loaded in one at a time to be placed into the mosaic to save
memory.
Parameters
----------
inputRGB : `Iterable` of `~lsst.daf.butler.DeferredDatasetHandle`
`~lsst.daf.butler.DeferredDatasetHandle`\ s pointing to RGB
`numpy.ndarrays`.
skyMap : `BaseSkyMap`
The skymap that defines the relative position of each of the input
images.
inputRGBMask : `Iterable` of `~lsst.daf.butler.DeferredDatasetHandle`
`~lsst.daf.butler.DeferredDatasetHandle`\ s pointing to masks for
each of the corresponding images.
Returns
-------
result : `Struct`
The `Struct` containing the combined mosaic. The `Struct` has
and attribute named ``outputRGBMosaic``.
Definition at line 1070 of file _task.py.
◆ runQuantum()
| None lsst.pipe.tasks.prettyPictureMaker._task.PrettyMosaicTask.runQuantum |
( |
| self, |
|
|
QuantumContext | butlerQC, |
|
|
InputQuantizedConnection | inputRefs, |
|
|
OutputQuantizedConnection | outputRefs ) |
◆ _DefaultName
| str lsst.pipe.tasks.prettyPictureMaker._task.PrettyMosaicTask._DefaultName = "prettyMosaic" |
|
staticprotected |
◆ ConfigClass
| lsst.pipe.tasks.prettyPictureMaker._task.PrettyMosaicTask.ConfigClass = PrettyMosaicConfig |
|
static |
◆ imageHandle
| lsst.pipe.tasks.prettyPictureMaker._task.PrettyMosaicTask.imageHandle = tempfile.NamedTemporaryFile(dir="." if self.config.useLocalTemp else None) |
◆ maskHandle
| lsst.pipe.tasks.prettyPictureMaker._task.PrettyMosaicTask.maskHandle = tempfile.NamedTemporaryFile(dir="." if self.config.useLocalTemp else None) |
The documentation for this class was generated from the following file:
- python/lsst/pipe/tasks/prettyPictureMaker/_task.py