LSST Applications g0b6bd0c080+a72a5dd7e6,g1182afd7b4+2a019aa3bb,g17e5ecfddb+2b8207f7de,g1d67935e3f+06cf436103,g38293774b4+ac198e9f13,g396055baef+6a2097e274,g3b44f30a73+6611e0205b,g480783c3b1+98f8679e14,g48ccf36440+89c08d0516,g4b93dc025c+98f8679e14,g5c4744a4d9+a302e8c7f0,g613e996a0d+e1c447f2e0,g6c8d09e9e7+25247a063c,g7271f0639c+98f8679e14,g7a9cd813b8+124095ede6,g9d27549199+a302e8c7f0,ga1cf026fa3+ac198e9f13,ga32aa97882+7403ac30ac,ga786bb30fb+7a139211af,gaa63f70f4e+9994eb9896,gabf319e997+ade567573c,gba47b54d5d+94dc90c3ea,gbec6a3398f+06cf436103,gc6308e37c7+07dd123edb,gc655b1545f+ade567573c,gcc9029db3c+ab229f5caf,gd01420fc67+06cf436103,gd877ba84e5+06cf436103,gdb4cecd868+6f279b5b48,ge2d134c3d5+cc4dbb2e3f,ge448b5faa6+86d1ceac1d,gecc7e12556+98f8679e14,gf3ee170dca+25247a063c,gf4ac96e456+ade567573c,gf9f5ea5b4d+ac198e9f13,gff490e6085+8c2580be5c,w.2022.27
LSST Data Management Base Package
Public Member Functions | Static Public Attributes | List of all members
lsst.pipe.tasks.visualizeVisit.VisualizeMosaicExpTask Class Reference
Inheritance diagram for lsst.pipe.tasks.visualizeVisit.VisualizeMosaicExpTask:

Public Member Functions

def makeCameraImage (self, inputExps, camera, binning)
 
def run (self, inputExps, camera)
 

Static Public Attributes

 ConfigClass = VisualizeMosaicExpConfig
 

Detailed Description

Task to mosaic binned products.

The config.binning parameter must match that used in the
VisualizeBinExpTask.  Otherwise there will be a mismatch between
the input image size and the expected size of that image in the
full focal plane frame.

Definition at line 156 of file visualizeVisit.py.

Member Function Documentation

◆ makeCameraImage()

def lsst.pipe.tasks.visualizeVisit.VisualizeMosaicExpTask.makeCameraImage (   self,
  inputExps,
  camera,
  binning 
)
Make an image of an entire focal plane.

Parameters
----------
exposures: `dict` [`int`, `lsst.afw.image.Exposure`]
    CCD exposures, binned by `binning`.  The keys are the
    detectorIDs, with the values the binned image exposure.

Returns
-------
image : `lsst.afw.image.Image`
    Image mosaicked from the individual binned images for each
    detector.

Definition at line 168 of file visualizeVisit.py.

168 def makeCameraImage(self, inputExps, camera, binning):
169 """Make an image of an entire focal plane.
170
171 Parameters
172 ----------
173 exposures: `dict` [`int`, `lsst.afw.image.Exposure`]
174 CCD exposures, binned by `binning`. The keys are the
175 detectorIDs, with the values the binned image exposure.
176
177 Returns
178 -------
179 image : `lsst.afw.image.Image`
180 Image mosaicked from the individual binned images for each
181 detector.
182 """
183 image = afwUtils.makeImageFromCamera(
184 camera,
185 imageSource=ImageSource(inputExps),
186 imageFactory=afwImage.ImageF,
187 binSize=binning
188 )
189 return image
190
A class to contain the data, WCS, and other information needed to describe an image of the sky.
Definition: Exposure.h:72
A class to represent a 2-dimensional array of pixels.
Definition: Image.h:51
def makeCameraImage(camera, exposures, binning)

◆ run()

def lsst.pipe.tasks.visualizeVisit.VisualizeMosaicExpTask.run (   self,
  inputExps,
  camera 
)
Mosaic inputs together to create focal plane image.

Parameters
----------
inputExp : `list` [`lsst.afw.image.Exposure`]
    Input exposure data to bin.
camera : `lsst.afw.cameraGeom.Camera`
    Input camera to use for mosaic geometry.

Returns
-------
output : `lsst.pipe.base.Struct`
    Results struct with attribute:

    ``outputExp``
        Binned version of input image (`lsst.afw.image.Exposure`).

Definition at line 191 of file visualizeVisit.py.

191 def run(self, inputExps, camera):
192 """Mosaic inputs together to create focal plane image.
193
194 Parameters
195 ----------
196 inputExp : `list` [`lsst.afw.image.Exposure`]
197 Input exposure data to bin.
199 Input camera to use for mosaic geometry.
200
201 Returns
202 -------
203 output : `lsst.pipe.base.Struct`
204 Results struct with attribute:
205
206 ``outputExp``
207 Binned version of input image (`lsst.afw.image.Exposure`).
208 """
209 expDict = {exp.getDetector().getId(): exp for exp in inputExps}
210 image = self.makeCameraImage(expDict, camera, self.config.binning)
211
212 return pipeBase.Struct(
213 outputData=image,
214 )
215
216
An immutable representation of a camera.
Definition: Camera.h:43
def run(self, coaddExposures, bbox, wcs, dataIds, **kwargs)
Definition: getTemplate.py:596

Member Data Documentation

◆ ConfigClass

lsst.pipe.tasks.visualizeVisit.VisualizeMosaicExpTask.ConfigClass = VisualizeMosaicExpConfig
static

Definition at line 165 of file visualizeVisit.py.


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