pynrc.DetectorOps

Class to hold detector operations information. Includes SCA attributes such as detector names and IDs as well as multiaccum class for ramp settings.

Parameters
  • detector (int, str) – NIRCam detector ID (481-490) or SCA ID (A1-B5).

  • wind_mode (str) – Window mode type ‘FULL’, ‘STRIPE’, ‘WINDOW’.

  • xpix (int) – Size of window in x-pixels for frame time calculation.

  • ypix (int) – Size of window in y-pixels for frame time calculation.

  • x0 (int) – Lower-left x-coord position of detector window.

  • y0 (int) – Lower-left y-coord position of detector window.

  • nff (int) – Number of fast row resets.

keyword read_mode

NIRCam Ramp Readout mode such as ‘RAPID’, ‘BRIGHT1’, etc.

kwtype read_mode

str

keyword nint

Number of integrations (ramps).

kwtype nint

int

keyword ngroup

Number of groups in a integration.

kwtype ngroup

int

keyword nf

Number of frames per group.

kwtype nf

int

keyword nd1

Number of drop frame after reset (before first group read).

kwtype nd1

int

keyword nd2

Number of drop frames within a group (ie., groupgap).

kwtype nd2

int

keyword nd3

Number of drop frames after final read frame in ramp.

kwtype nd3

int

Examples

Use kwargs functionality to pass keywords to the multiaccum class.

Send via a dictionary of keywords and values:
>>> kwargs = {'read_mode':'RAPID', 'nint':5, 'ngroup':10}
>>> d = DetectorOps(**kwargs)
Set the keywords directly:
>>> d = DetectorOps(read_mode='RAPID', nint=5, ngroup=10)

Module Attributes

channel

Detector channel 'SW' or 'LW' (inferred from detector ID)

chsize

Size of Amplifier Channel

detid

Selected Detector ID from detectors in the detid_list attribute.

detid_list

Allowed Detector IDs

detname

Selected Detector ID from detectors in the scaid_list attribute.

fastaxis

Fast readout direction in sci coords

mask_act

Active pixel mask for det coordinates

mask_channels

Channel masks for det coordinates

mask_ref

Reference pixel mask for det coordinates

module

NIRCam modules A or B (inferred from detector ID)

nff

Number of fast row resets that occur before Reset Frame

nout

Number of simultaneous detector output channels stripes

ref_info

Array of reference pixel borders [lower, upper, left, right].

scaid

Selected SCA ID from detectors in the scaid_list attribute.

scaid_list

Allowed SCA IDs

slowaxis

Slow readout direction in sci coords

time_exp

Total photon collection time for all ramps.

time_frame

Determine frame time (sec) based on xpix, ypix, and wind_mode.

time_group

Time per group based on time_frame, nf, and nd2.

time_int

Same as time_ramp, except that 'int' follows the JWST nomenclature

time_int_eff

Same as time_ramp_eff, except that 'int' follows the JWST nomenclature

time_ramp

Photon collection time for a single ramp.

time_ramp_eff

Effective ramp time for slope fit tf*(ng-1)

time_row_reset

NFF Row Resets time per integration

time_total

Total exposure acquisition time

time_total_int1

Total time for all frames in first ramp of exposure.

time_total_int2

Total time for all frames in a subsequent ramp.

times_group_avg

Times at each averaged group since reset

wind_mode

Window mode attribute

x0

xpix

y0

ypix