Step-by-Step ETC Guide for NIRSpec IFU and MIRI MRS Observations of Cassiopeia A

A walk-through of the JWST ETC for the example science program MIRI MRS and NIRSpec IFU Observations of Cassiopeia A is provided, demonstrating how to select exposure parameters for this observing program.

The information contained here is based on ETC 4.0. Proposers and observers should always consult the latest ETC for the most up to date information.

See also: MIRI MRS and NIRSpec IFU Observations of Cassiopeia A, JWST ETC Exposure Time Calculator OverviewProposal Planning Video Tutorials

The JWST Exposure Time Calculator performs signal-to-noise (SNR) calculations for the JWST observing modes. Sources of interest are defined by the user and assigned to scenes that are used by the ETC to run Calculations for the requested observing mode.

For the MIRI MRS and NIRSpec IFU Observations of Cassiopeia A example science program, the focus is on selecting exposure parameters for both MIRI MRS and the NIRSpec IFU. Start by defining a scene with an extended source that represents a knot in the Cas A supernova remnant. Then, run ETC calculations to achieve the desired SNR for MIRI MRS and the NIRSpec IFU. 

The optimal exposure specifications (e.g., the number of groups and integrations) are the input needed for the Astronomer's Proposal Tool (APT) IFU observation template, which is used to specify an observing program and submit proposals.


Define sources for NIRSpec IFU

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

Set up 3 scenes with 3 extended sources. In the Source Editor, select No Continuum under the Continuum tab, since the 2MASS images show little continuum emission at near-infrared wavelengths. Include emission lines in the Lines tab, with line strengths given by Hurford & Fesen (1996) and velocity widths set to 4,000 km/s, which corresponds to the largest line widths of the lines observed by Spitzer-IRS (Ennis et al. 2006, Rho et al. 2008) and slightly exceeds the velocity widths reported in Table 2 of Kilpatrick et al. (2014).


Table 1. Description of sources used for NIRSpec IFU Calculations

Source nameScene nameLine name

Line center
(μm)

Line strength
(10-14 erg/cm2/s)

FMK 1, near-IRNIRSpec IFU Scene 1

ArIII

ArIII

CaII

CI

CIII

OI

OI

OII

SII

SII

SIII

SIII

OI

0.71379029

0.77530669

0.72929443

0.98396232

0.85812877

0.630168

0.63656971

0.73269533

0.67267933

1.0331254

0.90714184

0.95335416

0.77760731

2.905

0.996

0.6225

2.739

1.3695

3.3615

1.079

21.995

8.0095

46.065

13.695

41.5

0.3735

FMK 2, near-IRNIRSpec IFU Scene 2

CI

FeII a4F9/2-a4D7/2

FeII a6D(/2-a4D7/2

PII 3P1-1D2

PII 3P2-1D2

Si VI

Si x 2P1/2-2P3/2

SI 3P2-1D2

SII

SIII

SIII

OI 3P0, 1, 2, -3D1,2,3

0.97848639

1.639

1.251

1.143

1.184

1.955

1.425

1.078

1.0273759

0.90209343

0.94804857

1.135

3.993

2.7

3.7

2

5

6.9

3.5

5.4

95.59

52.03

151.25

3.3

FMK 3, near-IRNIRSpec IFU Scene 3

CI

SII

SIII

SIII

0.97773222

1.026584

0.90139814

0.94731786

3.672

33.32

18.02

53.72


Extended source parameters are the same as those defined for the MIRI MRS knots described in Table 1. 


Define sources for MIRI MRS

Set up 3 scenes with 3 extended sources to represent the 3 knots. Define the following extended sources in the ETC, which are based on spectra measured from the CUBISM software (Smith et al. 2007) and are uploaded as user supplied spectra in ETC.


Table 2. Description of sources used for MIRI MRS Calculations

Source NameScene NameUser Supplied SpectrumExtended Source Parameters
FMK 1, mid-IRMIRI-MRS Scene 1

Flux distribution: 2D Gaussian

Normalization: Integrated Flux

σx = 2.29"

σy = 1.66"

FMK 2, mid-IRMIRI-MRS Scene 2

Flux distribution: 2D Gaussian

Normalization: Integrated Flux

σx = 2.421"

σy = 2.166"

FMK 3, mid-IRMIRI-MRS Scene 3

Flux distribution: 2D Gaussian

Normalization: Integrated Flux

σx = 1.465"

σy = 1.104"

The values of σx and σy are determined by measuring the full width at half maximum (FWHM) of the knots in Spitzer Space Telescope IRAC images from AOR 10737152 in program ID 3310 (PI: L. Rudnick). In all cases, select Do not renormalize under the Renorm tab in the Source Editor.

Define new scenes for each of these sources and assign sources to the scenes by clicking Add Source in the Select a Scene pane. Rename the scenes under the ID tab of the Source Editor pane. In all cases, apply no offsets to the sources in the scenes, meaning the source is in the center of each scene. Note that by checking the box in the Plot column in the Select a Source pane, the spectral energy distribution (SED) of the selected source can be plotted.


Define sources for MIRI simultaneous imaging

Assume that most stars in the MIRI imager field of view will be late M stars, so under the Continuum tab of the Source Editor pane, choose Phoenix Stellar Models and M5V 3500K 5.0; redshift and extinction are set to 0.  Under the Renorm tab, select Normalize in Bandpass, and normalize to Johnson K-band magnitude of 10.5 (Vegamag). Under the Shape tab, choose Point, since you will be simulating a field star.

This source is named Sim. Imaging Star and is assigned to the MIRI Simul. Imaging scene.



Run ETC calculation for IFU

See also: JWST ETC Calculations Page Overview, JWST ETC Creating a New Calculation, JWST ETC IFU StrategiesJWST ETC Images and Plots

In general, you will want to obtain IFU observations such that every pixel detecting radiation from the knot does so with SNR > 5 to give confidence in the detection.  So, in every IFU cube wavelength slice within the FWHM (spectrally speaking) of each line of interest, each pixel within the spatial FWHM of the knot should detect radiation from the knot at SNR > 5The knot is assumed brighter in the center than at the periphery. So if pixels are observed at SNR = 5 at the FWHM periphery of the knot at a half-power wavelength in the emission line, the peak pixel will have a factor 20.5 higher SNR at the peak pixel of the knot at that wavelength. Furthermore, the peak pixel at the peak wavelength of the line will have another factor 20.5 higher SNR than the peak pixel at the half-power wavelength in the emission line. This means the peak pixel at the peak wavelength of the line has a factor of (20.5)2 = 2 higher SNR than the pixel at the FWHM periphery of the knot at a half-power wavelength of the line, or SNR = 5 × 2 = 10.  So, the desired SNR at peak pixel at peak wavelength in all lines of interest is 10.

Select MIRI medium resolution spectroscopy (MRS) Calculation

MIRI MRS observations are taken in each of 3 grating settings: SHORT (A), MEDIUM (B), and LONG (C). For the observation at each MRS grating setting, all 4 channels are observed simultaneously. By obtaining the observations at each of the 3 grating settings, one obtains the complete 4.9–28.8 μm spectrum.

Since the JWST background is position-dependent, fully specifying background parameters is important for the most accurate SNR Calculation. Select Medium for Background configuration, which corresponds to the 50th percentile of the sky background. The positions entered for the FMKs are the following:

  • FMK1 23:23:36.0700 +58:50:08.16
  • FMK2 23:23:29.1050 +58:50:26.71
  • FMK3 23:23:27.3400 +58:50:35.67

Select instrument parameters

Because of the SNR requirements stated above, run ETC Calculations for MIRI MRS spectroscopy for every band in which a desired emission line exists, in order to determine the MIRI MRS exposure parameters needed to achieve this SNR threshold. 

All 4 channels for a particular grating setting have the same exposure time. In ETC, there is a single Calculation for each of the 12 MRS bands, and in each Calculation, the exposure parameters are set such that the desired SNR is achieved: a peak SNR of 10 at the peak pixel (spatially in the IFU slice image) at the peak wavelength (spectrally) of the line (or, for a dust emission feature, SNR = 10 at the peak pixel of the peak wavelength of the dust feature).  The exposure parameters for a given MRS grating are equal to the exposure parameters giving rise to the greatest exposure time for any ETC Calculation in that grating setting. That way, the band requiring the greatest exposure time achieves the desired SNR, while lines or dust features in other bands achieve even greater SNR.

For all 3 knots, determine the number of groups per integration needed to achieve the desired SNR via trial and error. It was found that the required exposure times for FMK2 and FMK3 were lower than for FMK1, as FMK2 and FMK3 have greater surface brightness than FMK1.  Because all 3 knots are observed in the same target group, they must have the same exposure parameters. So FMK1 determines the exposure parameters for the target group.

Throughout, choose the following parameters for all MIRI MRS Calculations:

  • Detector Setup tab:
    • Subarray is set to FULL in the subarray menu since only full frame readout is supported for MRS.
    • Choose the FASTR1 readout pattern, since MIRI MRS Recommended Strategies indicates that this readout pattern is the default readout pattern.  In addition, the FASTR1 readout pattern requires a slightly lower total exposure time to achieve the same SNR as the SLOWR1 readout pattern.
    • The number of Groups per integration are listed in Table 3 for each Calculation, along with the corresponding exposure time (before overhead) for reference. Determine the number of groups by trial and error to achieve the desired SNR for relevant emission line, as indicated by the 2-D SNR image which shows the SNR per pixel in the 2-D scene.
    • Number of Integrations per exposure is kept at the default value of 1;
    • Number of Total Dithers is set to 4 because a 4-point dithering pattern is assumed.

  • Strategy tab:
    • Select the IFU On-Target + Off-Target Pointing option, as this is the option corresponding to using a dedicated sky observation, which is chosen for the MIRI MRS target group.
    • Aperture location is set to Specify position in scene, with X and Y set to 0, which is the same as centered on the source.
    • Aperture radius is set to 1 (arcsec).


Table 3. ETC Calculations for MIRI MRS observations to obtain a peak SNR = 10 for emission lines covered by channel/grating combination.  The calculations assume FASTR1 readout pattern unless otherwise indicated.

Calculation #Source NameChannelWavelength rangeGroups Exposure time (s)
5FMK 1, mid-IR2 (MRS_SHORT)

Medium (B)
8.65–10.14 μm

48532.81
6FMK 1, mid-IR2 (MRS_SHORT)

Long (C)
9.99–11.71 μm

48 - FASTR1

8 - SLOWR1

532.81 - FASTR1

764.48 - SLOWR1

7FMK 1, mid-IR3 (MRS_LONG)

Short (A)
11.53–13.48 μm

27299.70
8FMK 1, mid-IR4 (MRS_LONG)

Short (A)
17.66–20.92 μm

31344.10
9FMK 1, mid-IR4 (MRS_LONG)

Long (C)
23.95–28.45 μm

245 - FASTR1

30 - SLOWR1

2719.54 - FASTR1

2866.79 - SLOWR1

10FMK 2, mid-IR2 (MRS_SHORT)

Medium (B)
8.65–10.14 μm

25277.50
11FMK 2, mid-IR2 (MRS_SHORT)

Long (C)
9.99–1.71 μm

18 - FASTR1

5 - SLOWR1

199.80 - FASTR1

477.80 - SLOWR1

12FMK 2, mid-IR4 (MRS_LONG)

Long (C)
23.95–28.45 μm

50 - FASTR1

8 - SLOWR1

555.01 - FASTR1

764.48 - SLOWR1

13FMK 2, mid-IR3 (MRS_LONG)

Short (A)

11.53 - 13.48 μm

15166.50
14FMK 2, mid-IR4 (MRS_LONG)

Short (A)

17.66 - 20.92 μm

18199.80
15FMK 3, mid-IR1 (MRS_SHORT)

Long (C)

6.52 - 7.66 μm

8 - FASTR1

2 - SLOWR1

88.8 - FASTR1

191.12 - SLOWR1

16FMK 3, mid-IR4 (MRS_LONG)

Long (C)

23.95 - 28.45 μm

24 - FASTR1

5 - SLOWR1

266.40 - FASTR1

477.80 - SLOWR1

17FMK 3, mid-IR2 (MRS_SHORT)

Medium (B)

8.65 - 10.14 μm

15166.5
18FMK 3, mid-IR2 (MRS_SHORT)

Long (C)

9.99 - 11.71 μm

13 - FASTR1

2 - SLOWR1

144.30 - FASTR1

191.12 - SLOWR1

19FMK 3, mid-IR3 (MRS_LONG)

Short (A)

11.53 - 13.48 μm

11122.10
20FMK 3, mid-IR4 (MRS_LONG)

Short (A)

17.66 - 20.92 μm

14155.40

Adjust exposure parameters to achieve desired SNR

As stated above, all 4 channels for a given grating setting have the same exposure time. The minimum number of groups that give a peak SNR of 10 for emission lines and dust features covered by the various MRS channels was determined above. 

As an example, if you focus on the Long (C) grating for all 3 knots (Calculations #6, 9, 11, 12, 15, 16, 18), you'll see that the greatest exposure time is Calculation 9 (channel 4), with 245 Groups per integration (2719.54 s). You will thus choose 245 groups for all Long (C) grating observations for this program, where you estimate a peak SNR of 10 for the OIV line at 25.9 μm (channel 4C) in FMK 1, with higher peak SNR values for the OIV lines in FMK 2 and 3, and higher peak SNR values for the SIV line at 10.5 μm (channel 2C) in all three knots.

Similarly, you will find the optimal number of groups for the Medium (B) grating to be 48, where the ArIII line at 9.0 μm in FMK1 will have a peak pixel SNR of 10 (channel 2; Calculation #5), with higher peak SNR values for the other knots. The number of groups chosen for the Short (A) grating is 31, so that the peak dust emission feature at 20.6 μm has a SNR of 10 (Calculation #8; channel 4) and the peak pixel SNR of the NeII line at 12.8 μm (channel 3) exceeds 10 (Calculation #7).

Select MIRI simultaneous imaging Calculation

Along with the MIRI MRS observations, also include simultaneous imaging with the MIRI imager. Determine the brightest star that could be observed with the longest exposure time setting of the imager without saturation. Use the F1130W filter, as this allows observing the brightest stars without saturation, since most stars will not have significant excess emission above that from the stellar photosphere.

Similar to the MIRI MRS Calculations, choose Medium for Background Configuration and enter the coordinates for each knot.

Select instrument parameters

Here, assess the SNR in Calculation #21:

  • Instrument Setup tab - Filter is set to F1130W

  • Detector Setup tab -
    • Subarray is set to FULL
    • Choose the FASTR1 readout pattern because it needs to be the same readout pattern as the MRS observations
    • Number of Exposures per specification is set to 1 because you are only interested in determining the magnitude of the field star that saturates for the same exposure time as the MRS observation
    • Number of Integrations per exposure is set to 1
    • Number of Groups per integration is set to 245 for the Long grating setting, 48 for the Medium grating setting, and 31 for the Short grating setting, the same as for the MRS observations.

  • Strategy tab -
    • The Imaging Aperture Photometry is the only option at the top, so it is chosen.
    • Under Aperture location, Specify offsets in scene is chosen, with X and Y set to 0
    • Aperture radius is set to 0.3 (arcsec) which is the default value for MIRI imaging in ETC.
    • For Sky annulus, Inner radius and Outer radius are set to 0.45" and 0.7 (in arcsec), respectively

The magnitude under the Renorm tab of the Source Editor is then varied until the Calculation returns a saturation warning. This happens for Johnson K magnitude less than 13.5 magnitudes.  So K = 13.5 is the saturation limit for the simultaneous imaging obtained for the Long grating setting. Even brighter stars could therefore be observed in simultaneous imaging without saturation for the Medium and Short grating settings, for which the Groups per integration is less.

Split MRS observations to avoid Data Volume issues

When the APT is designed with these MRS observations and Smart Accounting is run with the Visit Planner, there is an error in the MRS observation of the science targets concerning data volume.  The large number of Groups per integration for the Long grating causes the error, so this requires setting the readout pattern to SLOWR1 in ETC for all the calculations involving the Long grating setting.  When this is done, the calculation requiring the longest integration is still Calculation 9, with 30 Groups per integration (2866.79s).  After determining this, the exercise with the simultaneous imaging is repeated, and it is still found that K=13.5 is the saturation limit for the simultaneous imaging obtained along with the Long grating setting.

Select NIRSpec IFU Calculation

NIRSpec IFU observations are taken using the G140H grating with the F100LP filter, as discussed in the main article. The goal is to detect as many emission lines as possible. With G140H/F100LP, this includes [CI] at 0.9824 and 0.9850 μm, [SII] at 1.0287–1.0370 μm, and various lines longward of the [SII] line out to ~ 1.9 μm as reported by Gerardy and Fesen (2001). Run ETC Calculations for NIRSpec IFU spectroscopy with this grating and filter combination to determine the exposure parameters needed to achieve the desired SNR of >10 at the peak pixel at the peak wavelength on the [SII] line at ~ 1.03285 μm.

Similar to the MIRI MRS Calculations, choose Medium for Background Configuration and enter the coordinates for each knot.

Select Instrument parameters

Here assess the SNR. For FMK1, focus on Calculation 1 (for FMK2 and FMK3, focus on Calculations 3 and 4, respectively):

  • Instrument Setup tab - Grating/Filter Pair is set to G140H/F100LP

  • Detector Setup tab -
    • Subarray is set to FULL (only FULL frame readout is supported for the NIRSpec IFU);
    • Chosoe the NRSIRS2 Readout pattern because this readout pattern is an IRS2 readout pattern, which gives lower correlated noise
    • Number of Total Dithers is set to 4 because the IFU On-Target + Off-Target Pointing option was selected under the Strategy tab
    • Number of Integrations per exposure is set to 1
    • Number of Groups per integration is set to 8, 6, and 5 for FMK 1, FMK 2, and FMK 3, respectively, in Calculations 1, 3, and 4, respectively, in order to achieve the desired SNR (SNR > 10 at the peak pixel at the peak wavelength) for all emission lines of interest from these FMKs. Unlike the MRS observations, the observations of the FMKs are obtained separately, not in a target group.
    • Running Calculation 1 for FMK 1 with these parameters gives a SNR of ~ 10 at the peak wavelength of the [SII] feature between 1.0287–1.037 μm wavelength (see Hurford and Fesen, 1996). For FMK 2 and FMK 3, the SNR values at the peak pixel at the peak wavelength is also ~ 10 for this line. These SNR values are provided graphically in the plot displayed under the 2-D SNR tab in the Images pane at the lower-left of the screen when the Calculations tab of the workbook is selected.

  • Strategy tab -
    • Select the IFU On-Target + Off-Target Pointing option, as this is the option corresponding to using a dedicated sky observation.
    • Aperture location is set to Specify position in scene" with X and Y set to 0
    • Aperture radius is set to 1 (arcsec) for all bands

Determine if a dedicated background is needed for NIRSpec IFU observations

After downloading the .tgz file for each of the NIRSpec IFU calculations (Calculations 1, 3, and 4) and expanding the file, within the /cube/model/ folder are files with a naming convention of "cube_flux_N.fits" and "cube_flux_plus_background_N.fits," where N is between 0 and 29, inclusive. These are the y-axis slices of the scene cube assumed by ETC.  Add the cubes from all the "cube_flux_N.fits files" together, and this gives the total scene cube assumed by ETC containing just the science target (i.e., the FMK) emission. Do the same for the "cube_flux_plus_background_N.fits" files to get the total scene cube assumed by ETC containing both science target (FMK) emission and background emission.

From this exercise, it is determined that, over the spectral FWHM span of the 1.03 μm [SII] line for all knots, at the edge of the 3" × 3" field probed by the ETC (which is within the spatial FWHM range for FMK1 and comparable to the spatial FWHM range for FMK2 and FMK3), the background surface brightness is ~10% of that of the total (background plus FMK) surface brightness. This is a sufficiently high level of background emission relative to science target emission that, to be safe, it is decided to add dedicated background observations for the NIRSpec IFU observations, in order to subtract the contaminating background emission.

For more on strategies to deal with NIRSpec backgrounds, please read NIRSpec Background Recommended Strategies.

With the exposure parameters now determined for this program,   populate the observation template in APT. See the Step-by-Step APT Guide for MIRI MRS and NIRSpec IFU Observations of Cassiopeia A to complete the proposal preparation for this example science program.



References

Ennis, J. A., et al., 2006, ApJ, 652, 376
Spitzer IRAC Images and Sample Spectra of Cassiopeia A's Explosion

Gerardy, C. L., & Fesen, R. A., 2001, AJ, 121, 27812781
Near-Infrared Spectroscopy of the Cassiopeia A and Kepler Supernova Remnants

Hurford, A. P., & Fesen, R. A., 1996, ApJ, 469, 246
Reddening Measurements and Physical Conditions for Cassiopeia A from Optical and Near-Infrared Spectra

Kilpatrick, C. D., et al., 2014, ApJ, 796, 144
Interaction between Cassiopeia A and Nearby Molecular Clouds

Rho, J., et al., 2008, ApJ, 673, 271
Freshly Formed Dust in the Cassiopeia A Supernova Remnant as Revealed by the Spitzer Space Telescope

Smith, J. D. T., et al., 2007, PASP, 119, 1133
Spectral Mapping Reconstruction of Extended Sources




Notable updates
Originally published