pynrc.simul.ngNRC.sim_dark_ramp

pynrc.simul.ngNRC.sim_dark_ramp(det, slope_image, ramp_avg_ch=None, ramp_avg_tf=10.73677, out_ADU=False, verbose=False, **kwargs)[source]

Simulate a dark current ramp based on input det class and a super dark image.

By default, returns ramp in terms of e- using gain information provide in det input. To return in terms of ADU, set out_ADU=True (divides by gain).

Parameters
  • det (Detector Class) – Desired detector class output

  • slope_image (ndarray) – Input slope image (DN/sec). Can either be full frame or match det subarray. Returns det subarray shape.

Keyword Arguments
  • ramp_avg_ch (ndarray or None) – Time-dependent flux of average dark ramp for each amplifier channel for dark current simulations.

  • ramp_avg_tf (float) – Delta time between between ramp_avg_ch points.

  • out_ADU (bool) – Divide by gain to get value in ADU (float).

  • include_poisson (bool) – Include Poisson noise from photons?

  • verbose (bool) – Print some messages.