IsrMockConfig#

class lsst.ip.isr.IsrMockConfig(*args, **kw)#

Bases: Config

Configuration parameters for isrMock.

These parameters produce generic fixed position signals from various sources, and combine them in a way that matches how those signals are combined to create real data. The camera used is the test camera defined by the afwUtils code.

Attributes Summary

biasLevel

Background contribution to be generated from the bias offset in adu.

brighterFatterCalibType

Type of calibration to generate if doGenerateData=True, otherwise ignored.

darkRate

Background level contribution (in electron/s) to be generated from dark current.

darkTime

Exposure time for the dark current contribution.

detectorIndex

Index for the detector to use.

doAddBias

Add bias signal to data.

doAddCrosstalk

Apply simulated crosstalk to output image.

doAddDark

Add dark signal to data.

doAddFlat

Add flat signal to data.

doAddFringe

Add fringe signal to data.

doAddOverscan

If untrimmed, add overscan ramp to overscan and data regions.

doAddSky

Apply 'sky' signal to output image.

doAddSource

Add simulated source to output image.

doBrighterFatter

Return a simulated brighter-fatter kernel.

doCrosstalkCoeffs

Return the matrix of crosstalk coefficients.

doDataRef

Return a simulated gen2 butler dataRef.

doDefects

Return a simulated defect list.

doDeferredCharge

Return a simulated deferred charge calibration.

doGenerateAmpDict

Return a dict of exposure amplifiers instead of an afwImage.Exposure.

doGenerateData

Return a non-image data structure if True.

doGenerateImage

Return the generated output image if True.

doLinearizer

Return linearizer dataset.

doTransmissionCurve

Return a simulated transmission curve.

expTime

Exposure time for simulated data.

flatDrop

Fractional flux drop due to flat from center to edge of detector along x-axis.

fringeScale

Peak fluxes for the components of the fringe ripple in adu (IsrTask) or electron (IsrTaskLSST).

fringeX0

Center position for the fringe ripples.

fringeY0

Center position for the fringe ripples.

gain

Gain for simulated data in electron/adu.

isLsstLike

If True, products have one raw image per amplifier, otherwise, one raw image per detector.

isTrimmed

If True, amplifiers have been trimmed and mosaicked to remove regions outside the data BBox.

overscanScale

Amplitude of the ramp function to add to overscan data in adu (IsrTask) or electron (IsrTaskLSST) (float, default 100.0)

plateScale

Plate scale used in constructing mock camera.

radialDistortion

Radial distortion term used in constructing mock camera.

readNoise

Read noise of the detector in electron.

rngSeed

Seed for random number generator used to add noise.

skyLevel

Background contribution to be generated from 'the sky' in adu (IsrTask) or electron (IsrTaskLSST).

sourceAmp

Amplifier to place simulated 'astronomical sources'.

sourceFlux

Peak flux level of simulated 'astronomical sources' in adu (IsrTask) or electron (IsrTaskLSST).

sourceX

Peak position (in amplifier coordinates) of simulated 'astronomical sources'.

sourceY

Peak position (in amplifier coordinates) of simulated 'astronomical sources'.

Attributes Documentation

biasLevel#

Background contribution to be generated from the bias offset in adu. (float, default 8000.0)

brighterFatterCalibType#

Type of calibration to generate if doGenerateData=True, otherwise ignored. (str, default 'KERNEL')

Allowed values:

'KERNEL'

No default suspect values; only config overrides will be used.

'ELECTROSTATIC'

Use the default from the camera model (old defaults).

'None'

Field is optional

darkRate#

Background level contribution (in electron/s) to be generated from dark current. (float, default 5.0)

darkTime#

Exposure time for the dark current contribution. (float, default 5.0)

detectorIndex#

Index for the detector to use. The default value uses a standard 2x4 array of amps. (int, default 20)

doAddBias#

Add bias signal to data. (bool, default True)

doAddCrosstalk#

Apply simulated crosstalk to output image. This cannot be corrected by ISR, as detector.hasCrosstalk()==False. (bool, default False)

doAddDark#

Add dark signal to data. (bool, default True)

doAddFlat#

Add flat signal to data. (bool, default True)

doAddFringe#

Add fringe signal to data. (bool, default True)

doAddOverscan#

If untrimmed, add overscan ramp to overscan and data regions. (bool, default True)

doAddSky#

Apply ‘sky’ signal to output image. (bool, default True)

doAddSource#

Add simulated source to output image. (bool, default True)

doBrighterFatter#

Return a simulated brighter-fatter kernel. (bool, default False)

doCrosstalkCoeffs#

Return the matrix of crosstalk coefficients. (bool, default False)

doDataRef#

Return a simulated gen2 butler dataRef. (bool, default False)

doDefects#

Return a simulated defect list. (bool, default False)

doDeferredCharge#

Return a simulated deferred charge calibration. (bool, default False)

doGenerateAmpDict#

Return a dict of exposure amplifiers instead of an afwImage.Exposure. (bool, default False)

doGenerateData#

Return a non-image data structure if True. (bool, default False)

doGenerateImage#

Return the generated output image if True. (bool, default False)

doLinearizer#

Return linearizer dataset. (bool, default False)

doTransmissionCurve#

Return a simulated transmission curve. (bool, default False)

expTime#

Exposure time for simulated data. (float, default 5.0)

flatDrop#

Fractional flux drop due to flat from center to edge of detector along x-axis. (float, default 0.1)

fringeScale#

Peak fluxes for the components of the fringe ripple in adu (IsrTask) or electron (IsrTaskLSST). (List, default [200.0])

fringeX0#

Center position for the fringe ripples. (List, default [-100])

fringeY0#

Center position for the fringe ripples. (List, default [0])

gain#

Gain for simulated data in electron/adu. (float, default 1.0)

isLsstLike#

If True, products have one raw image per amplifier, otherwise, one raw image per detector. (bool, default False)

isTrimmed#

If True, amplifiers have been trimmed and mosaicked to remove regions outside the data BBox. (bool, default True)

overscanScale#

Amplitude of the ramp function to add to overscan data in adu (IsrTask) or electron (IsrTaskLSST) (float, default 100.0)

plateScale#

Plate scale used in constructing mock camera. (float, default 20.0)

radialDistortion#

Radial distortion term used in constructing mock camera. (float, default 0.925)

readNoise#

Read noise of the detector in electron. (float, default 5.0)

rngSeed#

Seed for random number generator used to add noise. (int, default 20000913)

skyLevel#

Background contribution to be generated from ‘the sky’ in adu (IsrTask) or electron (IsrTaskLSST). (float, default 1000.0)

sourceAmp#

Amplifier to place simulated ‘astronomical sources’. (List, default [0])

sourceFlux#

Peak flux level of simulated ‘astronomical sources’ in adu (IsrTask) or electron (IsrTaskLSST). (List, default [45000.0])

sourceX#

Peak position (in amplifier coordinates) of simulated ‘astronomical sources’. (List, default [50.0])

sourceY#

Peak position (in amplifier coordinates) of simulated ‘astronomical sources’. (List, default [25.0])