|
lsst.ip.isr
18.1.0-14-gd04256d+18
|
Classes | |
| class | IsrQaConfig |
| class | IsrQaFlatnessConfig |
Functions | |
| def | makeThumbnail (exposure, isrQaConfig=None) |
| def | writeThumbnail (dataRef, thumb, dataset) |
| 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.
| 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.
1.8.13