NIRSpec MPT - Planner

The JWST NIRSpec MSA Planning Tool planning interface is presented and described in detail. The steps to create a Plan containing targets, MSA configurations, dithering strategies, and exposure setup are discussed.

On this page

The NIRSpec MSA Planning Tool (MPT) is the official software planning tool to design a NIRSpec MOS observationIts main purpose is to optimally plan micro-shutter assembly (MSA) observations, given a Catalog of source positions and a series of planning parameters. Constraints, such as the bars between shutters and inoperable shutters, are fully accounted for in MPT. MPT contains the precise coordinate transformation between the MSA plane and the sky plane, taking into account the distortion of the combined optical path of the telescope and NIRSpec optics.



An overview of the MPT Planner

The purpose of the MPT Planner is to allow the user to define parameters for input to the algorithms that produce the final pointings, MSA Configurations, and target sets. An MSA Configuration is defined as a set of open and closed micro-shutters in the MSA. 

The user must be connected to the internet when running the MPT Planner so it can check whether an aperture position angle is feasible when the user begins to create a Plan.

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

The workflow can be briefly summarized:

  • Before running the Planner, the user must ingest an MSA source Catalog into the Targets folder in APT. There, APT provides tools needed to optionally filter the Catalog to subsets of sources. Users normally define a Primary Candidate List (and an optional Filler Candidate List). If no candidate sets are defined, the entire Catalog will become the Primary Candidate List.
  • Next, the user should move to the MSA Planning Tool by clicking the MSA Planning Tool icon in the APT Tool bar, and select the Planner tab. The Planner pane is shown in Figure 1. 
  • The user specifies parameter values in the MPT Planner pane. The appropriate selection of values depends on the observer's science goals. For examples of how the choices made in the Planner affect the results, see the MPT Parameter Space, MOS Recommended Strategies, and MPT Computational Performance articles.
  • Once a set of Planner parameters are defined, a Plan can be generated. Observers can generate several Plans which are saved when they save their APT file. 
  • After assessing the quality of individual Plans in the MPT Plans tab, the user can then select one or more Plans from which multi-object spectroscopy (MOS) observations will be made. When an observation is created from a Plan, (see NIRSpec MPT - Plans) fields in the observation template in APT are populated for the user.

Reminder: the MSA Planning Tool can be accessed from the icon of the same name in the APT tool bar, which spans the top of the APT GUI window. Likewise, the APT Multi-Object Spectroscopy (MOS) template can be accessed by clicking the Form Editor icon in the APT tool bar. The text below the selected icon appears in blue font.

Figure 1. The MPT Planner in the MSA Planning Tool



MPT section 1: Candidate lists

The MPT is designed to create Plans that use 2 categories of science sources: a Primary Candidate List, and a Filler Candidate List. These lists are created from the input MSA source Catalog in the Targets folder of APT that was uploaded following the instructions in the article NIRSpec MPT - Catalogs

When a user clicks the Generate Plan button at the bottom of the Planner pane, the tool will attempt to maximize the number or the summed weight of Primary sources obtained in the configurations it creates. For this reason, these sources will directly influence the pointing selection for either single pointing or dithered observations. The Primary Candidate List is required to generate a Plan in MPT. At the derived best Pointings, MPT will use the (optional) Filler Candidate List to fill available areas in the MSA configuration in order to observe more sources in each exposure. The algorithms will also attempt to optimize the number of fillers in all exposures of the Plan (e.g., through a set of dithers), but the fillers are selected only after the primaries are completed, and do not define the pointings. Only the Primary Candidate List determines the selected Pointings.

Observers should place all sources in the field into a single parent Catalog that will be used to define observations in the field. The candidate lists (Primary Candidate List and Filler Candidate List) are derived from this single Catalog. APT is unable to work with primary candidates from one Catalog and fillers from a different Catalog. Users will not be able to make observations from Plans made with candidate lists derived from different Catalogs.

A checkbox labeled MOS + Fixed Slit Mode is now an available option in this section. If clicked, MPT will proceed to plan for sources in the MSA after determining the pointing of the MSA required for observing a specified source in a specific fixed slit. See Section 8 below which describes the specification of the sources and fixed slits.  


MPT section 2:  Plan angle

A given NIRSpec MSA observation must be executed at a specific telescope orientation angle so that the selected sources will fall into the open shutters as planned. Because of the telescope's orbital position and sun shield constraints, a given orientation may only be possible for limited periods of time during the year or not available at all. The JWST Target Visibility Tools can be used to determine the range of feasible orientation angles for a target throughout the telescope's orbital cycle.

For most NIRSpec MOS observations, it is recommended that users experiment with several different feasible aperture position angles (Aperture PA) prior to initial proposal submission. The Planned Aperture PA field will contain the angle used during planning. Once a proposal is accepted, it will be assigned a fixed orientation (an Assigned Aperture PA) and a corresponding window of time when observations will be made. These values will appear in the MOS observation template. MOS observations must then be re-planned at the assigned angle.

For proposal planning and submission, use any feasible Aperture PA from the orientation angles provided by the JWST Target Visibility Tool for the time of observation. For final program submission (containing flight-ready program updates), use the fixed orientation Assigned Aperture PA that has been assigned to your observation by the schedulers at STScI. This assigned angle will correspond to one or more plan windows for execution in the scheduling timeline. This is explained in more detail in the MOS and MSATA observing process and the NIRSpec MPT - MOS and MSATA Program Updates articles.

The Aperture PA (an angle between 0 and 360 degrees) specifies the orientation of the cross-dispersion axis of the MSA aperture measured east of north. Figure 2 shows how this angle is measured on the sky. The Y-axis represents the cross-dispersion direction of the MSA.

Programs that have an orientation or timing special requirement added to the observation can restrict scheduling opportunities. Most NIRSpec MOS programs should be submitted without added orientation restrictions, in order to allow the schedulers to find suitable windows for them. 

Figure 2. Aperture position angle
The black arrow represents the North direction. The blue arrows represent the direction of the Ideal X and Y axes. Dispersion is along the X-axis. The aperture position angle (Aperture PA, θ) is shown as measured on the sky.



MPT section 3: Slit setup

In this section the user defines the shape of the Slitlet and the Source Centering Constraint.

Each selected MSA target in a Plan will be observed with the same Slitlet shape and Source Centering Constraint

Slitlet

The NIRSpec MSA is composed of nearly 250,000 micro-shutters. By commanding open micro-shutters, it is possible to create longer slits (in the cross-dispersion direction only) which are referred to as slitlets. There are 4 selectable Slitlets, each with a different number of adjacent open micro-shutters: 1, 2, 3, or 5. The spectrum from a slitlet will be segmented, with bar shadows between the individual shutters making up the slitlet. The yellow and black sketch in the Planner, shown in Figure 3, illustrates the options for slitlet length

MPT will, by default, avoid the selection of primary sources with close neighbors that would result in more than one primary source in the same shutter. Additionally, there is an option in the Parameters section of the template to allow more than one primary source per shutter.  For pipeline reduction purposes, just one of the sources will be selected as the primary source for the slit.

Each open micro-shutter, when projected onto the sky, has dimensions of only 0.20" in the dispersion direction by 0.46" in cross-dispersion. These are the internal (open) dimensions. Each shutter is bordered by a bar of width ~0.07", which vignettes a small area of the sky around it. In any given exposure, a particular source may fall anywhere inside a given shutter, or behind the bars. The position of the source with respect to the shutter will affect its observed flux. 

Figure 3: Options of available NIRSpec MOS Slitlet shapes

The available MOS Slitlet shape options are: 1, 2, 3, and 5 shutters. Open shutters are shown in yellow. These are the only slitlet lengths that are available. If longer slitlets are needed, the MSA Configuration Editor can be used to design an MSA configuration.

Slitlets of any size may be created, modified, or deleted using the MSA Configuration Editor, which is available at the observation level in APT. The MSA Configuration Editor can be used to append a new set of MSA sources to an existing MSA configuration designed with the automatic MPT Planner, for example. Or, it can be used from scratch to design a custom MSA configuration with slits of different lengths for different size sources, for example. However, it is important to be careful about nodding when slit lengths differ in the same MSA configuration.

Source Centering Constraint

The Source Centering Constraint in the Planner offers 5 choices of increasing shutter margins to constrain the positioning of a planned source within the shutter to help reduce slit losses and photometric uncertainty. As shown in Table 1, the larger the margin, the more limited the area available for centering the source. Generally, larger margins result in fewer selected targets, although this effect depends strongly on the source density of the Primary and Filler Candidate Lists. The selected constraint is applied to all sources in a PlanTo work around this limitation, one could make 2 separate MPT Plans using different centering constraints that could be applied to different subsets of sources. The input Catalog would need a column or two for identifying which sources should have which source centering constraint. Then the Catalog could be filtered in MPT into 2 separate Candidate Lists for making separate Plans with the different constraints. After the Plans are made, they can be merged into a single observation. Plan merging is explained in the MOS Strategies article.

The default constraint is the Entire Open Shutter AreaThe figures in column 2 of Table 1 represent a single micro-shutter. The yellow area represents the area available to a potential target corresponding to the indicated Source Centering Constraint. The exact dimensions of the constrained area in the figure are not precise, they are just suggestive. The actual applied source centering constraint can be seen as a dashed white line when viewing the collapsed shutter view in a MOS exposure. This useful view also shows the positions of the selected targets relative to their positions in their own shutters.

To be included as a successful source in a Plan, the source center must fall within the yellow area (the central area of the shutter bound by the specified margin). A more restrictive shutter margin will limit the photometric error, but may also cause the overall efficiency of the Plan to drop. This parameter is relevant primarily for point sources, which can suffer from large photometric inaccuracies due to limitations in the pointing accuracy, especially if a source happens to be centered near the shutter edge where the throughput drops quickly. The shutter margin translates to a minimum possible slit transmission of a point source relative to a perfectly centered point source, anchored at 2.95 μm (column 3 of Table 1). Of course, the actual throughput will depend on the wavelength of the observation and the source shape (point vs. extended).

Users observing extended sources should avoid over-constraining the shutter margin since source centering is less critical, and it could decrease the overall number of targets observed per MSA configuration. 


Table 1
. Source centering options within an individual micro-shutter

Source centering constraintFigure Minimum relative flux transmission at 2.95 μm

Margin
(milliarcsec)*

Unconstrained

(sources can be behind the MSA bars)

12%

0

Entire Open Shutter Area (default)


30% 35

Midpoint


62% 59

Constrained


75% 72

Tightly Constrained


85% 91

 The Source Centering Constraints are based on the average shutter dimensions. The path losses, indicated as the minimum relative flux transmission are for a point source. They were measured relative to a perfectly centered source at 2.95 μm. At larger wavelengths, the PSF is broader, and the slit losses are greater than those at shorter wavelengths. The sketches shown in this table are representative only and do not reflect the actual sizes. Each shutter is surrounded by MSA bars (which are not depicted in the figures). In the Unconstrained case, a source centered directly behind the MSA bar is acceptable. Due to the FWHM of the source point spread function (PSF) compared to the shutter size, part of its light will enter the MSA shutter.

As a result of the tiny size of a micro-shutter, moderate flux can be lost outside of the shutter. Slit losses depend not only on the location of the source in the slit, but also the wavelength, since the PSF increases with wavelength, as shown in Figure 4. The "minimum relative flux transmission" value in the table is the minimum percentage of flux at 2.95 μm that makes it through the MSA shutter, compared to a perfectly centered point source. These values were measured from ground test data using a lamp, but the relative transmission for a source can be more accurately estimated in the ETC. The minimum transmission is for a source in the corner of the shutter for a given margin, corresponding to source offsets from shutter center of 1/2 the shutter pitch minus the margin. For reference, the shutter pitch (mid-bar to mid-bar) values are ~ 0.27" × 0.53", and the bar width is ~0.07".

* The margins shown in the last column are measured from the mid-bar position inward, toward the center of the shutter.


Figure 4. Slit losses and wavelength

The NIRSpec PSF at 5 wavelengths. The rectangle is the size of a micro-shutter. Slit losses and total transmission depend critically on wavelength. The throughput can be affected by diffraction at the aperture edges. These effects depend on the location of the source within the shutter.



MPT section 4: Pointing setup

In this section, the observer can define dither and nodding patterns for the observation. Most JWST observations will require dithering and NIRSpec users are encouraged to make use of this feature. Not only is dithering critical for improving the sampling, but it can help to estimate and remove light leakage through the MSA's finite contrast shutters in MOS mode. More information on the advantages of dithering can be found in the articles NIRSpec Dithering Recommended Strategies and NIRSpec MOS Dither and Nod Patterns.

Nod in Slitlet

The telescope can be repositioned slightly between exposures to place the targets into different shutters within their respective slitlets in an MSA configuration. This is called nodding. If nodding is selected (by clicking the checkbox for Nod in Slitlet in the Planner), the same MSA configuration will be used to observe the target in multiple exposures, usually once for each open shutter in the slitlet. In the 5-shutter slitlet, there is also the option of just 3 exposures, with nod positions in the central, top and bottom shutters only. This field, called exposures per configuration is visible only when the 5 Shutter Slitlet and the Nod in slitlet options are selected.

When nodding is selected, the pipeline will automatically perform a background subtraction using the various nod positions. Nodding as a method for obtaining local background measurements is appropriate for point sources, but cannot be used for this purpose for more extended sources.

Fixed Dithers

In addition to nodding, which moves the telescope very slightly to observe sources in different shutters within their respective slits, users have the ability to add larger dithers

Fixed, or primary, dithers will require a reconfiguration of the MSA in order to re-observe the same targets at a different location in the MSA field of view. Fixed Dithers are specified in units of integer shutters in the dispersion and/or cross-dispersion direction, and represent average offsets from the initial pointing to apply to a new pointing. The offsets are "average" in the sense that each MSA source may move by a slightly different amount between pointings due to optical distortions. The dither algorithm accounts for relative distortions between pointings, so dithers of any size can be specified. There is no limit to the size of the dither that may be specified, but larger dithers will naturally result in loss of targets due to diminished areal overlap of sources in the quadrants. To create a Fixed Dither pattern, simply click the Add button and define the offsets. Offsets are in units of micro-shutters. A positive offset in dispersion moves the MSA to the right (sources to the left) in the MSA Shutter View. A positive offset in the cross-dispersion direction moves the MSA upward (sources downward) in the MSA Shutter View. Figure 5 shows an example with 2 fixed dithers (3 dither points).

For each new dither that is added to the Pattern table in APT, an additional primary pointing will result, along with an associated MSA configuration. This in turn results in an additional exposure or a set of nodded exposures. The number of (MSA) configurations needed to execute the entire set of dithers is computed and displayed beneath the table of dithers shown in the GUI. 

With Fixed Dithers, the default behavior is that all planned Primary sources are observed at all dither points (i.e., they are "completed"). Since it is only possible to obtain completed sources in areas of the MSA that overlap at different dither points, this will leave areas of the MSA unused.

One option to improve the use of the MSA real estate is to select Partially Completed Sources in the Planner when Fixed Dithers are used.

When Partially Completed Sources is selected, the Plan will include Primary sources observed at some, but not all, dither points. This is done iteratively; after determining the set of completed Primary sources, MPT will add in Primary sources that appear in n-1 dither points, where n is the total number of dither points. Then, the Primary sources in n-2 dither points are added, and so on. The user-specified number of Minimum Dither Points is provided to limit how far this process is allowed to go. If a value of 1 Minimum Dither Points  is selected, sources in areas of the MSA with no overlap between dithers can become populated with other Primary sources. Finally, if Fillers are included in the Planner, they are added in using the same iterative process, to maximize the number of exposures of these as well, but only after the best pointings have been selected using the Primaries alone.

Adding more sources into the Primary Candidate List (perhaps with lower weights), or simply including a Filler Candidate List, may also help to fill the MSA configurations. These options are available even without dithering, and can be used in addition to Partially Completed Sources when dithering is used. Finally, the MSA Configuration Editor can be used after the fact to add slitlets to the MSA configuration(s) designed with MPT to observe additional sources.

A dispersion-direction offset of 80 or more shutters can be used to fill the wavelength gap that will be present in many medium or high-resolution grating spectra.  APT will soon have an option to avoid the selection of source shutters that would result in wavelength gaps in observed source spectra.

Figure 5. Fixed dither parameters

In this figure there are 3 primary dither points. The first entry is for the initial dither point. Two dithers have been specified, resulting in 3 entries in the table, which will require 3 MSA configurations to execute the observation, which is indicated in the text below the Pattern specification. In this example, Partially Completed Sources has been elected, and a minimum of 1 dither point has been selected for Minimum Dither Points. This will help to fill the MSA by allowing sources with as little as 1/3 of the exposure time compared to the completed sources in the Plan.


MPT section 5: Exposure setup

In section 5 of Figure 1, the observer should select the gratings and filters that will be used in the Plan. This step is necessary to prevent spectral overlap, as the traces of the prism, medium-resolution, and high-resolution spectra have different length and curvature. Consequently, configurations should not be used with gratings that were not originally specified in the Planner.  

Multiple sources per row

While the MSA Planning Tool is designed to prevent spectra from overlapping on the detector, including 2nd order spectra, there are some science cases where overlapping spectra can be tolerated. The checkbox Multiple Sources per Row (shown in section 5 of Figure 1) is offered to optionally allow for overlap in these cases. The behavior of this option depends on the choice of dispersing element or elements. In the case where the prism is used exclusively, the Multiple Sources Per Row option is not available. The prism allows multiple sources per row by default because the spectra do not extend beyond ~500 pixels in the dispersion direction. In the case of the gratings, or gratings plus the prism in the same Plan, the behavior of the Multiple Sources Per Row checkbox is summarized in Table 2.


Table 2. Using the Multiple Sources Per Row option

Grating optionMultiple Sources Per Row Selected ?Result
Any gratingYesHigh (R - 2,700) and medium (R - 1,000) resolution grating data are allowed to overlap spectrally. Spectra will overlap. The user can tune the horizontal source separation using the field Min Separation ___ Shutters. A separation as small as 4 shutters in dispersion is allowed. 
Any gratingNoHigh (R - 2,700) and medium (R - 1,000) resolution grating data are not allowed to overlap. Targets will be separated enough to avoid spectral contamination.
PRISM + grating(s)NoGratings drive the multiplexing and no spectra will overlap (including the short prism spectra). There will be significant unused space on the detectors in the prism exposures.
PRISM + grating(s)YesThe multiplexing will always be driven by the prism. This will result in overlap of grating spectra if the prism + gratings are planned together.
PRISMN/AThere is no option to tune the horizontal (dispersion) separation of targets with the PRISM.  The spectral range is fairly short on the detector already allowing for many targets in the MSA, and most people would want to have uncontaminated prism source spectra. Currently, APT uses a value of 181 shutters to separate targets in the dispersion direction when using the prism.



MPT section 6: Masking setup

In Section 6 of Figure 1 the user can prevent the selection of sources in their MPT Plan that would suffer from spectral losses at wavelengths that are cut off by the detector edges anywhere over the nominal wavelength bands specified for their Plan in Section 5.  There are options to independently prevent red-end and blue-end losses due to the detector edges, as well as wavelength losses between the 2 detectors (i.e., in the gap between detectors). Additionally, there is independent control using checkboxes to prevent cutoffs in both the Primaries and Filler sources. Checking any one of the checkboxes called No Red Cutoff, No Blue Cutoff, or No Gaps may result in the reduction of the number of available shutters, which will be shown in the fields labelled Available Shutters. One can select any number of checkboxes for the Primaries and Fillers. The remaining grand total of available shutters will be indicated. Each of the cutoffs, and associated number of shutters affected, is dependent upon the selected grating-filter combinations in Section 5. If multiple gratings are observed, they must all satisfy the restrictions. 

Note that spectra from the medium-resolution gratings and Prism can satisfy all 3 restrictions (for a limited number of shutters), yielding complete spectra that fit within one detector. Spectra from the high-resolution gratings are longer; coverage can be maximized by avoiding the red and blue cutoffs, allowing the spectrum to span the detector gap.

The resultant map of available shutters can be exported using the Export Mask buttons. It is also possible for users to design masks of preferred shutters outside of MPT and import these using the Import Mask button. The user may then select an imported mask to be applied to Primary and/or Filler targets. The imported mask may be used on its own or in combination with the checkboxes. An input mask should be a csv format file.  Values of "0" or "1" are used for shutters that are desired to be available for planning, or unavailable, respectively.



MPT section 7: Wavelength Range Setup

For finer control of the wavelength coverage for each source, it is now possible to define wavelength ranges in the input Catalog. Up to five wavelength ranges may be defined as (startwave1, endwave1) … (startwave5, endwave5), as shown in Figure 6. Corresponding checkboxes are available in MPT Section 7 (Figure 1) that may be selected independently for Primaries and Fillers. When selected, each wavelength range is required to be observed completely by one or more of the selected gratings (or PRISM) with no red cutoff, no blue cutoff, and no gaps.

Figure 6 shows an example Catalog setup from JWebbinar #30. For the highest priority source (id 2661), uninterrupted coverage is required from startwave1 = 3.9 µm to endwave1 = 4.9 µm. No other restrictions are required for this source, so the remaining startwave and endwave entries are set to -1. For other sources in this example, coverage may be required for one or more spectral lines. One column defined for [OIII] (not used by MPT) gives the observed wavelength as a function of redshift, for example 3.66 µm for z = 6.31 (id 1961). The user then defined startwave2 = 3.64 µm to endwave2 = 3.68 µm to cover [OIII]. Similarly, startwave3 = 4.77 µm to endwave3 = 4.81 µm is designed to cover Hα for that source at z = 6.31. When running MPT, the user may then select one or more of these ranges for inclusion in the planning.

At each test pointing of the search grid, MPT builds an MSA configuration while ensuring that each selected source's wavelengths of interest are covered by one or more of the gratings specified in the Planner. Detector wavelength cutoffs for each grating depend on the source's shutter location in the MSA. The entire wavelength region of interest for a given source must be covered by the dispersers/gratings specified in the Planner before they can be added to the MSA configuration at that grid point. Sources that do not meet the requirement are then re-considered for inclusion in candidate MSA configurations at the remaining test pointings of the search grid, since their shutter locations will have changed. The most optimal MSA configuration determines the selection of the best pointing by MPT.  Specifying the minimum extent required for each wavelength of interest helps to maximize the number of observed sources.

After running MPT, the resulting wavelength coverage for each source may be checked by exporting the MSA Target Info file (via FileExport…).

There are a few specific considerations when using this Planner feature:

  • The wavelength range checkboxes are enabled only if there are corresponding columns for the wavelength pairs in the Catalog.
  • If the source Catalog or Candidate Set is changed, any existing checkbox selections will be cleared and the ranges that are editable will be updated to match the wavelength range columns in the new Catalog.
  • Catalog columns must be labeled as startwave(n), and endwave(n), where the parenthetical n is an integer from 1 to 5.  See Figure 6 below.
  • Wavelength ranges for a source are ignored if the value in the wavelength start column is a negative value or 0.
  • Startwave values must be < endwave values, or the range is ignored by MPT during planning.

Figure 6. Example Catalog with wavelength regions of interest

Wavelength regions of interest are indicated in a Catalog as having up to 5 pairs of columns (startwave1, endwave1), (startwave2, endwave2), etc. in units of microns. Negative values will instruct MPT to skip planning around a given wavelength range for a given source.


MPT section 8: Search Grid / Slit Source Search

See Also: NIRSpec MPT - Computational Performance

The MPT Planner can develop a plan for the pointings in a MOS observation in one of 3 ways. The pointings define the position on the sky of the reference point (the center) of the MSA. The 3 optional ways are:  

Using a Search Grid

In order to find an optimal pointing on the sky at which to begin an observation with dithers, a search grid is constructed to the specification of the user. Each grid point represents a test pointing. The grid is aligned with the orientation of the dispersion and spatial axes of the MSA at the specified Aperture Position AngleAt each grid point, the algorithm attempts to find the maximum number of high priority sources that can be observed given constraints imposed by the MSA and the detectors. As part of this process, the tool avoids inoperable shutters and will attempt to prevent overlapping spectra, unless otherwise specified by the user.

The total number of observed sources, or the sum of their weights (if Weights are used in planning, see below) are tallied and saved at each test pointing. The result is called a heat mapThe heat map is used internally, but is not a delivered product. There are a few critical parameters that affect the computational time needed to create a Plan. The size of the Primary Candidate List, the number of MSA configurations, and the number of grid points are the most relevant.

In this section of the MSA Planning Tool, the user defines the size of the search grid, its Center, and the Search step size mentioned above as shown in Figure 7. The entire extent (Center RA and Dec, the Width and Height) of the input Primary Candidate List at the specified Aperture Position Angle is used to define the default area over which test pointings are examined. The default value of Search Step Size is 30". If the default grid spacing value is changed, the tool will re-compute the number of grid points that will be searched, and will display the result next to the selected spacing as shown in Figure 7. Normally, reducing the step size will improve target numbers. Grid step sizes in the range of 2"–12" give similar Plan results in many fields, for typical source densities. Even reducing to a step size as small as 1/3 of a shutter width (~85 milliarcsec) may provide improved results, but at the expense of computational time and memory. The computational performance was tested and guidance is provided in the article MPT - Computational Performance.

The Search Step Size can dramatically affect the time it takes to compute a Plan. A smaller value will increase the number of pointings to be tested. The number of pointings in the grid is calculated and displayed next to the selected Search Step Size. Keeping the search grid to less than 10,000 total pointings is advised for MPT Plans to run in a reasonable amount of time on most computers, with moderately sized Catalogs of about 10K sources. Users should experiment in any case.

Search grids that subtend RA = 0.0 will cause MPT to fail. A workaround may be to break up the source Catalog and Plan separately.

For any added parallels, the optimal search grid parameters may also depend on the placement and coverage in the other instrument field. The Aladin FoV tool can be used to help select the best values of the MPT search grid parameters.

Figure 7. Search Grid parameters window


The parameters Width and Height are measured in units of arcsec along the MSA aperture X and Y axes as shown in Figure 2. The search grid parameters are editable to allow the user to limit the search area, or move it to a particular region on the sky. The defined area should typically be within the area covered by the dither pointings. Typically the values provided by MPT will suffice, but it is sometimes useful to visualize the footprint of the MSA at a specific position using Aladin, the viewer provided by APT, when choosing these search grid parameters. There are additional drawing tools in Aladin that could help determine appropriate values for these search grid parameters.  

After starting Aladin from APT, note that the default view in the APT GUI changes from Form Editor to View in Aladin. In order to return to the MPT, click on the Form Editor at the top left of the main APT window and make sure the correct Observation folder is selected or highlighted.  

Planning to a fixed pointing

Note that a Plan with a single fixed pointing is obtained by specifying the pointing Center, and setting Width = Height = 0.0 arcsec.  The Search Step Size should additionally be non-zero.  Fixed dithers are not consistent with a fixed pointing, and should not be specified.  However, using Nod in Slitlet is an option.

MOS + fixed slit mode

One can use the MOS and a fixed slit (FS) simultaneously in MOS + Fixed Slit Mode.  When this mode is used, the pointing (location) is driven by the placement of a target in the fixed slit at the specified Aperture PA. The MPT Planner is then used to open shutters on targets that land in the MSA field of view at the pointing location defined by the selected source and the selected fixed slit.

This mode is implemented as follows. First, for ease of planning, it is recommended to generate a short Candidate list that includes only the sources you want to be observed with one of the slits.  Next, go to the Planner in MPT.  There, clicking the MOS + Fixed Slit (FS) Mode checkbox (in Section 1) will open a new field for selecting the Candidate Set for your fixed slit source(s). The Planner will plan to a fixed pointing - specifically, the pointing that is required to place a selected source into a specific slit at the fixed Aperture PA (the planning angle) you have defined. The source and slit specification will appear in the Planner as shown in Figure 8, replacing the Search Grid parameters.  Entries are added to this table using the Add button below the table. Each new row will create a new exposure in the Plan.

It is important to note that the use of this combined mode may require the observer to add a Special Requirement on the Aperture PA. It is unlikely that the same set of MOS sources can be observed at any angle.  If the observer is happy to plan MOS sources at an STScI-selected Aperture PA, as for the normal MOS process, then that will allow for the most flexible scheduling of the observation.  But the observer should first carefully investigate whether there are ranges of aperture position angles that may be undesirable for the MOS observation when the FS source is centered in a selected slit.  Whenever possible, if an angle SR is warranted, providing a 20- to 30-degree range of suitable Aperture PA is beneficial for scheduling.  Because of the implications to scheduling, any angle Special Requirements must be specified in the proposal, or as soon as possible after TAC acceptance.

Figure 8. Slit Source Search window



MPT section 9: Other plan Parameters

Section 9 of the MSA Planning Tool is where the last remaining parameters are defined, the Plan is named, and finally generated. Additional planning parameters are described in Table 3.

Figure 9. Additional planning parameters


Table 3. Additional Planning Parameters

ParametersDescription

Use Weights

If this option is selected, the MSA Planning Tool will reorder the Primary Candidate List based on weight and will select pointings that observe the highest sum of source weights. Typically, weights are present as a column in the input Catalog, and are inherited by the Primary Candidate List as explained in the article NIRSpec MPT - Catalogs
In the absence of weights (or given equal weights), MPT will prioritize sources based on their order in the Primary Candidate List. The weights of the Fillers are not used to select the best pointing, but are tallied in the Total Weight shown on each exposure.  

Enable Monte-Carlo

If the user chooses to enable Monte Carlo shuffling, the tool will attempt to optimize the number of sources observed in an MSA configuration by shuffling the Primary Candidate List before selecting sources. The number of Monte Carlo trials can be adjusted by the user. The default is 10 trials. The results of all trials are evaluated and the best result is selected. The figure below shows the advantages of enabling Monte Carlo shuffling. After shuffling, sources are ordered by weights if weights are also selected. Therefor combining the use of weights and shuffling is appropriate only for Catalogs with a selection of sources with the same weight so that alternate source ordering will be possible.

Advantages of Monte Carlo shuffling


Re-ordering the Primary Candidate List at a given pointing can increase the number of sources observed at that pointing.  The planning tool will save the option that gives the most sources.

Random shuffling is applied independently at each test pointing when Monte Carlo shuffling is enabled. Monte Carlo shuffling works best with intermediate-sized Primary Candidate Lists. It needs enough alternate sources in the dispersion direction to select from while attempting to pack the MSA more efficiently.

Allow the opening of shutters containing multiple sources

If this option is selected, primary and filler sources with nearby neighbors that occupy the same shutter will be allowed in the MPT Plan.  Normally shutters with multiple sources are disallowed in the expectation that their spectra will overlap on the detector and would be difficult to separate. For some science cases though, it may be possible to disentangle the spectra and obtain valuable information about highly desired sources.

Allow sources in areas affected by stuck open shutters

If this option is selected, planned sources will be allowed to occupy failed-open shutters, and the shutters around them that would normally be masked out to avoid spectral contamination. Read more about this in the MOS Recommended Strategies article. Any possible conflicts from selecting this option will be indicated in the MSA Shutter View on the MPT Plan, or when the MSA configuration is edited at the observation level in APT. See Figure 4 in NIRSpec MSA Shutter Operability.


Number of Configuratons


The number of MSA configurations to generate.

There is a default Number of Configurations computed for the user. This is the minimum number needed for the specified dithering strategy and will result in one target set. Selecting more than this minimum (a multiple of the default minimum) will result in additional target sets observed with the same dithering strategy, but different pointings. Leaving this field empty will cause MPT to calculate as many MSA configurations as required to completely observe all the Primary Candidates. Note that once included in a target set, Primary sources will be excluded from subsequent target sets. 

Plan name

Provide a user-defined name for a Plan. Use a meaningful and unique name for each Plan. An APT file can contain several Plans and will save all of them, unless the user opts to delete them.

Generating a Plan

After the Plan parameters are fully specified, Plan generation is begun by clicking Generate Plan. While the MPT is generating a Plan, a dialog window shows the progress. The length of time it takes to generate a Plan depends on the number of points searched (shown in the search grid parameters) and the number of science sources in the Primary and Filler Candidate Lists.  

Note that it is possible to start generating a MPT Plan that will take an extremely long time to create. Keep the number of search grid pointings to <10,000 and the number of Catalog sources below 20,000 for MPT Plans that will take a more reasonable amount of run-time on most computers. The MPT computational performance is discussed in the article NIRSpec MPT - Computational Performance.
It is good practice to save your APT session after generating your Plan, and as you generate more Plans or create new observations.

Once the Plan is generated, APT will automatically display the results in the Plans pane (NIRSpec MPT - Plans) where the proposer can examine it or compare it with others. If users wish to stop Plan generation once started, the Cancel button can be clicked in the pop-up progress window. This will stop the MPT to allow user interaction, but only after the MSA configuration in progress is completed.

In order to return to the Planner, simply go to the top of the window and select one of the two tabs shown.



References

Karakla, D. et al. 2014, Proc. SPIE 9149
The NIRSpec MSA Planning Tool for multi-object spectroscopy with JWST




Latest updates
  •  
    Added a section to describe the new wavelength planning checkboxes.

  •  
    Added new section to describe limiting shutters to those unaffected by cutoffs.


  • Added new planning parameter to allow multiple sources in a shutter, in APT 2023.5 (release date: 24 Aug. '23)

  •  
    Added MOS+FS mode description, indicated the PRISM target separation, plus many minor edits.

  •   
    Review and minor edits.

  •  
    Link to computational performance article.

  •  
    Corrected text about tracking Fillers, and about the default size of the search grid.


  • Minor changes to clarify how to apply different centering constraints to different sources.


  • Minor changes to clarify planned and assigned APA. Updated Fig 2 to include dispersion arrow.


  • added a link and changed the MSA bar width for margin "entire open shutter" constraint. 


  • minor formatting changes and added a link to new article

  •  
    Added note that only one primary target per target shutter will be allowed.
    Added row to Table 2 for any grating with "No" selected for "multiple sources per row" to clarify behavior.

  •  
    Update for MPT Rewrite
Originally published