lsst.ip.isr  21.0.0-15-gfb99f82+9e2f6ff707
Classes | Functions
lsst.ip.isr.isrQa Namespace Reference

Classes

class  IsrQaFlatnessConfig
 
class  IsrQaConfig
 

Functions

def makeThumbnail (exposure, isrQaConfig=None)
 
def writeThumbnail (dataRef, thumb, dataset)
 

Function Documentation

◆ makeThumbnail()

def lsst.ip.isr.isrQa.makeThumbnail (   exposure,
  isrQaConfig = None 
)
Create a snapshot thumbnail from input exposure.

The output thumbnail image is constructed based on the parameters
in the configuration file.  Currently, the asinh mapping is the
only mapping method used.

Parameters
----------
exposure : `lsst.afw.image.Exposure`
    The exposure to be converted into a thumbnail.
isrQaConfig : `Config`
    Configuration object containing all parameters to control the
    thumbnail generation.

Returns
-------
rgbImage : `numpy.ndarray`
    Binned and scaled version of the exposure, converted to an
    integer array to allow it to be written as PNG.

Definition at line 119 of file isrQa.py.

◆ writeThumbnail()

def lsst.ip.isr.isrQa.writeThumbnail (   dataRef,
  thumb,
  dataset 
)
Write snapshot thumbnail to disk.

Parameters
----------
dataRef : `daf.persistence.butlerSubset.ButlerDataRef`
    Butler dataref to use to construct the output filename.
thumb : `numpy.ndarray`
    Binned and scaled image to be written as a PNG.
dataset : `str`
    String containing the dataset for this thumbnail.

Raises
------
OSError
    Raised if the output directory cannot be created and does not
    exist.

Definition at line 161 of file isrQa.py.