makeImageFromAmp

lsst.afw.cameraGeom.utils.makeImageFromAmp(amp, imValue=None, imageFactory=<class 'lsst.afw.image.image.ImageU'>, markSize=10, markValue=0, scaleGain=<function <lambda>>)

Make an image from an amp object.

Since images are integer images by default, the gain needs to be scaled to give enough dynamic range to see variation from amp to amp. The scaling algorithm is assignable.

Parameters:
amplsst.afw.table.AmpInfoRecord

Amp record to use for constructing the raw amp image.

imValuefloat or None

Value to assign to the constructed image, or scaleGain(gain) if None.

imageFactorycallable like lsst.afw.image.Image

Type of image to construct.

markSizefloat

Size of mark at read corner in pixels.

markValuefloat

Value of pixels in the read corner mark.

scaleGaincallable

The function by which to scale the gain (must take a single argument).

Returns:
ampImagelsst.afw.image

An untrimmed amp image, of the type produced by imageFactory.