Free Access
Issue
A&A
Volume 661, May 2022
Article Number A81
Number of page(s) 16
Section Astronomical instrumentation
DOI https://doi.org/10.1051/0004-6361/202142673
Published online 16 May 2022

© ESO 2022

1 Introduction

The Near-Infrared Spectrograph (NIRSpec; Jakobsen et al. 2022, Paper I) is one of four instruments on the James Webb Space Telescope (JWST; Gardner et al. 2006), scheduled for launch in late 2021. NIRSpec was designed and built by the European Space Agency (ESA) with Airbus Defense and Space Germany as the prime contractor. The instrument includes contributions by the National Aeronautics and Space Administration (NASA).

Although NIRSpec was initially designed with multi-object observations of faint high redshift galaxies in mind (see Paper I), it is actually a versatile instrument that will provide key insights in all four main JWST science themes (Gardner et al. 2006): the end of the dark ages, first light and reionisation; the assembly of galaxies; the birth of stars and protoplanetary systems; and planetary systems and the origins of life. This diversity in science goals is enabled by three complementary observing modes: multi-object spectroscopy (MOS), integral field spectroscopy (IFS; Böker et al. 2022, Paper III), and fixed slit spectroscopy (FS; Birkmann et al. 2022, Paper IV for its application to the study of exoplanets).

In this paper, we focus on NIRSpec’s MOS capability. In MOS mode, NIRSpec can obtain spectra of typically fifty to two hundred astronomical targets simultaneously, over a nine square arcminute field of view, at wavelengths between 0.6 and 5.3 µm, and at spectral resolving powers ranging from several tens to more than three thousand. The primary scientific driver for the MOS mode was the study of the formation and evolution of galaxies through spectroscopic surveys, although such a powerful capability will have numerous applications in other fields, such as the study of pre-main sequence stars or of brown dwarfs (e.g. Birkmann et al. 2017).

In Sect. 2 we present the design and capabilities of NIRSpec in MOS mode. Section 3 describes in some detail the multiplexing optimisation strategy developed for the mode (Sect. 3.1), the anticipated performance, and some of the particular issues faced in spectrophotometrically calibrating the data obtained (Sects. 3.2 and 3.3). Section 4 summarises the operation of the MOS mode, including exposure preparation (Sect. 4.1), target acquisition (Sect. 4.2), and post-observation data processing (Sect. 4.3). Section 5 presents an example of simulated MOS observations, while Sect. 6 offers concluding remarks.

2 The design and capabilities of the MOS mode

2.1 Spectroscopy with NIRSpec

NIRSpec can perform spectroscopy over the near-infrared wavelength range 0.6–5.3 µm. A choice of dispersive elements offers three spectral resolutions: a double-pass prism covering the full wavelength range at R ≃ 100, and two sets of three diffraction gratings, giving R ≃ 1000 or R ≃ 2700 respectively within three overlapping bands. Four long-pass interference filters (labelled with the suffix LP) are employed in conjunction with the gratings for order separation, resulting in eight baseline combinations. An additional combination sees the double-pass prism used together with an uncoated CaF2 filter (labelled CLEAR). See Table 1 for the list of baseline configurations, and Paper I for more details on these optical elements.

The NIRSpec slit plane, as shown in Fig. 1, is located at the second image plane of the instrument between the filter wheel and the collimator optics (see Paper I), and enables three distinct observing modes. Five fixed slits cut into the central plate offer single-object capability, including a large 1″6 × 1″6 square slit designed for observations of transiting exoplanets (see Paper IV). A sixth aperture allows light into the Integral Field Unit (IFU), providing spatially resolved spectroscopy over a 3″1 × 3″2 area on the sky (Paper III). The majority of the slit plane comprises the four quadrants of the Micro Shutter Array (MSA), enabling multi-object spectroscopy over a ~3′6 × 3′4 field of view. The remainder of this paper exclusively focuses on the MOS mode of NIRSpec.

Table 1

Baseline disperser and filter combinations for NIRSpec.

thumbnail Fig. 1

Geometry of the NIRSpec aperture plane, including the four MSA quadrants (frame in blue, shutters as a grey checkerboard), the fixed slits and IFU aperture (all in black). Each quadrant, labelled Q1 through Q4, contains 365 × 171 shutters. The projected locations of the detector arrays are shown in green, with green dotted lines indicating their extent and hence where the gap between detectors is hidden in the figure by the MSA. The red dashed rectangle marks the ~3′6 × 3′4 on-sky field-of-view, constrained by a field stop at the entrance of the instrument.

2.2 Micro Shutter Array (MSA)

The MSA was designed and procured by the Goddard Space Flight Center as one of NASA’s two hardware contributions to NIRSpec. The assembly provides a fully programmable aperture, consisting of four Micro Electronic Mechanical System (MEMS) array quadrants, each housing 365 × 171 individually-operable shutters, which yields almost a quarter of a million in total (Fig. 1). For a detailed hardware description, including materials, construction and optimisation of the design, refer to Moseley et al. (2004) and Kutyrev et al. (2008). In this paper, we focus on design details impacting the operation of NIRSpec.

Figure 2 presents the structure of an MSA shutter. Each consists of a door with an embedded electrode (wired to the ‘171-side’ circuit) and etched magnetic strips, hinged at one side to open into a crate-like housing which contains a second electrode on the hinge-side wall (the separate ‘365-side’ circuit). Configuring the MSA involves a coordinated electromagnetic procedure which varies the electrode voltages while sweeping a moving magnet arm back and forth across the shutter arrays. During the outbound journey from the primary park position of the magnet arm near the IFU aperture, in the dispersion direction (towards the shutter hinges), the door and wall electrodes of every shutter are set to opposite potentials, generating an electrostatic force which latches the shutters in place once the magnet pushes them open. After completing this first motion, the magnet arm reverses direction and returns to primary park. Initially, all shutters retain their latching potentials, but as the magnet arm passes over each row in turn, the shutters in that row are individually addressed, holding those that need to remain open (latched), while discharging the voltage for those commanded to close. Shutters with the electrostatic charge removed are gently pulled closed by the passing magnet. In this manner it is possible to configure the MSA into any combination of open and closed shutters.

Each shutter of the MSA has a pitch (distance between the centres of two adjacent apertures) of 105 µm in the axis of dispersion and 204 µm in the perpendicular (spatial) axis. The light-shield frame of the quadrants introduces a ~27 µm bar between neighbouring shutters, yielding an open area per shutter measuring 78 µm × 178 µm. These physical sizes translate to a predicted average on-sky projection of 268 mas × 530 mas for the pitch, a ~69 mas bar width and an open shutter size of 199 mas × 461 mas. The optical field distortion inherent to NIR-Spec and the JWST results in plate-scale variations of 1.8% in width and 3.6% in height over the field of view. Thus the projected shutter pitch ranges between 266 mas and 270 mas in the dispersion direction and between 520 mas and 539 mas in the spatial direction. These numbers will be updated after launch once the telescope is aligned.

The micro-shutter width of 78 µm projects geometrically to approximately two pixels on the detectors. This ensures that, by design, NIRSpec MOS line spread function for a fully illuminated spectroscopic aperture is sampled by at least two detector pixels.

Each quadrant has an unvignetted active area of ~96″ × 87″ of which ~65% consists of the shutter apertures themselves. The four quadrants are separated by a cruciform, which introduces a ~23″ gap between active areas in the dispersion direction, and a ~37″ gap in the cross-dispersion direction. The larger gap in the latter axis includes the ~20″ wide plate which is home to the fixed slits and IFU aperture, running through the centre of the slit plane in the dispersion direction (see Fig. 1).

thumbnail Fig. 2

Schematic showing the detailed construction of the shutters of the MSA. The width × length of 105 µm × 204 µm corresponds on average to 268 mas × 530 mas on the sky. Image credit: Valérian Ferruit.

2.3 MSA spectra on the detectors

When using the MSA, it is important to understand the connection between the physical location of open shutters and the projected location of the resultant spectral traces on the detector arrays. NIRSpec has two 2048 × 2048 pixel detectors (see Paper I for further details), abutted in the dispersion direction with a ~18″ gap in between. The detectors can be thought of as aligning with the MSA as shown in Fig. 1, such that the gap between the detectors is approximately aligned with the cross-dispersion gap between MSA quadrants. Indeed, in imaging mode (when the grating wheel is rotated to the mirror rather than to a dispersive element), the location of the un-dispersed ‘footprint’ of the MSA on the detectors closely resembles the layout in Fig. 1.

Simulated examples of spectra on the detectors are given in Sect. 5: Figs. 12 (for the prism) and 13 (for a medium resolution grating). A few important additional details are worth elaborating. First, the NIRSpec field of view is set by a rectangular field stop measuring ~3′6 × 3′4 which is part of the instrument Fore-optics and is located in the telescope focal plane, at the entrance of the instrument. The MSA is, by design, oversized and the outermost approximately ten shutter rows and columns are vignetted and therefore unusable for on-sky targets. The MSA cruciform is an obvious additional area of the full NIRSpec field of view from which MOS targets cannot be observed, as it contains no shutters. This may be employed to a user’s advantage, as a bright object in the middle of a field-of-interest can be placed behind the cruciform to avoid contamination (see also Sect. 3.3).

Less obvious are the spectral cut-offs, and understanding these is crucial for a successful MOS observing strategy. Although all disperser-filter configurations can be used in any NIRSpec mode, the MOS is primarily designed for use with the R ≃ 100 and R ≃ 1000 dispersers (highlighted in Table 1). The last three configurations in Table 1 employing the R ≃ 2700 gratings have spectra that are so long that in MOS mode their red ends are lost for more than half of the shutters (including all of those in Q1 & Q2). The shorter G140H/LP070 spectra become truncated over a somewhat smaller portion of the MSA. Furthermore, the wavelength coverage of some spectral traces may not be complete due to the physical gap between the two detectors. The wavelength range, if any, affected by this detector gap is dependent on both shutter location and disperser-filter combination: only ~20% of shutters are affected when using the prism, but the majority are impacted when using a medium resolution grating. When using a high resolution grating, all spectral traces will lose a small range in wavelength due to the detector gap.

Figure 3 helps one to visualise this issue for a representative selection of dispersers by showing the projected monochromatic footprints of the operational shutters of the MSA at the two extremes of the nominal disperser wavelength range. The projection of the MSA shutters at the shortest wavelength of the spectra are shown in blue while the long wavelength edge is in red. The skewed appearance of the single-wavelength MSA image is caused by the out-of-plane incidence of the optical beam on NIR-Spec dispersers (Paper I). The approximate spectral trace arising from any given shutter can be visualised by mentally connecting the red and blue images of the shutter in question (ignoring the optical distortion in the NIRSpec Camera which gives rise to a slight downward curvature to the spectra between their end-points, see Paper I). Careful design of an MSA configuration may mitigate the impact of the detector gaps if appropriate shutters can be selected to ensure that scientifically-valuable wavelengths are not missed.

Alternatively, obtaining two exposures with an 18″ or more dither along the dispersion direction would ensure acquisition of the complete spectra of selected science sources, as a different wavelength range would fall on the detector gap in each. However, each dither position requires a reconfigured MSA, and the combined effects of the finite MSA quadrant size, optical distortion and the occurrences of failed shutters (see below) mean that two MSA configurations separated by such a large dither are only able to have 30–40% targets in common, even when targets can be positioned over the full shutter open area. This limits the efficiency of this alternative solution.

thumbnail Fig. 3

Monochromatic footprints of the functional shutters of the MSA, incident on the detector plane (the two outer squares), for the blue and red ends of the nominal wavelength range in three representative filter/disperser combinations (top down, respectively): CLEAR/PRISM (blue = 0.6 µm, red = 5.3 µm), F100LP/G140M (0.97 and 1.94 µm) and F290LP/G395H (2.87 and 5.3 µm). These plots demonstrate that when using the prism and medium resolution gratings (the example here is representative of all three R ≃ 1000 gratings), all the spectral traces connecting the two extreme monochromatic images fall within the outer bounds of the detectors. The plots also reveal the impact of the detector gap, as only spectra from shutters appearing in both colours on a single detector are uninterrupted by the gap (i.e. ~80% of shutters for the prism, but <10% for G140M). The F290LP/G395H plot also shows that for this, and indeed all high resolution gratings, only the left-most shutters will have the red end of their spectra falling on the detectors.

2.4 Shutter operability

Every NIRSpec exposure employing the MSA can command open a different combination of the nearly quarter of a million shutters by appending an MSA configuration file to the up-linked observation set-up. Configurations for scientific exposures will generally open between a few tens and a few hundred shutters, to ensure optimal packing of the resultant spectra with no overlap on the detector array (see Sect. 3.1).

In order to be able to individually command each shutter, the MSA contains very intricate and densely-packed control circuitry, susceptible to low-level particulate contamination causing occasional electrical shorts. Shorts can cause a high current, unpredictable shutter behaviour and/or a thermal glow detectable by the NIRSpec sensors as parasitic light. To prevent these consequences, known shorted rows or columns are placed into a special mask loaded onto the microshut-ter control electronics (MCE), which effectively removes them from the active circuitry, overriding any subsequent commanding to keep the shutters closed and ultimately protecting the hardware.

Shutters can also occasionally warp, which causes them to stick in either the open or closed position. Failed open (FO) shutters do not close when commanded, and cause an unwanted spectral trace on the detector. Identification of FO shutters is critical so users can ensure that science spectra do not coincide with the contamination. Thankfully, so far, the FO shutter population is small and stable, with fewer than 20 apparent during ground testing (Rawle et al. 2018; highlighted in red in Fig. 4), some of which are actually shutterless apertures since failure early in quadrant component testing. If a significant increase of the FO shutter population is observed in orbit, a contingency annealing procedure will be exercised to try to heal the new FO shutters. This procedure heats the MSA quadrants for several minutes, helping shutters unstick, before letting them return to the nominal operating temperature. Annealing was executed in ground testing and appeared to heal at least one recently failed open shutter, but we note that the instrument was essentially annealed between cryo-testing and flight, so any pre-launch failed open shutters are unlikely to respond further to the tactic. In flight, the procedure will be a last resort in case of an unusable build-up of stuck open shutters, as the heating process is highly disruptive, likely requiring a subsequent full re-calibration of the instrument model.

Failed closed (FC) shutters are those that either remain closed when initially opening the array, or fail to hold open when commanded to do so. A few tens of thousands of shutters are FC during diagnostic configurations (Rawle et al. 2018; coloured dark green in Fig. 4). Combined with the shutters placed into the short masks, ~14% of all shutters are not operational. Fortunately, their impact is much less critical than for FO shutters, and merely precludes a particular part of the array from being used as an open slit. As long as the percentage of these shutters does not become too large, the multiplexing capability of NIR-Spec is not severely disrupted. Furthermore, the complexity of the commanded configuration impacts the number of FC shutters, as the drive electronics are forced to switch more frequently causing intermittent failures. This implies that some FC shutters are transient and may occur at any time. For a nominal science configuration containing a few hundred commanded-open shutters, we only expect ~0–1 of them to be affected by a statistical failure and behave as a transient failed closed.

The degree to which the pattern of operational shutters will evolve, both during launch and with use in flight, is poorly known. It is sobering to consider that the MSA was last used and inspected in the summer of 2017 during the observatory level cryo-vacuum test campaign at Johnson Space Center (Rawle et al. 2018), and will only be activated again after launch, once the instrument is at its operational cryogenic temperature. Thereafter, the state of the MSA will be monitored regularly using uniform illumination exposures obtained with NIRSpec’s internal calibration lamps (cf. Fig. 10).

When developing NIRSpec observing programmes, one must find optimal MSA configurations that include the maximum number of catalogue targets, accounting for the MSA geometry and the latest knowledge of the inoperable shutters (FC and FO shutters). The next section delves into the strategies and limitations of this multiplexing optimisation.

thumbnail Fig. 4

Representation of all non-operational shutters as measured at the end of the final cryo-vacuum ground test in 2017 (Rawle et al. 2018): Failed closed (dark green colour), vignetted shutters (light green colour, and transparent to show failed shutters behind the field stop), and lines and rows of shutters removed from service by the short masks (olive green colour). Failed open shutters are highlighted by red circles. Quadrant orientation is the same as in Fig. 1.

3 MOS mode performance

3.1 Observing approach and multiplexing

The NIRSpec MSA makes for a rather unconventional slit device for a multi-object spectrograph, in that its regular grid of shutters projects to a static semi-regular pattern of available slits on the sky that can only be matched to a collection of targets through shifting the MSA projection in bulk by slewing the telescope. The four spaced MSA quadrants, together with the not insignificant number of non-operational shutters that they each contain, makes the pattern of available shutters quite complex and noncontiguous in shape (cf. Figs. 1 and 4). A further complication is that distortion in the NIRSpec collimator optics, and to a lesser extent small misalignment errors between the MSA quadrants, as well as residual clocking errors in the NIRSpec dispersers, cause the spectral traces from different shutters to overlap on the detector array in a complicated manner that depends on the disperser employed. The challenge NIRSpec users face in designing an MSA observation is to determine the best combination of telescope pointing and pattern of shutters to be commanded open that provides the optimal set of non-overlapping spectra of the highest priority candidate targets.

To accomplish this complex task, a specific tool called the MSA Planning Tool (MPT; Karakla et al. 2014) has been developed by STScI as part of the STScI Astronomer’s Proposal Tool (APT; see Sect. 4.1). NIRSpec MOS mode users have to make use of the MPT, optionally supplemented by the so-called eMPT software suite developed by the NIRSpec Instrument Team (Bonaventura et al., in prep.) a version of which will be released publicly in 2022. Both systems employ as their backbone the NIRSpec Instrument Model (Dorner et al. 2016; Birkmann et al. 2016; Giardino et al. 2016), on which they rely to accurately project targets from the sky onto the MSA, trace spectra from individual shutters on to the NIRSpec detector array, as well as provide the detailed up-to-date inventory of operational shutters on the MSA. The MPT and eMPT mainly differ in the algorithms they each employ to arrive at the optimal MSA configuration solution in a given situation. The level of multiplexing achievable with the two systems are comparable. To quantify the multiplexing, we briefly describe a simple statistical model of the steps performed by the eMPT. Further details will be presented in Bonaventura et al. (in prep.).

Consistent with the standard background-subtraction strategy of NIRSpec MOS mode, all targets are assumed to be observed in three shutter tall slitlets, and that the telescope is nodded by one vertical shutter pitch between each sub-exposure such that all objects being observed are shifted in sequence between each of the three shutters making up each slitlet. These nods serve to shift all spectra on the detector array by approximately ±5 pixels in the spatial direction between sub-exposures, with the aim of smoothing out any detector blemishes and residual flat-fielding errors when the spectra are extracted and combined during the data reduction (Sect. 4.3). As the MSA is shifted on the sky such that the targets being observed are first placed in the central shutters of their slitlets, then in the topmost shutters, and finally in the lower shutters, each nodded slitlet in total samples five different shutter open area projections on the sky along the spatial direction (i.e. the three shutter views of the sky from the first central exposure, plus one additional flanking view from each of the two nods). In the case of compact targets whose flux is confined to a single shutter, the nodded three-shutter approach allows ‘same shutter’ local sky background subtraction to be performed in the temporal domain without needing to reconfigure the MSA. Accurate background subtraction in the case of extended objects whose flux extends over the majority of shutters sampled by the nodded slitlet will have to rely on the sky background spectrum being measured elsewhere on the MSA. This approach is referred to as Master Background Subtraction (Paper I).

The planning of a NIRSpec MSA observation starts with a prioritised input catalogue listing the accurate coordinates of the targets to be observed, together with a placeholder nominal position on the sky towards which the NIRSpec MSA fiducial point – defined by the centre of the 3′6 × 3′4 FOV spanned by the unvignetted MSA border – is to be positioned. As discussed in Sect. 4.1, because JWST is severely roll-constrained, it is only possible to know the roll orientation at which any exposure will be carried out once the observation has been scheduled and placed on the detailed observatory timeline. As a consequence, at the proposal stage the user cannot know precisely which subset of catalogue targets it is possible to observe simultaneously in any exposure. To compensate for this uncertainty, the footprint of the NIRSpec input catalogue is allowed to be intentionally oversized (typically extending out to ≃ 3 arcmin radius from the specified nominal pointing), in order to allow the observation to be optimised at the actual roll angle by permitting the final telescope pointing to deviate from the nominal proposed one by a modest amount too small to perturb the observatory scheduling (typically up to ± 30 arcsec in both RA and Dec).

At a given projection of the MSA on the sky, the first task of the eMPT is to project the targets in the input catalogue onto the NIRSpec slit plane and determine which of these fall within available shutters of the four quadrants of the MSA. This projection requires accurate knowledge of the combined optical distortion of the NIRSpec Foreoptics and the telescope proper (Paper I). This sky-to-MSA transformation will only be known to sufficient accuracy after launch once the telescope has been successfully deployed, phased and focused on orbit. The transformation contained in the prelaunch instrument model is a placeholder, derived from ray-tracing the nominal as-designed JWST.

Since the majority of the input catalogue targets at any orientation of the MSA cannot all be expected to project near any shutter centres, the user needs to specify two dimensionless parameters 0 < θx ≤ 0.5 and 0 < θy ≤ 0.5 corresponding to the fraction of the shutter-to-shutter centre spacing (‘pitch’) in each direction. θx and θy define the so-called Acceptance Zone determining how far the position of any candidate target (as defined by its catalogue coordinates) is allowed to deviate in either direction from the centre of the shutter that it projects onto. An Acceptance Zone spanning the full shutter open area corresponds to the choice θx = 0.371 in the dispersion direction and θy = 0.436 in the spatial direction. Numerically smaller values correspond to demanding tighter alignment between the selected target coordinates and their shutter centres, which – depending on the nature and surface brightness distribution of each target being observed – generally leads to more light from each target passing through the open shutter (Sect. 3.2), albeit at the price of fewer targets being observed overall (unless the target density is extremely high).

Central to the architecture of the eMPT is the so-called Viable Slitlet Map, whose entries code for whether a given MSA shutter is available to serve as the centre of a complete three shutter tall slitlet flanked by operational shutters both above and below it. The Viable Slitlet Map is initialised at the start of each eMPT run for the specified disperser, based on the current inventory of operational shutters, and by masking out any slitlets whose spectra would overlap with the always present single-shutter spectra from the failed open shutters. In the case of the PRISM disperser, slitlets giving rise to spectra that encounter the 2.8 mm gap between the two detector arrays are also masked out (cf. Fig. 12). At the time of writing, the MSA carries a total of NS = 123 533 Viable Slitlets in PRISM mode and from NS = 124 186 to 124 210 Viable slitlets for the three R = 1000 grating modes, out of N0 = 223 097 possible for an ideal fully-functional MSA. It follows that when employing three shutter tall slitlets, the ≃ 14% non-operational shutters presently in the pre-flight MSA result in it operating with a total effective active field of view that is Ns/N0 ≃ 55% of that of a hypothetical flawless device. The reason for this large reduction in the active field of view is that a single isolated failed closed shutter precludes not only itself, but also the shutters immediately above and below it, from serving as the central shutter of a fully functioning three shutter tall Viable Slitlet.

At a given pointing and orientation of the MSA on the sky, the first two tasks performed by the eMPT can be readily modelled statistically provided the targets to be observed are assumed to be distributed at random on the sky. If the average surface density of the catalogue targets of interest is dn/dΩ = ΣT then the number of targets contained within the MSA field of view nMSA will be Poisson distributed with mean: (1)

where ΩMSA = N0 Ωsh = 8.78 arcmin2 is the solid angle subtended by the central shutters of the N0 = 223 097 theoretically possible Viable Slitlets in the four quadrants of the unvignetted field of view of the MSA, and ΩSH = 268 × 529 mas2 = 3.94 × 10–5 arcmin2 is the mean solid area extended by a single shutter facet. The probability that any one of these nMSA targets falls inside the Acceptance Zone of a functioning Viable Slitlet is then: (2)

where the first factor is the fraction of available Viable Slitlets on the MSA for the disperser being employed, and the two last factors give the filling factor of the adopted Acceptance Zone with respect to the shutter pitch.

The next task performed by the eMPT is to exclude from further consideration any otherwise valid candidate targets whose nodded slitlets also happen to capture contaminating light from any other catalogue object. The probability that the area sampled by a given nodded slitlet (equivalent to the area of five open shutters) is free of extraneous contaminating targets beyond the target itself is approximately: (3)

where ΣC is the surface density of all known potentially contaminating sources on the sky (i.e. ΣC ≥ ΣT depending on the completeness of the input catalogue). We note that Eq. (3) underestimates the contamination in the case of extended targets, whose flux can still extend into the open area of a shutter even when the target photocentre falls well outside the shutter in question.

Following these two target elimination steps, the number of remaining contamination-free targets located within Acceptance Zones of Viable Slitlets nVS will follow a thinned Poisson distribution with mean: (4)

The next task is to identify the optimal subset nSP of the nVS remaining candidate targets whose spectra can be fit onto the 2 × 2048 × 2028 pixel detector array without incurring overlap. The outcomes of this step differ significantly between using the PRISM or one of the R = 1000 gratings. As discussed in Paper I, first order R = 1000 grating spectra are flanked by zero-order images at their blue ends and second-order extensions at their red ends, resulting in their effectively spanning the entire width of the detector. PRISM spectra on the other hand are considerably shorter and possess no higher or lower order images. Up to four PRISM spectra can therefore in principle be placed across the width of the detector array. As a result, typically up to four times more non-overlapping PRISM spectra can be fit on the detector than grating spectra.

This last down-selection step is carried out in the eMPT employing the Arribas Algorithm. This algorithm takes as its input an arbitrary set of target-containing Viable Slitlet locations on the MSA and determines which of the spectra mutually overlap vertically (as well as horizontally in the case of the PRISM) within the set. The algorithm works by successively identifying and removing the ‘worst offender’ slitlet whose spectrum overlaps with the largest number of other spectra, and repeating the process until none of the remaining spectra mutually overlap. The output of the algorithm is the largest possible subset drawn from the input targets whose spectra can all be accommodated on the detector simultaneously.

Due to the complex interplay between the pattern of Viable Slitlets on the MSA and how their dispersed images project to the NIRSpec detector array, the quantitative performance of the MOS target placement (given the MSA operability) as a function of input target density is best assessed through Monte Carlo simulation. Figure 5 plots the mean values of and the ± 1σ scatter in nSP resulting from 10 000 trials in which a fixed number nVS of Viable Slitlets were picked at random over the MSA and passed to the Arribas Algorithm.

The upper points refer to the PRISM and the lower ones to the G235M grating runs. The results for the other two R = 1000 gratings are for practical purposes identical. It is evident that the finite real estate of the detector array is the limiting factor deciding the achievable multiplexing in both grating and PRISM mode. Both multiplexing curves are linear () at small values of nvs – where spectral collisions are improbable – and gradually converge to constant values of for larger values of nvs as the detector becomes saturated with spectra.

The dependency of on nvs can be fit remarkably well by the simple analytic expression: (5)

where ms is the maximum achievable value of , and ϕ(x) is a soft step function: (6)

and α0 and ß0 are fitted constants. The two continuous curves in Fig. 5 show the best fits for the PRISM (ms = 232.1, α0 = 0.427, ß0 = 0.0032) and G235M grating (ms = 57.6, α0 = 0.638, ß0 = 0.011). These fits, substituting the mean from Eq. (4) for nvs in Eq. (5), concisely capture the anticipated ultimate multiplexing capabilities of the pre-launch NIRSpec in MOS mode, and its dependency on the choice of disperser and size of the Acceptance Zone. It is worth noting that since the Arribas Algorithm places the largest possible number of non-overlapping spectra on the detector, the above fits provide strict upper limits on the degree of multiplexing achievable with three shutter tall slitlets employing any alternative target placement scheme.

It is evident that at the target densities ΣT ≥ 250 arcmin–2 encountered in existing remote galaxy surveys (cf. Whitaker et al. 2019) and assuming an Acceptance Zone spanning the full shutter open area, the MSA will be partially to fully saturated in R = 100 PRISM mode, allowing non-overlapping low resolution galaxy spectra to be observed simultaneously in each exposure. This is in marked contrast to the nearly always saturated R = 1000 grating modes which are only capable of capturing non-overlapping intermediate resolution spectra in a single MSA configuration. This significant mismatch between the multiplexing capabilities at R = 100 and R = 1000 is an issue when attempting to survey a given sample of galaxies at both spectral resolutions. This has led to the approach of carrying out R = 1000 exposures in the same MSA configuration optimised for a preceding PRISM observation, thereby accepting a high degree of overlap between grating spectra on the grounds that the higher resolution spectra are primarily concerned with measuring nebular emission lines, which occupy a much smaller filling factor on the detector compared to the underlying continuum spectra (Sect. 5).

It is also clear that because of the late assignment of the roll angle, only a small fraction of the potential NIRSpec targets listed in the input catalogue at the proposal stage can be observed with NIRSpec in MOS mode in a single exposure. For example, if the oversized input catalogue extends out to 3 arcmin radius, the Ωmsa = 8.78 arcmin2 unvignetted MSA field of view will cover only a third of the catalogue targets in any given pointing. Of these targets roughly another third will fall within the all-open Acceptance Zones of Viable Slitlets. Depending on the number of remaining targets, typically yet another third will result in non-overlapping spectra in PRISM mode. In total only a few percent of the targets contained in the oversized input catalogue can be expected to be covered in a single MSA exposure, and seldom more than ≃10%.

In any actual NIRSpec programme, not all the targets in the input catalogue will be of equal interest scientifically as implicitly assumed above. In the eMPT the targets in the input catalogue are therefore grouped into a modest number of discrete Priority Classes (typically 5–10) with placements attempted on the MSA in sequence of decreasing priority using the Arribas Algorithm. This results in progressively fewer targets being accepted for the later Priority Classes, and in the resulting MSA configuration containing fewer targets overall than if the Arribas Algorithm were applied in a single pass with all targets pooled together. An example of an eMPT-produced MSA configuration forms the basis for the simulated MSA exposures presented in Sect. 5.

thumbnail Fig. 5

Average number of spectra that can be accommodated on the NIRSpec detector array in MOS mode without overlap as a function of nvs, the number of candidate targets located within Viable Slitlets on the MSA. The points show the results of 10 000 Monte Carlo trials carried out at the shown values of nvs for the PRISM and the G235M grating. The continuous curves show the fits to Eq. (5).

thumbnail Fig. 6

NIRSpec sensitivity for a point source centred in a microshutter aperture, using the NRSIRS2 readout mode. The plots show for each disperser the continuum sensitivity as a function of wavelength required to reach SN = 10 per spectral pixel in ten NRSIRS2RAPID exposures with an individual integration time of 1006.7 s (70 groups of 1 frame). The computation was performed using the signal to noise calculation scheme described in Appendix A of Paper I.

3.2 Sensitivity: The impact of source centring

As discussed in Paper I, the radiometric sensitivity of NIRSpec in MOS mode is determined by the combination of the instrument throughput, the detector noise for the read-out scheme employed, and the fraction of the total light from the target being observed that passes through the shutters being used, which in turn depends on whether the target is a point source or an extended object, and how the object is positioned within the shutter. Appendix A of Paper I describes in detail the recipe for calculating the limiting sensitivity in MOS mode for two specific benchmark observations used to monitor the anticipated performance of the instrument. Figure 6 shows the results of an expanded calculation following the same general recipe, assuming the average noise characteristics of NIRSpec’s two detector arrays, and ignoring the impact of cosmic rays hits. For each of NIRSpec’s seven dispersers the point source continuum flux required to reach SN = 10 per single pixel wavelength bin in ten NRSIRS2RAPID exposures, each with an integration time of 1006.7 s (70 groups of 1 frame), is plotted as a function of wavelength (a comparable plot for the NRSIRS2 mode is provided in the instrument manual1 in JDox2).

In round numbers, in 10000 s NIRSpec is expected to be capable of reaching continuum fluxes lower than fv ≃ 100 nJy (AB ≃ 26.4) in the lowest resolution R = 100 PRISM mode, fv ≃ 1 µJy (AB ≃ 23.9) in R = 1000 grating mode and fv ≃ 3 µJy (AB ≃ 22.7) in the highest resolution R = 2700 grating mode. It is stressed that these limiting fluxes refer to well-centred point sources. The corresponding sensitivities expressed in terms of the integrated magnitudes of extended galaxies depends on the angular size and detailed surface brightness profile of each object being observed, and its projection on the shutters being employed.

Dealing with arbitrarily shaped extended sources in a realistic manner is beyond the scope of the current MOS data processing and calibration scheme described in Sect. 4.3. It assumes that each spectrum either originates from a point source (in which case the calibrated spectrum is radiometrically referenced to the total point source flux at each wavelength) or from a uniform extended source (in which case the calibrated spectrum is referenced to the absolute surface brightness of the region sampled by the shutter on the sky). The NIRSpec MOS pipeline involves a fairly standard sequence of flat-fielding and spectrophotometric correction steps. However, the initial flux calibration assumes as its starting point that all spectra arise from point sources that are perfectly centred in their respective shutters. Deviations from this assumption are subsequently dealt with by applying suitable wavelength-dependent corrective factors to the extracted spectra on a case-by-case basis.

In the uniform surface brightness limit, this correction merely reflects the differences in path losses between a centred point source and a uniform extended source as a function of wavelength (cf. Figs. 11 and 13 of Paper I), and the solid angle extended by the shutter open area needed to convert the registered signal to a surface brightness.

In the point source case, an inescapable feature of the MSA is that the majority of targets observed simultaneously in any given MOS exposure cannot be perfectly centred within their respective shutters. In this case the photometric correction needs to reflect the different pathlosses suffered by an off-centred object with respect to a well-centred one. The correction term as a function of the source offset and wavelength is encapsulated in a set of calibration reference files that will be measured during the instrument on-orbit commissioning by stepping a suitable number of targets around within their respective slitlets.

The anticipated spatial and wavelength dependency of the transmission through a single MSA shutter is illustrated in Figs. 7 and 8, respectively, which result from detailed Fourier optical simulations that include both the geometrical and diffraction components to the total net transmission. Figure 7 maps a constant wavelength slice through the resulting datacube showing how the total net transmission at λ = 2.5 µm varies with target location over a single MSA shutter. Not surprisingly, the net transmission can reach lower values if an Acceptance Zone allowing targets to be placed near or under the inter-shutter bars is employed. Figure 8 shows the wavelength variation of the single shutter point source transmission for a representative sample of target locations within the shutter. It is apparent that the wavelength dependence of the correction factor is quite pronounced over the face of the shutter open area.

Figures 7 and 8 make it clear that accurate knowledge of the relative placement of each point-like target within its slit-let is required if the appropriate spectrophotometric correction is to be applied. A priori information on the anticipated target locations may be had from the MPT or eMPT when designing and setting up the MSA observation. A coarse a posteriori verification can be made provided an undispersed confirmation image is taken following target acquisition (Sect. 4.2). However, as is evident from Fig. 7, any errors in the assumed target intra-shutter locations translate directly into errors in the spec-trophotometric correction factors, especially near the edges of the shutters where the slit transmission drops off the steepest. Thus the choice of Acceptance Zone discussed in the previous section becomes a trade-off between how many targets can be observed simultaneously, which fraction of their flux is obtained, and how accurately their extracted spectra can be photometrically calibrated. Only actual on-orbit experience will allow the best compromise to be struck between these three objectives.

The computation of the spectrophotometric correction factors of actual, arbitrarily-shaped extended objects that fit neither in the point source category, nor in the uniform source one, will require additional development. If a-priori knowledge of the intrinsic shape of the object is available, it can be combined with the point-source spectrophotometric correction factors by decomposing the object in a collection of point sources with different centrings to derive the net wavelength dependent correction factor applicable to the spatially integrated spectrum of the extended target. Going this extra mile may be very important when, for example, forming diagnostic line ratios from nebular lines observed at different wavelengths. Only very limited information on these spectrophotometric corrections could be obtained during the ground-testing of NIRSpec so, again, actual on-orbit experience will be needed to characterise accurately these effects.

thumbnail Fig. 7

Map of the variation in the transmission through a single MSA shutter for a point source at 2.5 µm as a function of source position. The shutter open area and pitch is marked by the white solid and dotted lines, respectively. The numbers refer to the source locations for which the wavelength dependency of the transmission is shown in Fig. 8.

thumbnail Fig. 8

Single shutter point source transmission as a function of wavelength for the source locations indicated in Fig. 7.

thumbnail Fig. 9

Wavelength zero-point offset for a point-source as a function of wavelength and target displacement from the micro-shutter centre in the dispersion direction. For extreme offsets, the core of the point-spread function progressively moves out of the shutter opening and the position of the photocentre becomes sensitive to secondary features like Airy rings. This explains the non-monotonic behaviour of the wavelength zero-point offset at short wavelengths and for large source offsets.

Impact on wavelength calibration

If a point source is not perfectly centred within its shutter, this impacts the wavelength calibration of its spectrum. As discussed in Paper I, the extraction and wavelength calibration of the spectral traces relies on the NIRSpec instrument model. The model has been tuned to closely match the as-built flight instrument during the NIRSpec ground calibration campaign (Dorner et al. 2016; Giardino et al. 2016), using reference sources (external and internal to the instrument) that provided a uniform illumination of the field. Therefore, by default, NIRSpec model-based wavelength calibration applies to uniform sources and, to first order, to point-like sources centred in their aperture.

For non-centred point sources, the photocentre will in many cases be noticeably offset from the centre of the shutter, in which case an intra-shutter level refinement of the wavelength calibration zero point is applied to the extracted spectrum (Sect. 4.3). Figure 9 shows a Fourier optical simulation of the difference measured along the dispersion direction between the monochromatic photocentre of an offset point source and that of a uniformly illuminated slitlet as a function of wavelength. As anticipated, the zeropoint correction is most noticeable at the shorter wavelengths where the point spread function is the narrowest.

3.3 MSA leakage and parasitic background

The closed MSA is not infinitely opaque. It is possible for a small fraction of the incident light to leak around the closed shutter doors and through the array structure itself. A series of dedicated exposures were taken during the ground testing of the instrument to assess the contrast performance of the MSA. Figure 10 shows images of the four MSA quadrants obtained in a long exposure taken with the all-closed MSA illuminated by a bright broadband 0.6-5.3 µm continuum lamp of the internal calibration source (Paper I) with the imaging mirror of the grating wheel in place. The undispersed images of the 20 failed open shutters are heavily saturated in this exposure, as are the images of the fixed slits (not shown). The unattenuated incident signal from the lamp was determined by taking separate unsaturated short windowed exposures of the large S1600A1 Fixed Slit. These relative leakage maps (Fig. 10) show the ratio of the attenuated signal to the inferred incident one.

The typical contrast level of the MSA is better than one part in ≃5000, equivalent to an attenuation of ∆m ≃ 9.3 magnitudes. It is evident that for NIRSpec MOS observations one will need to check that there are no bright objects present in the MSA field of view whose attenuated dispersed images overlap with the spectra of any primary targets. Furthermore, the pile-up of the dispersed images of the entire MSA in the attenuated light of the spatially smooth background sky (cf. Fig. 3) will give rise to an additional low level sky background signal, which, however, is subtracted out along with the other background components when using the standard nodded slitlet strategy. Since the MOS and IFS modes share the same detector area, observers using the IFU also need to be aware of these sources of parasitic contamination. For the IFS mode, these sources of contamination are enhanced because of the lower throughput with respect to that of the MSA, and the smaller IFU slice width compared to the width of a micro-shutter. This topic is further discussed in Paper III.

4 Observing in MOS mode

4.1 Preparing MOS observations

Observers planning to use JWST must generate their proposals within the Astronomer's Proposal Tool (APT)3 from the Space Telescope Science Institute. This application allows the definition of a set of observations through a series of mode-specific templates, controlling all of the configurable instrument and detector parameters, as well as targeting and acquisition, timing constraints, and programmatic choices such as dithering and background strategy. Observers must also upload scientific and technical justifications for review. The fully-defined, template-based observations are directly translatable into on-board scripts for the telescope to execute. Once the Time Allocation Committee (TAC) has selected which proposals will be observed, they are in principle ready for scheduling without further interaction with the observer. However, when it comes to preparing observations in NIRSpec MOS mode, this ‘single-stream’ approach has to be amended.

For targets requiring a particular on-sky orientation of the instrument (e.g. placing a slit along a specific axis of an object) or limited range of orientations (e.g. to avoid having a bright star in the MSA field of view), a special requirement can be added to the observation in APT. The intricacies of the JWST attitude and field-of-regard constraints mean that these orient requirements, at a given location on the sky, translate directly into limitations on the observation date: for a fixed orientation, the nominal roll flexibility of approximately ±5 deg corresponds to ~8 day window for observation. Such a constraint increases the scheduling difficulty, and potentially impacts observatory efficiency, so the TAC must adjudicate whether it is scientifically justified, and factors that into their allocation decision.

For a standard MOS programme, where the observer wishes to target as many objects as possible from a catalogue covering a large area on the sky, there is no preferred orientation. However, as discussed in Sect. 3.1, MOS observations require very accurate alignment of many science sources within the shutter array, so even in this case the orientation must be known in order to prepare a usable MSA configuration. It would not be efficient to artificially impose an orientation constraint merely to be able to generate an MSA configuration, so instead, a two-step process is employed for MOS mode preparation.

For the initial proposal submission, investigators must demonstrate that they have a workable programmatic strategy, supported by calculations from the JWST Exposure Time Cal-culator4. Instrument and detector parameters in the APT MOS template must be fully configured, but the submitted MSA configurations need only be placeholders, generated for a real or simulated catalogue at a representative roll angle. For this, investigators can typically use the MPT (Karakla et al. 2014), integrated within APT. Possible orientations for the actual target location can be derived via the JWST General Target Visibility Tool (GTVT)5.

Many fields-of-interest lack existing imaging of sufficient breadth or depth, or such imaging is rendered obsolete by proper motion in Galactic fields or shifts between optical and infrared source locations. Therefore, observers have the option to combine NIRCam pre-imaging and NIRSpec MOS observations into the same proposal, to be executed in a single cycle. These NIR-Cam exposures must be fully configured in the initial proposal submission. Although there are a wide variety of filter options for NIRCam, the F115W filter is particularly well-matched to the NIRSpec F110W filter available for MSA target acquisition (Sect. 4.2). Several recommended options also exist to create NIRCam mosaics of sufficient uniformity and coverage for one or more MSA pointings (see JDox for more details on NIRCam pre-imaging6).

After the TAC selection is complete, a long-range plan can be generated, assigning an observation date to each programme, which effectively fixes the orientation angle too. Given the newly assigned orientation, the observer can embark on stage two of the MOS proposal preparation, creating their final flight-ready MSA configurations. Normally, the re-planned MSA configurations are expected to be submitted at least six weeks before the assigned observation execution date7. For programmes that also requested NIRCam pre-imaging, the second step can only be completed once a catalogue has been generated from the associated imaging. Pre-imaging exposures will be scheduled as early in the Cycle as possible and at least six weeks in advance of the associated MOS execution (Beck et al. 2016; see also the corresponding JDox documentation8). This means that in some cases very little time will be available to generation the input source catalogues from the NIRCam pre-imaging. Due to the nominal 8 day window for a fixed orient, all flight-ready MSA configurations are only valid for their allocated time slot, so any significant schedule delay will force a re-plan. For current information on MOS mode proposal preparation, consult the latest Call for Proposals and the MOS specific roadmap on JDox9.

thumbnail Fig. 10

Measured attenuation performance of the four MSA quadrants, as derived from internal lamp exposures taken in imaging mode during instrument testing. The axes are labelled according to the MSA plane shutter through which the incident light passed. Pixels in white do not have a measured attenuation due to either flux from heavily saturated failed open shutters or bad pixels on the detector.

thumbnail Fig. 11

Top: Stage 1 of the NIRSpec processing pipeline: generation the count-rate maps starting from the exposure up-the-ramp integration cube. Bottom: Stage 2 of the NIRSpec processing pipeline for a MOS observation for point-like sources. The processing is applied to each source in the target catalogue that provide the pipeline with a source sky position, MOS aperture coordinates (k, i, j) and relative coordinates within the slitlet. Steps 2, 5 and 6 are valid for an ideally-centred source, steps 3 and 7 introduce the necessary corrections taking into account the actual source position relative to the slitlet centre. Yellow ovals indicate the reference calibration data necessary to perform the operation.

4.2 Target acquisition

Most observations using the MOS mode require target acquisition (TA) accuracy of <25 mas, in order to ensure an accurate positioning of the sources in their respective shutters and to limit the spectrophotometric calibration errors associated with the uncertainties in their positioning (Sect. 3.2). The nominal guide-star acquisition pointing accuracy for JWST is predicted to be ~100 mas (1σ error, per axis10). Therefore, the default for MOS mode observations will be to start with a MSA Target Acquisition (MSATA) which, optimally, can increase the accuracy to ~20 mas. Skipping the MSATA is allowed in the MOS mode APT template, but is only recommended if the science region-of-interest is sufficiently extended that exact placement is unwarranted.

During the automated MSATA procedure, a set of ~5–8 TA reference targets (typically stars, although suitably bright and compact galaxies may also be used) are observed in imaging mode through the MSA, in either an ‘all open’ configuration or a bespoke ‘protected’ configuration if it is necessary to block out bright objects in the field. Two exposures separated by an MSA half-shutter slew ensure that all the reference targets are detected, regardless of the initial guide-star acquisition accuracy. The onboard software measures the centroid locations of the reference objects, determining their mean offset and hence the corrective slew required by the observatory before beginning the primary MOS observation (Keyes et al. 2018).

The expected accuracy of MSATA depends significantly on the number of available reference targets in the field, their surface brightness profile central concentration, and (importantly) the relative astrometry of the reference objects to the science targets. Optimal MSATA accuracy requires that all reference and science objects are in a single catalogue possessing a relative astrometric accuracy of ~5 mas. Source catalogues derived from images acquired by ACS or WFC3 on the Hubble Space Telescope generally meet this requirement, as will NIRCam imaging data.

4.3 Data processing and calibration

Figure 11 illustrates the main data processing and calibration steps (Alves de Oliveira et al. 2018) that have to be applied to MOS raw data (level 1a, i.e. the up-the-ramp integration-cubes) to derive flux and wavelength calibrated spectra for each individual target. This workflow and the associated algorithms are used both by the NIRSpec instrument team data processing software and the STScI science calibration pipeline11. We note that Fig. 11 only includes the steps corresponding to Stage 1 and Stage 212 of the data processing. A description of Stage 3 that combines fully calibrated data from multiple exposures is beyond the scope of this paper.

Like for all the other NIRSpec modes, and indeed for all the raw data from JWST science instruments, the first stage of the data reduction process generates the up-the-ramp slope or count-rate images from the raw data cubes. Because this data-reduction stage is not specific to the instrument mode, it is referred to as the pre-processing or Stage-1 pipeline. This stage involves the following steps: saturation detection and flagging, master bias subtraction, reference pixel subtraction, linearity correction, dark subtraction13, and count rate estimation (including jump detection and cosmic ray rejection) – see also Birkmann (2011), Böker et al. (2012) and Giardino et al. (2019).

The second stage of the data processing concerns the extraction of calibrated spectra from the NIRSpec count-rate images. Together with the count-rate images, the other main input to this stage is the observed target catalogue, where for each target the following basic information has to be listed: the target’s sky-coordinates; the target’s position in the MSA array in terms of its shutter ID (k, i, j) and the relative XY-coordinates within the shutter pitch; whether the source is point-like or extended; and finally the background subtraction strategy to be used for the target (available options: none, use all the flanking shutters in the nodded 1 × 3 slitlet; use only some of these; or use a master background).

The seven default processing steps needed to extract wavelength-calibrated point source spectre from the count-rate images are: (1) the pixel-level background subtraction is performed (combining the exposures from the three-nods) if relevant. (2) The sub-image containing the spectral trace is extracted and wavelength and spatial coordinates are assigned to each pixel therein. (3) The wavelength zero-point correction (Sect. 3.2) is applied. (4) The pixel-to-pixel flat-field correction is performed (D-flat). (5) Spectral flat fielding, that is, correcting the count rates in the subimage for field- and wavelength-dependent variations in the throughput such as the grating blaze function (relative flux calibration) (S-flat and F-flat). (6) Conversion to absolute flux-units by comparing the count-rates in the to those from a spectro-photometric standard star (absolute flux calibration). (7) Applying the correction for path-losses relative to a perfectly centred source.

In the case of a spatially-uniform source, step 3 is omitted, and an additional ‘pixel-area’ correction is applied to convert data from flux-per-pixel to surface brightness units. For a uniform source, the path loss correction is applied relative to a centred point-source and additionally combined with a correction for the shadow cast by the opaque bars present between the shutters of a slitlet.

If the source is marked as extended, the standard pipeline will treat it like a spatially-uniform source. One will therefore have to derive additional, object-specific correction factors to be applied to standard pipeline data products to supplement the missing or approximate correction factors applied as part of steps 3 and 7. As highlighted in Sect. 3.2, generating an object-specific correction for step 7 may require a-priori knowledge of the intrinsic shape of the object at the wavelengths of interest.

If the options to not correct for background or to use a master-background have been specified for the target, then step 1 is skipped. The subtraction of a master-background spectrum (derived for example by combining the background data gathered through the fixed-slits and/or individual open shutters containing empty sky) from the target data is applied to the target’s subimage after the wavelength-coordinates have been assigned to the pixels in step 2. The final, exposure-level data products for each target are: (i) flux and detector-subimage containing the spectral trace with wavelength and spatial-coordinates assigned, (ii) the spectrum re-sampled on a rectified 2D-grid; and (iii) the 1D-spectrum obtained by spatially collapsing the data in the 2D-grid. In the following section these processing and calibration steps are applied to a simulated NIRSpec data set.

5 Simulated MOS observations: a spectroscopic deep field

The functioning of NIRSpec in MOS mode is well illustrated by a set of simulations designed to mimic the deep spectro-scopic observations that will be performed as part of the JWST Advanced Deep Extragalactic Survey (JADES), a joint project of the NIRCam and NIRSpec Guaranteed Time Observation (GTO) teams. The simulation aims to reproduce the JADES deep spectroscopic follow-up of high-redshift sources in the GOODS-South field identified through prior deep imaging observations with NIRCam that can be found in GTO programme 128714). The simulated programme consists of a 92 ks MOS observation in the R = 100 CLEAR/PRISM (broken up into three dithered pointings, each with its own MSA configuration), combined with matching 3 × 25 ks observations in each of the F070LP/G140M, F170LP/G235M, F290LP/G395M R = 1000 gratings. The observations being simulated have all targets observed in three shutter tall slitlets, with the targets nodded between the shutters of the slitlet between sub-exposures. Most notably, it has the higher resolution R = 1000 grating observations being carried out using the MSA configurations and pointings optimised for the PRISM observations. This results in overlapping of the grating spectra (Sect. 3), whose emphasis, however, is on measuring emission lines. The objective is to derive the source continuum spectra from the PRISM observations, together with the strongest lines, and then use this information to disentangle the overlapping grating spectra15. This approach is adopted to enable the same set of targets to be observed with both the PRISM and the gratings.

The input catalogue used for the simulation consisted of 52 817 targets contained within a circular 3 arcmin radius area extracted from the mock catalogue of the JAdes extraGalactic Ultradeep Artificial Realizations (JAGUAR) package, developed by Williams et al. (2018). The input catalogue targets were sorted into 8 priority classes, plus fillers, as summarised in Table 2. The eMPT software suite (Bonaventura et al., in prep.) was used to place the targets in each priority class in sequence on the MSA (Sect. 3.1), and the three dithered pointings were chosen to maximise the coverage of the highest priority targets and the number of common targets (i.e. observed in all three pointings).

Over the three different dithered pointings (each of them corresponding to a set of three nodding positions), the eMPT algorithms selected a total of 370 unique targets. To maximise the number of objects in common to the three pointings, these dithers were only separated by a small distance from each other, that is typically no more than the size of a handful of shutters. Despite that, only 23% of these targets were covered in all three pointings and 51% were covered in a single exposure. The limited level of target commonality between the three dithered pointings is mainly caused by the failed closed shutters scattered across the arrays which make the autocorrelation function of the pattern of operational 3-shutter slitlets drop off steeply even at small displacements.

Detailed simulations of each of the three nodded exposures for each of the three dithered pointings in each of the four utilised dispersers were then produced using the template spectra from the JAGUAR input catalogue, treating each target as a point source for computational reasons. The simulations also included the sky background emission, which is comprised of the in-field zodiacal light, the parasitic light, and thermal emission from the telescope (Lightsey 2016). The same breakdown of the individual exposures into sub-exposures as per the GTO programme was followed, and the detector noise model of Birkmann et al. (2018) was assumed.

The simulated count-rate image for the central nod of one of the PRISM exposures is shown in Fig. 12, and that of the matching G235M grating exposure is shown in Fig. 13. The spectral overlap occurring in the grating exposure is evident. The noise level in both examples corresponds to the co-addition of two NRSIRS2 integrations spanning 19 groups each, for a total exposure duration of 2801 s. A total of 214 spectra are obtained for this MSA configuration (209 and 214 in the two other dithers), compared to the 232 spectra predicted by Eqs. (1)

through (6) of Sect. 3.1 for the input target catalogue density (ΣT = 1870 arcmin–2) and Acceptance Zone (θx = 0.343, θy = 0. 420) employed. This slight reduction in multiplexing compared to the maximum achievable is the statistical price paid for sorting the targets into priority classes.

Individual spectra of the targets were extracted from the simulated count-rate images using the NIRSpec pipeline described in Sect. 4.3. Figure 14 shows an example of the extracted background-subtracted spectral trace of a galaxy at z = 9.52. In the lower panel the final 1D-spectrum is compared to the assumed JAGUAR input catalogue spectrum. Note the clear detection of the Lyα, [Oii], [Oiii], Hß and Hγ emission lines and of part of the galaxy continuum. The count-rate images and the extracted products for all the targets of the above simulation are publicly available from the ESA website16.

Table 2

Breakdown of the sources included in the simulation.

thumbnail Fig. 12

Simulated count-rate image of one of the MOS-mode PRISM exposures. There are 214 targets covered in this MSA configuration, each one observed within a 3 × 1 shutter slitlet. The noise level corresponds to that of a single exposure of 2801s duration. The inset provides a close-up of a few representative traces. The spectra of several of the stronger sources are visible above the sky background, as is the spurious single-shutter sky spectrum from a defective FO shutter (fourth spectrum from the top in the inset).

thumbnail Fig. 13

Simulated count-rate image for the G235M grating exposure matching the PRISM exposure of Fig. 12 and employing the same MSA configuration. The noise level corresponds to that of a single exposure of 2801s duration. One of the spectra at the middle of the inset shows examples of emission lines.

thumbnail Fig. 14

Example of a simulated NIRSpec MOS spectrum. Top panel: Sub-image containing the spectral trace extracted from one of the simulated count-rate images in PRISM mode of a mock galaxy at z = 9.52 having a mass of M = 2.9 × 108 Mʘ, a UV luminosity of ~ 3.6 × 1028 erg s–1 and an AB magnitude of 27.6. Bottom panel: the matching final reduced 1D spectrum plotted in orange. The blue line shows the input spectrum from JAGUAR, and the grey line the profile expected from binning the input spectrum to the detector sampling.

6 Conclusions

In this paper we have described the multi-object capabilities of NIRSpec employing its novel MSA. We have also outlined the baseline operational and data reduction approaches that have been developed pre-launch to address the various unique issues presented by the device.

NIRSpec is a complex instrument, and especially so in MOS mode. Consequently, both the software tools necessary to plan an observation employing the MSA, and the foreseen pipeline needed to reduce the data that it produces, rely entirely on the availability of the high fidelity instrument model (Dorner et al. 2016; Birkmann et al. 2016; Giardino et al. 2016) that is used to predict the dispersion and traces of the spectra produced by each shutter. This model will be verified and updated during the on-orbit instrument commissioning programme. This approach of employing the instrument model as the backbone in the planning and reduction of NIRSpec observations is not likely to change in the future.

The baseline operational scenario described in this paper, which assumes that bad pixels and other defects on the NIR-Spec detector arrays make it necessary to frequently shift the pattern of dispersed spectra projected on the detector arrays, is a cautious one. It assumes that all targets have to be observed in three shutter tall slitlets, with the telescope pointing sequentially nodded so as to shift the targets between the three slitlet shutters between sub-exposures. In addition, longer duration exposures are assumed to be broken up into several dithered sub-exposures employing slightly offset pointings and different MSA configurations. The statistics of the MSA utilisation presented in Sect. 3.1, show that assigning three operational shutters to each target comes at a price, in that the ≃14% failed and non-operational shutters presently carried by the MSA render it only ≃55% efficient compared to a fully functional device. moreover, only a few percent of the targets contained in an oversized input catalogue can be expected to be covered in a single MSA exposure.

Despite these limitations, the expected multiplexing at R ≃ 100 and R ≃ 1000 in fields with a high density of objects exceeds 200 and 50, respectively. It is possible that the master background subtraction approach will eventually be developed to a state where assigning two-shutter or even single-shutter slitlets to each observed target will be attempted in order to achieve higher levels of multiplexing when, for example, carrying out future NIRSpec follow-up observations of deep NIRCam surveys.

As we have seen in Sects. 3.2 and 4.3, carrying out spec-troscopy over roughly three octaves in wavelength with a fixed-sized slit, illuminated by a PSF whose footprint increases as the square of the wavelength beyond 2 µm where it is diffraction limited, presents its own particular set of challenges. We have considered the two opposing extreme cases where the observed object is either a point source or a large extended source of uniform surface brightness. The processing and calibration of MOS spectra for these two categories of objects do not require any additional a priori knowledge on the shape of the object. In the intermediate cases of actual complex-shaped galaxies, the NIR-Spec ‘beam’ at each wavelength formed by the convolution of the top-hat shutter open area and the varying-sized PSF leads to the resulting NIRSpec spectrum effectively probing a significantly smaller weighted segment of the galaxy at its blue end compared to its red end. Only actual on-orbit experience will reveal whether this effect complicates vital tasks such as forming accurate diagnostic line ratios from nebular lines measured in spectra obtained in different NIRSpec grating bands. Despite these challenges and remaining uncertainties – like the evolution of the pattern of operational micro-shutters during launch and with use in orbit – NIRSpec’s predicted in-orbit MOS sensitivity (Fig. 6) and multiplex capabilities (Sect. 3.1) are unprecedented, confirming that JWST, and NIRSpec in particular, will bring near-infrared spectroscopy one step further.

Acknowledgements

NIRSpec owes its existence to the dedication and years of hard work of a great number of engineers, scientists and managers scattered across European and US industry, academia, and the ESA and NASA science programmes. The contributions of these colleagues and institutions are too numerous to list here, but are greatly appreciated all the same. We would like to thank Nina Bonaventura, Jacopo Chevallard and Emma Curtis Lake for their contributions in performing the NIRSpec simulations.

References

  1. Alves de Oliveira, C., Birkmann, S.M., Böker, T., et al. 2018, Proc. SPIE, 10704, 282 [Google Scholar]
  2. Beck, T. L., Ubeda, L., Kassin, S. A., et al. 2016, Proc. SPIE, 9910, 1O [Google Scholar]
  3. Birkmann, S. 2011, Description of the NIRSpec pre-processing pipeline, NIR-Spec Technical Note NTN-2011-004, ESA/ESTEC [Google Scholar]
  4. Birkmann, S. M., Ferruit, P., Rawle, T., et al. 2016, Proc. SPIE, 9904, 92 [Google Scholar]
  5. Birkmann, S., Alves de Oliveira, C., Valenti, J.A., Ferruit, P., & NIRSpec GTO Team 2017, BAAS, 230, 303.03 [NASA ADS] [Google Scholar]
  6. Birkmann, S. M., Sirianni, M., Ferruit, P., et al. 2018, Proc. SPIE, 10709, 708 [Google Scholar]
  7. Birkmann, S. M., Ferruit, P., Giardino, G., et al. 2022, A&A, 661, A83 (Paper IV) [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  8. Böker, T., Birkmann, S., de Marchi, G., et al. 2012, Proc. SPIE, 8442, 1213 [Google Scholar]
  9. Böker, T., Arribas, S., Lützgendorf, N., et al. 2022, A&A, 661, A82 (Paper III) [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  10. Dorner, B., Giardino, G., Ferruit, P., et al. 2016, A&A, 592, A113 [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  11. Gardner, J. P., Mather, J. C., Clampin, M., et al. 2006, Space Sci. Rev., 123, 485 [Google Scholar]
  12. Giardino, G., Luetzgendorf, N., Ferruit, P., et al. 2016, Proc. SPIE, 9904, 1345 [Google Scholar]
  13. Giardino, G., Birkmann, S., Robberto, M., et al. 2019, PASP, 131, 094503 [NASA ADS] [CrossRef] [Google Scholar]
  14. Jakobsen, P., Ferruit, P., Alves de Oliveira, C., et al. 2022, A&A, 661, A80 (Paper I) [NASA ADS] [CrossRef] [EDP Sciences] [Google Scholar]
  15. Karakla, D., Shyrokov, A., Pontoppidan, K., et al. 2014, Proc. SPIE, 9149, 735 [Google Scholar]
  16. Keyes, C. D., Beck, T. L., Pena-Guerrero, M., et al. 2018, Proc. SPIE, 10704, 587 [Google Scholar]
  17. Kutyrev, A. S., Collins, N., Chambers, J., Moseley, S. H., & Rapchun, D. 2008, Proc. SPIE, 7010, 1025 [Google Scholar]
  18. Lightsey, P. A. 2016, Proc. SPIE, 9904, 81 [NASA ADS] [Google Scholar]
  19. Moseley, S. H., Arendt, R. G., Boucarut, R. A., et al. 2004, Proc. SPIE, 5487, 645 [NASA ADS] [CrossRef] [Google Scholar]
  20. Rawle, T. D., Giardino, G., de Oliveira, C. A., et al. 2018, Proc. SPIE, 10698, 1101 [Google Scholar]
  21. Whitaker, K. E., Ashas, M., Illingworth, G., et al. 2019, ApJS, 244, 16 [CrossRef] [Google Scholar]
  22. Williams, C. C., Curtis-Lake, E., Hainline, K. N., et al. 2018, AJSS, 236, 33 [CrossRef] [Google Scholar]

13

The dark subtraction is carried out at the data cube level, i.e. the corresponding frame from a low-noise dark-currents cube is subtracted from each frame of the exposure.

15

This step is not part of the standard NIRSpec data processing pipeline.

All Tables

Table 1

Baseline disperser and filter combinations for NIRSpec.

Table 2

Breakdown of the sources included in the simulation.

All Figures

thumbnail Fig. 1

Geometry of the NIRSpec aperture plane, including the four MSA quadrants (frame in blue, shutters as a grey checkerboard), the fixed slits and IFU aperture (all in black). Each quadrant, labelled Q1 through Q4, contains 365 × 171 shutters. The projected locations of the detector arrays are shown in green, with green dotted lines indicating their extent and hence where the gap between detectors is hidden in the figure by the MSA. The red dashed rectangle marks the ~3′6 × 3′4 on-sky field-of-view, constrained by a field stop at the entrance of the instrument.

In the text
thumbnail Fig. 2

Schematic showing the detailed construction of the shutters of the MSA. The width × length of 105 µm × 204 µm corresponds on average to 268 mas × 530 mas on the sky. Image credit: Valérian Ferruit.

In the text
thumbnail Fig. 3

Monochromatic footprints of the functional shutters of the MSA, incident on the detector plane (the two outer squares), for the blue and red ends of the nominal wavelength range in three representative filter/disperser combinations (top down, respectively): CLEAR/PRISM (blue = 0.6 µm, red = 5.3 µm), F100LP/G140M (0.97 and 1.94 µm) and F290LP/G395H (2.87 and 5.3 µm). These plots demonstrate that when using the prism and medium resolution gratings (the example here is representative of all three R ≃ 1000 gratings), all the spectral traces connecting the two extreme monochromatic images fall within the outer bounds of the detectors. The plots also reveal the impact of the detector gap, as only spectra from shutters appearing in both colours on a single detector are uninterrupted by the gap (i.e. ~80% of shutters for the prism, but <10% for G140M). The F290LP/G395H plot also shows that for this, and indeed all high resolution gratings, only the left-most shutters will have the red end of their spectra falling on the detectors.

In the text
thumbnail Fig. 4

Representation of all non-operational shutters as measured at the end of the final cryo-vacuum ground test in 2017 (Rawle et al. 2018): Failed closed (dark green colour), vignetted shutters (light green colour, and transparent to show failed shutters behind the field stop), and lines and rows of shutters removed from service by the short masks (olive green colour). Failed open shutters are highlighted by red circles. Quadrant orientation is the same as in Fig. 1.

In the text
thumbnail Fig. 5

Average number of spectra that can be accommodated on the NIRSpec detector array in MOS mode without overlap as a function of nvs, the number of candidate targets located within Viable Slitlets on the MSA. The points show the results of 10 000 Monte Carlo trials carried out at the shown values of nvs for the PRISM and the G235M grating. The continuous curves show the fits to Eq. (5).

In the text
thumbnail Fig. 6

NIRSpec sensitivity for a point source centred in a microshutter aperture, using the NRSIRS2 readout mode. The plots show for each disperser the continuum sensitivity as a function of wavelength required to reach SN = 10 per spectral pixel in ten NRSIRS2RAPID exposures with an individual integration time of 1006.7 s (70 groups of 1 frame). The computation was performed using the signal to noise calculation scheme described in Appendix A of Paper I.

In the text
thumbnail Fig. 7

Map of the variation in the transmission through a single MSA shutter for a point source at 2.5 µm as a function of source position. The shutter open area and pitch is marked by the white solid and dotted lines, respectively. The numbers refer to the source locations for which the wavelength dependency of the transmission is shown in Fig. 8.

In the text
thumbnail Fig. 8

Single shutter point source transmission as a function of wavelength for the source locations indicated in Fig. 7.

In the text
thumbnail Fig. 9

Wavelength zero-point offset for a point-source as a function of wavelength and target displacement from the micro-shutter centre in the dispersion direction. For extreme offsets, the core of the point-spread function progressively moves out of the shutter opening and the position of the photocentre becomes sensitive to secondary features like Airy rings. This explains the non-monotonic behaviour of the wavelength zero-point offset at short wavelengths and for large source offsets.

In the text
thumbnail Fig. 10

Measured attenuation performance of the four MSA quadrants, as derived from internal lamp exposures taken in imaging mode during instrument testing. The axes are labelled according to the MSA plane shutter through which the incident light passed. Pixels in white do not have a measured attenuation due to either flux from heavily saturated failed open shutters or bad pixels on the detector.

In the text
thumbnail Fig. 11

Top: Stage 1 of the NIRSpec processing pipeline: generation the count-rate maps starting from the exposure up-the-ramp integration cube. Bottom: Stage 2 of the NIRSpec processing pipeline for a MOS observation for point-like sources. The processing is applied to each source in the target catalogue that provide the pipeline with a source sky position, MOS aperture coordinates (k, i, j) and relative coordinates within the slitlet. Steps 2, 5 and 6 are valid for an ideally-centred source, steps 3 and 7 introduce the necessary corrections taking into account the actual source position relative to the slitlet centre. Yellow ovals indicate the reference calibration data necessary to perform the operation.

In the text
thumbnail Fig. 12

Simulated count-rate image of one of the MOS-mode PRISM exposures. There are 214 targets covered in this MSA configuration, each one observed within a 3 × 1 shutter slitlet. The noise level corresponds to that of a single exposure of 2801s duration. The inset provides a close-up of a few representative traces. The spectra of several of the stronger sources are visible above the sky background, as is the spurious single-shutter sky spectrum from a defective FO shutter (fourth spectrum from the top in the inset).

In the text
thumbnail Fig. 13

Simulated count-rate image for the G235M grating exposure matching the PRISM exposure of Fig. 12 and employing the same MSA configuration. The noise level corresponds to that of a single exposure of 2801s duration. One of the spectra at the middle of the inset shows examples of emission lines.

In the text
thumbnail Fig. 14

Example of a simulated NIRSpec MOS spectrum. Top panel: Sub-image containing the spectral trace extracted from one of the simulated count-rate images in PRISM mode of a mock galaxy at z = 9.52 having a mass of M = 2.9 × 108 Mʘ, a UV luminosity of ~ 3.6 × 1028 erg s–1 and an AB magnitude of 27.6. Bottom panel: the matching final reduced 1D spectrum plotted in orange. The blue line shows the input spectrum from JAGUAR, and the grey line the profile expected from binning the input spectrum to the detector sampling.

In the text

Current usage metrics show cumulative count of Article Views (full-text article views including HTML views, PDF and ePub downloads, according to the available data) and Abstracts Views on Vision4Press platform.

Data correspond to usage on the plateform after 2015. The current usage metrics is available 48-96 hours after online publication and is updated daily on week days.

Initial download of the metrics may take a while.