|
| 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) |
|
|
str | _DefaultName = "prettyMosaic" |
Combines multiple RGB arrays into one mosaic.
◆ 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.
◆ 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``.
The documentation for this class was generated from the following file:
- python/lsst/pipe/tasks/prettyPictureMaker/_task.py