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
Detector channel 'SW' or 'LW' (inferred from detector ID) |
|
Size of Amplifier Channel |
|
Selected Detector ID from detectors in the detid_list attribute. |
|
Allowed Detector IDs |
|
Selected Detector ID from detectors in the scaid_list attribute. |
|
Fast readout direction in sci coords |
|
Active pixel mask for det coordinates |
|
Channel masks for det coordinates |
|
Reference pixel mask for det coordinates |
|
NIRCam modules A or B (inferred from detector ID) |
|
Number of fast row resets that occur before Reset Frame |
|
Number of simultaneous detector output channels stripes |
|
Array of reference pixel borders [lower, upper, left, right]. |
|
Selected SCA ID from detectors in the scaid_list attribute. |
|
Allowed SCA IDs |
|
Slow readout direction in sci coords |
|
Total photon collection time for all ramps. |
|
Determine frame time (sec) based on xpix, ypix, and wind_mode. |
|
Time per group based on time_frame, nf, and nd2. |
|
Same as time_ramp, except that 'int' follows the JWST nomenclature |
|
Same as time_ramp_eff, except that 'int' follows the JWST nomenclature |
|
Photon collection time for a single ramp. |
|
Effective ramp time for slope fit tf*(ng-1) |
|
NFF Row Resets time per integration |
|
Total exposure acquisition time |
|
Total time for all frames in first ramp of exposure. |
|
Total time for all frames in a subsequent ramp. |
|
Times at each averaged group since reset |
|
Window mode attribute |
|