pynrc.simul.ngNRC.slope_to_level1b¶
- pynrc.simul.ngNRC.slope_to_level1b(im_slope, obs_params, cal_obj=None, save_dir=None, cframe='sci', out_ADU=True, **kwargs)[source]¶
Simulate DMS HDUList from slope image
Requires input of obs_params input dictionary as generated from APT input files (see DMS_input class in apt.py).
Also, make sure the calib directory exists in PYNRC_PATH and is populated with detector calibration information.
Look at keyword args to exclude specific detector effects.
Output is saved to disk and will not be returned by the function.
- Parameters
im_slope (ndarray) – Slope in e-/sec of image from all sky sources, including Zodiacal background. Should exclude dark current background, which is handled separately from calib directory.
obs_params (dict) – Dictionary of parameters to populate DMS header. See create_DMS_HDUList in dms.py.
cal_obj (
pynrc.nircam_cal
) – DMS object built from exported APT files. See DMS_input in apt.py.save_dir (None or str) – Option to override output directory as specified in obs_params dictionary. If not specified as either a function keyword or in obs_params, then files are saved in current working directory.
cframe (str) – Coordinate frame of input slope, ‘sci’ or ‘det’.
- Keyword Arguments
include_dark (bool) – Add dark current?
include_bias (bool) – Add detector bias?
include_ktc (bool) – Add kTC noise?
include_rn (bool) – Add readout noise per frame?
include_cpink (bool) – Add correlated 1/f noise to all amplifiers?
include_upink (bool) – Add uncorrelated 1/f noise to each amplifier?
include_acn (bool) – Add alternating column noise?
apply_ipc (bool) – Include interpixel capacitance?
apply_ppc (bool) – Apply post-pixel coupling to linear analog signal?
include_refoffsets (bool) – Include reference offests between amplifiers and odd/even columns?
include_refinst (bool) – Include reference/active pixel instabilities?
include_colnoise (bool) – Add in column noise per integration?
col_noise (ndarray or None) – Option to explicitly specify column noise distribution in order to shift by one for subsequent integrations
amp_crosstalk (bool) – Crosstalk between amplifiers?
add_crs (bool) – Add cosmic ray events? See Robberto et al 2010 (JWST-STScI-001928).
cr_model (str) – Cosmic ray model to use: ‘SUNMAX’, ‘SUNMIN’, or ‘FLARES’.
cr_scale (float) – Scale factor for probabilities.
latents (None) – Apply persistence.
apply_nonlinearity (bool) – Apply non-linearity?
random_nonlin (bool) – Add randomness to the linearity coefficients?
prog_bar (bool) – Show a progress bar for this ramp generation?