ExoCTK Contamination Overlap Tool

The Contamination Overlap Tool is an observation planning tool that will provide the windows of time in which a given target may be observed and will also provide the levels of estimated contamination on the target's spectra due to neighboring sources in the field of view. 

On this page

See also: JWST Position Angles, Ranges, and Offsets and JWST Target Observability, Observatory Coordinate System and Field of Regard

This tool is comprised of 2 calculators:

1. The Visibility Calculator, which predicts the aperture position angles (APAs) that a target can be observed in, and their corresponding visibility windows (up to July, 2028).

2. The Contamination Calculator, which determines the level of contamination on the target star from nearby point sources at each of these APAs.

These tools will aid the user in deciding which position angles to observe in, which will minimize potential contamination of target spectra from other point sources.

Both calculators are available on the ExoCTK website with the Visibility Calculator available for all JWST instruments: NIRCam, MIRI, NIRISS, NIRSpec, and FGS 1 and 2. The Contamination Calculator on the website is currently available for the NIRISS SOSS mode.


Using the web interface

The Contamination Overlap tool can be found on the main page of the ExoCTK website under Observation Planning. 

Figure 1. The ExoCTK Website 

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

The Contamination Overlap page will provide a field where users can input either the target name or its coordinates (in decimal degrees). Putting in the target name and clicking Resolve Target will automatically fill in the R.A. and Decl. fields below. Keep in mind that the target coordinates are retrieved from Exo.MAST. As such, if an input Target Name cannot be found in Exo.MAST, the webpage will return an error message from Resolve Target, and the R.A. and Decl. fields will need to be filled out manually. 
Figure 2. Defining the target properties in the Contamination Overlap tool

After the coordinates are set, there is a field for the Position Angle of the observations. By default, this value is set at -1, which calculates the contamination at all visible position angles and presents them in a single plot. Alternatively, any integer between 0 and 360 can be entered into this field to calculate the contamination and provide extra details about the contaminating sources at a single position angle of interest.
Figure 3. Defining the position angle in the Contamination Overlap Tool

An additional field the user can fill is the Epoch of when the observations are planned to be scheduled. This epoch is used to account for proper motions of both the target and the possible contaminants, such as to account for their relative movement in the sky before making the contamination calculations. The default is 2024, which would then predict the positions of the targets to the year 2024.
Figure 4. Defining the position angle in the Contamination Overlap Tool

The next required field is the Instrument - Mode field. This will tell the tool which instrument and observing mode the visibility and contamination are being calculated for. The Visibility Calculator is available for all JWST instruments, while the Contamination Calculator is available on the website for NIRISS SOSS observations.
Figure 5. Defining the instrument properties in the Contamination Overlap tool

There is an optional section for adding an extra target companion or neighbor to be included in the contamination results. If there is a point source near the target that is not part of the Gaia EDR3 Catalog, but should be considered for the contamination calculation, filling out these fields will add the companion/neighbor to be considered in the final results.

Once all of the fields are complete, the final step is to submit. As shown below, users can choose to calculate the visibility windows of the target, or its visibility and contamination. The "Visibility and Contamination" option will take a few seconds longer to run, as it generates a simulated field at every position angle of the instrument. 

Figure 6. Defining optional target companions on the Contamination Overlap tool


Visibility Calculator (available online)

After completing the steps above, the first result you should see is the Visibility Calculator result. An example of the Visibility Calculator output is shown below for target WASP-18b using the NIRISS instrument. The green lines represent the aperture position angles (APAs) in which the target can be observed, and the corresponding date (YYYY-MM-DD) the target can be observed in said angle. Hovering over a region of the bokeh plot on the website will show the maximum, nominal, and minimum aperture position angle, given the maximum boresight roll of the telescope for a given point, as well as the corresponding date. Users have the option to interact with the Visibility plot using the toolbar to the right of the plot which allows for zooming, panning, and saving the plot locally for future reference. 

Figure 7. Output of the Target Visibility tool

Users also have the option to download a .csv file that contains a table with the data used to generate the visibility plot. By pressing the Download CSV File button below the plot, a .csv file will be downloaded with data containing all information about the target visibility for all JWST instruments, including the one selected by the user.

Contamination Calculator for NIRISS SOSS mode (available online and locally)

If the user selects NIRISS - SOSS as their Instrument, there will be an option to calculate both the visibility and contamination on the target. The results page for this option will have another bokeh plot at the bottom showing the target's contamination as a function of aperture position angle and wavelength (in microns). The following is a screenshot taken from an example using WASP-18 b observed in NIRISS's SOSS mode. The following is an explication of the key features in the contamination plot: 

  1. Top-left panel: The contamination for order 1 of the target trace. The contamination level is defined as the ratio of the extracted flux coming from all field stars over the extracted flux coming from the target star, using the proper extraction weighing function for the target trace. The deeper the color, the higher the degree of contamination, with white representing no contamination. The corresponding wavelength is in microns.
  2. Top-right panel: The % contamination of all spectral channels that are contaminated for order 1 at a level of at least 0.01 (green) or 0.001 (blue). 100% would indicate total contamination of the target trace (in every channel), 0% would indicate no contamination. 
  3. Bottom-left panel: The contamination for order 2 of the target trace.
  4. Bottom-right panel: The % contamination of all spectral channels that are contaminated for order 2 at a level of at least 0.01 (green) or 0.001 (blue). 100% would indicate total contamination of the target trace (in every channel), 0% would indicate no contamination.
  5. The grey semi-transparent regions represent APAs where the target cannot be observed.
  6. The black crosshairs appear in both plots while hovering over the contamination images. The horizontal lines indicate the current position angle and the vertical lines indicate the wavelength.

Users can generate the plot below themselves with a local version of the ExoCTK package installed. For instructions on how to run the Contamination calculator locally, continue onto the next section.

Figure 8. Outputs of the Contamination Overlap tool

If you specify a value between 0 and 360 in the Position Angle field as described above, a different plot is returned. The following is a screenshot of the target spectral traces (centered on the solid red lines) along with the spectral traces of the contaminating sources (dashed red lines for stars, dashed pink lines for extended sources — likely galaxies) plotted together in the top panel. Contaminant order 0 images are also shown inside colored circles. This result shows how the contaminants fall on the detector relative to the target traces while the bottom plot shows the ratio of contaminant to target flux in each detector column for each order. If you hover over a contaminant trace, it will also show details about each source, including the Gaia source id, effective temperature, and flux ratio. 
Figure 9. Alternate output of the Contamination Overlap tool


Using the outputs

Once you have your outputs from Contamination Overlap, what do you do with them? In the Astronomer's Proposal Tool (APT), there is a field in the Observation panel under Special Requirements that allows users to specify the position angles that should be used for the observations. 

Links

JWST Position Angles, Ranges, and Offsets 

 NIRISS Single Object Slitless Spectroscopy 

NIRCam Grism Time Series

MIRI Low Resolution Spectroscopy




Latest updates

  • Updated images and descriptions synchronized with ExoCTK v.1.2.6.
Originally published