pynrc.simul.ngNRC

ngNRC - NIRCam Detector Noise Simulator

Modification History:

Nov 2021
  • Auto-generate source tables from Gaia DR2 or Simbad queries

  • Add WFE drifts.

Oct 2021
  • Use numpy random number generator objects to produce repeatable results.

Sept 2021
  • Major refactor, splitting out slope_to_level1b and slope_to_fitswriter

  • Added linearity, flat fields, and cosmic rays

Apr 2021
  • Deprecate nghxrg, SCANoise, and slope_to_ramp

  • Instead use slope_to_ramps

Oct 2020
  • Restructure det noise and ramp creation

  • DMS simulations using JWST pipeline data models

Feb 2017
  • Add ngNRC to pyNRC code base

Aug 2016, J.M. Leisenring, UA/Steward
  • Modified how the detector and multiaccum info is handled

  • Copied detector and multiaccum classes from pyNRC

  • In the future, we will want to integrate this directly so that any changes made in the pyNRC classes are accounted.

July 2016, J.M. Leisenring, UA/Steward
  • Updated many things and more for nghxrg (v3.0)

Feb 2016, J.M. Leisenring, UA/Steward
  • First Release

Functions

add_col_noise(data_in, ...[, rand_seed])

Add RTN Column Noise

add_cosmic_rays(data[, scenario, scale, ...])

Add random cosmic rays to data cube

add_ipc(im[, alpha_min, alpha_max, kernel])

Convolve image with IPC kernel

add_ppc(im[, ppc_frac, nchans, kernel, ...])

Add Post-Pixel Coupling (PPC)

add_xtalk(data, det[, coeffs])

Add amplifier crosstalk to each frame in data cube

apply_flat(cube, det, imflat_full)

Apply flat field

create_level1b_FITS(sim_config[, detname, ...])

Generate Level1b DMS-like FITS files.

fft_noise(pow_spec[, nstep_out, fmin, f, ...])

Random Noise from Power Spectrum

gen_col_noise(ramp_column_varations, prob_bad)

Generate RTN Column Noise

gen_dark_ramp(dark, out_shape[, tf, gain, ...])

Assumes a constant dark current rate, either in image form or single value.

gen_ramp_biases(ref_dict[, nchan, ...])

Generate a ramp of bias offsets

gen_wfe_drift(obs_input[, case, iec_period, ...])

Create WFE drift information over time

make_gaia_source_table(coords[, ...])

Create source table from GAIA DR2 query

make_ramp_poisson(im_slope, det[, out_ADU, ...])

Create a ramp with only photon noise.

make_simbad_source_table(coords[, ...])

pink_noise(nstep_out[, pow_spec, f, fmin, alpha])

Generate random pink noise

save_slope_image(im_slope, obs_params[, ...])

Save slope image as Level1b-like FITS

sim_dark_ramp(det, slope_image[, ...])

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

sim_image_ramp(det, im_slope[, verbose])

Simulate an image ramp based on input det class and slope image.

sim_noise_data(det[, rd_noise, u_pink, ...])

Simulate Noise Ramp

simulate_detector_ramp(det, cal_obj[, ...])

Return a single simulated ramp

slope_to_fitswriter(det, cal_obj[, ...])

Simulate HDUList from slope image

slope_to_level1b(im_slope, obs_params[, ...])

Simulate DMS HDUList from slope image

sources_to_level1b(source_table, nircam_obj, ...)

Simulate DMS HDUList from slope image

sources_to_slope(source_table, nircam_obj, ...)

Create a slope image from a table or sources

xtalk_image(frame, det[, coeffs])

Create image of crosstalk signal