Detector (lentil.detector)#

Charge collection#

detector.collect_charge(img, wave, qe[, ...])

Convert photon count (or flux) to electron count (or flux) by applying the detector's wavelength-dependent quantum efficiency.

detector.collect_charge_bayer(img, wave, ...)

Convert photon count (or flux) to electron count (or flux) by applying the detector's wavelength-dependent quantum efficiency.

Pixel effects#

detector.pixel(img[, oversample])

Apply the aperture effects of a square pixel on a discretely sampled image.

detector.pixelate(img, oversample)

Convolve an image with the pixel MTF and rescale the result to native sampling

Noise#

detector.shot_noise(img[, method, seed])

Apply shot noise to an image

detector.read_noise(img, electrons[, seed])

Apply read noise to a frame

detector.charge_diffusion(img, sigma[, ...])

Apply charge diffusion represented by a Gaussian blur

detector.dark_current(rate[, shape, ...])

Create dark current frame

detector.rule07_dark_current(temperature, ...)

Create dark current frame for HgCdTe infrared detectors using Rule 07

Readout#

detector.adc(img, gain[, ...])

Analog to digital conversion

Cosmic rays#

detector.cosmic_rays(shape, pixelscale, ts)

Cosmic ray generator for simulating cosmic ray hits on a detector.