pynrc.simul.ngNRC.apply_flat¶
- pynrc.simul.ngNRC.apply_flat(cube, det, imflat_full)[source]¶
Apply flat field
Includes pixel-to-pixel QE variations or instrument’s optical flatfield (e.g., throughput variations across the field).
- Parameters
cube (ndarray) – Simulated ramp data in e-. These should be intrinsic flux values with Poisson noise, but prior to read noise, kTC, IPC, etc. Size (nz,ny,nx). In det coords. Can either be full frame or match det subarray. Returns det subarray shape.
det (Detector Class) – Desired detector class output
imflat_full (ndarray) – Full field image of flat field in det coords. Will get trimmed if necessary.