NIRSpec Detector Readout Modes and Patterns

On this page

NIRSpec supports 2 readout patterns in each of its 2 readout modes: traditional and improved reference sampling and subtraction (IRS2). The traditional detector readout mode is the same one that is used by the JWST NIRCam and NIRISS instruments. However, ground test characterization of the NIRSpec detectors showed that the traditional readout did not meet the more stringent noise requirements for NIR spectroscopy of faint targets (<6 e total noise, measured over ~1000 s long dark exposures).

As a result, a more sophisticated readout method was devised by the NASA Goddard detector characterization team, called improved reference sampling and subtraction (IRS2, Rauscher et al. 2012). This IRS2 readout mode has a much improved correlated noise performance, and is particularly beneficial for long observations of faint targets. For both the traditional and IRS2 readouts modes, 2 readout pattern options are offered which allow users to either save all individual frames, or to save the averaged groups of frames, as described in the NIRSpec Detector Readout article.

This page includes:

For more detailed information, see these associated articles:

A comparison of NIRSpec traditional vs. IRSreadouts

Figure 1 presents data characteristics of the traditional and IRS2 NIRSpec detector readout modes. Table 1 summarizes the readout patterns available in each of these modes and some key properties. Note that the IRS2 readout cannot be used with subarrays. The best choice of readout pattern should be made using the NIRSpec Detector Recommended Strategies article, and checking the ETC with specific target brightness and noise properties.

 Use of the IRS2 detector readout pattern options are recommended for all full frame NIRSpec integrations that are not in danger of saturating the detector.

Figure 1. Traditional vs. IRS2 data structure

Traditional vs. IRS2 data structure

The raw (level 1) data structure of the traditional readout (left) versus IRS2 detector readout (right). The data acquired with traditional readout contain a "frame" of 4 reference pixels surrounding the (2040 × 2040) regular (i.e., light-sensitive) pixels used for science. The IRS2 readout, in contrast, includes additional information: it intersperses extra reads of reference pixels within the sequence of regular pixels, and also records a 5th reference output channel, resulting in a frame size of 3200 × 2048. Note that the data pipeline will process these exposures to the normal (2048 × 2048) size, so that users will not encounter this data format unless they download the level 1 data in order to repeat the calwebb_detector1 portion of the pipeline.

Table 1. Available NIRSpec detector readout patterns

Detector readout mode

NIRSpec readout pattern name

Nframes per group

Group time (s)

Unprocessed data size (one integration)


2048 pixels × 2048 pixels x Ngroups
NRSRAPIDD1 †,‡121.474
NRSRAPIDD2 †,*132.210
NRSRAPIDD6 §,¶175.159



114.5893200 pixels × 2048 pixels x Ngroups

NRSRAPIDD1 and NRSRAPIDD2 are used for MSATA target acquisition only.

NRSRAPIDD1 reads one frame and drops one.

* NRSRAPIDD2 reads one frame and drops two.

§ NRSRAPIDD6 reads one frame and drops six.

NRSRAPIDD6 is available for TA only (WATA or MSATA).

Words in bold are GUI menus/
panels or data software packages; 
bold italics are buttons in GUI
tools or package parameters.

In general, switching between traditional and IRS2 readout modes or between full frame and subarrays between science exposures within the same observation/visit is not recommended because of the possibility of thermal transients. On the other hand, while target acquisition can only be done using the traditional (NRSRAPID, NRSRAPIDD1, NRSRAPIDD2, or NRSRAPIDD6) readout patterns, the noise performance benefits of switching to IRS2 for the science exposures following target acquisition outweigh the concern of temporary thermal transients on the detector, especially for long exposures on faint targets.

Performance of NIRSpec traditional vs. IRS2 readouts

Because of its improved noise performance, the IRS2 readout mode is recommended for all full frame NIRSpec exposures in MOSIFU, and FS observing modes that are not in danger of saturating the detector.

The IRS2 detector readout results in raw data that is 3200 × 2048 pixels per frame, compared to the standard 2048 × 2048 pixels in traditional readout data (Figure 1). The IRS2 readout mode includes increased sampling of reference pixels and recorded reference output information, and is described in more detail on the IRS2 readout mode page. The main benefit of IRS2 mode is the reduction in correlated (1/f) noise which causes the "striping" which is shown clearly in Figure 2. Reducing 1/f noise is very important, especially when using distant shutters for obtaining spectra of the sky background. Table 2 presents the noise characteristics for the two NIRSpec detectors using traditional vs. IRS2 readout. The total noise is slightly improved in IRS2 mode (for the whole focal plane array) and it offers significantly reduced 1/f (or correlated) noise, as is evident from Figures 2 and 3 below.

For science observations that might saturate NIRSpec, the best choice of readout pattern should be made by following the guidelines presented in the NIRSpec Detector Recommended Strategies article and by using the ETC for specific targets. Because the frame time is longer in IRS2 mode, brighter targets may be at greater risk of saturation.


Table 2. NIRSpec NRS1 and NRS2 detector noise performance in traditional and IRS2 readout

ParameterMeasured NRS1†Measured NRS2†
total noise, traditional readout 6.9 7.3
total noise, IRS2 readout5.9 7.2

† These values are for ~950 s integrations as measured on-orbit during commissioning and include the effects of cosmic rays after mitigation.

Figure 2. Performance of traditional vs. IRS2 readouts

Performance of tradition vs. IRS2 readouts

A visualization of the noise performance in traditional (left) vs. IRS2 readout (right) mode. IRS2 readout is efficient at removing vertical striping caused by 1/frequency noise inherent in the JWST near-infrared detector system.
 Figure 3. A cut along a pixel row, showing the noise improvement of the IRS2 readout

Plot of pixel values (in arbitrary units) vs. column # for one row of the NRS1 detector. Traditional readout is plotted in red, and IRS2 is shown in black.


Rauscher, B., et al. 2012 SPIE 8543
Reducing the read noise of HAWAII-2RG detector systems with improved reference sampling and subtraction (IRS2)


Notable updates

Originally published