lsst.pipe.tasks gcf790cdeb6+e07a3617c0
Loading...
Searching...
No Matches
lsst.pipe.tasks.prettyPictureMaker._task.PrettyMosaicTask Class Reference
Inheritance diagram for lsst.pipe.tasks.prettyPictureMaker._task.PrettyMosaicTask:

Public Member Functions

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)
 

Public Attributes

 imageHandle = tempfile.NamedTemporaryFile(dir="." if self.config.useLocalTemp else None)
 
 maskHandle = tempfile.NamedTemporaryFile(dir="." if self.config.useLocalTemp else None)
 

Static Public Attributes

 ConfigClass = PrettyMosaicConfig
 

Static Protected Attributes

str _DefaultName = "prettyMosaic"
 

Detailed Description

Combines multiple RGB arrays into one mosaic.

Definition at line 1062 of file _task.py.

Member Function Documentation

◆ 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 )

Definition at line 1207 of file _task.py.

Member Data Documentation

◆ _DefaultName

str lsst.pipe.tasks.prettyPictureMaker._task.PrettyMosaicTask._DefaultName = "prettyMosaic"
staticprotected

Definition at line 1065 of file _task.py.

◆ ConfigClass

lsst.pipe.tasks.prettyPictureMaker._task.PrettyMosaicTask.ConfigClass = PrettyMosaicConfig
static

Definition at line 1066 of file _task.py.

◆ imageHandle

lsst.pipe.tasks.prettyPictureMaker._task.PrettyMosaicTask.imageHandle = tempfile.NamedTemporaryFile(dir="." if self.config.useLocalTemp else None)

Definition at line 1144 of file _task.py.

◆ maskHandle

lsst.pipe.tasks.prettyPictureMaker._task.PrettyMosaicTask.maskHandle = tempfile.NamedTemporaryFile(dir="." if self.config.useLocalTemp else None)

Definition at line 1145 of file _task.py.


The documentation for this class was generated from the following file: