lentil.detector.read_noise#

lentil.detector.read_noise(img, electrons, rng=None, seed=None)[source]#

Apply read noise to a frame

Parameters:
  • img (array_like) – Array of electrons

  • electrons (int) – Read noise per frame

  • rng ({numpy.Generator, None}, optional) – Random number generator to use. If None (default), a new pseudo-random number generator is constructed.

  • seed (None, int, or array_like, optional) – Random seed used to initialize the pseudo-random number generator. If seed is None (default), the seed will be randomly generated from /dev/urandom if available or the system clock.

Returns:

img – Input image with read noise applied

Return type:

ndarray