Skip to main content

Predicting Accurate Spectral Traces in Astrophysical SOSS Spectra (PASTASOSS)

Author: Tyler Baines

Affiliation: Science Support Analyst, NIRISS/SOSS Team, Space Telescope Science Institute (STScI)

Email: tbaines@stsci.edu


Overview

When JWST operates in the NIRISS/SOSS mode, the rotation of the pupil wheel, responsible for positioning the GR700XD grism into the optical path, does not consistently align with its expected position (i.e., there is a slight rotational offset). This variability, with shifts of just a few fractions of a degree from the commanded position, leads to noticeable changes in the positions of spectral traces (with the greatest changes observed at redder wavelength) for NIRISS/SOSS observations from one visit to another. These variations can result in differences in the wavelength solutions between visits, potentially impacting data accuracy.

To address these challenges and ensure accurate data analysis and spectral extraction, we introduce PASTASOSS, a robust tool to designed to predict the positions and associated wavelength values of the GR700XD spectral traces with sub-pixel precision. Currently, the tools supports spectral orders 1 and 2, with plans to extend support to order 3 in the future. PASTASOSS provides trace position models for both Order 1 and Order 2, which accurately represent the positions when the GR700XD is located in its commanded positions. Additionally, it offers a global wavelength solution based on the pupil wheel position, ensuring precise spectral calibration. It's worth noting that the reference files included in this package are not apart of the official JWST reference files system at this time. However, they serve as essential resources for achieving precise spectral trace predictions in the face of instrument variatation.

As more NIRISS/SOSS observations become increasingly available, we are commited to continually updating the tool and reference data models to ensure its accuracy and relevance.

  • Note: Please be aware that the spectral trace positions provided are based on the SUBSTRIP256 subarray configuration. We have not conducted accuracy tests using the SUBSTRIP96 subarray or analyzed/compared trace positions with the F277W filter. While we believe that the tool should function adequately with these configurations, we advise users to proceed with caution and use them at their own discretion, as thorough testing has not yet been completed.

Supported Spectral Trace Ranges

Spectral Order Trace Position Model (Pixels) Wavelength Solution Model ($\mu m$) PWCPOS (deg)
Order 1 [4, 2043] [0.85, 2.83] [245.656, 245.923]
Order 2 [0, 1750+] [0.60, 1.42] [245.656, 245.923]
Order 3 Unsupported Unsupported Unsupported

Installation

To install the package via pip, use the following command:

pip install pastasoss

Alternatively, you can clone the repository and navigate to directory:

git clone https://github.com/spacetelescope/pastasoss.git
cd pastasoss
pip install .

Usage

To use the package:

import pastasoss

# predict gr700xd traces position for order 1
pastasoss.get_soss_traces(245.84, order='1')

# predict gr700xd traces position for order 2
pastasoss.get_soss_traces(245.84, order='2')

# predict gr700xd traces position for orders 1 and 2
pastasoss.get_soss_traces(245.84, order='12')

Demo

A concise demonstration notebook is included with the package. We encourage users to explore it for a quick introduction to PASTASOSS.

Get Involved

We welcome community feedback to improve and expand PASTASOSS.

If you make use of this code, please cite:

Metadata

Release files for pastasoss 1.2.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pastasoss 1.2.4
File Size Uploaded
pastasoss-1.2.4.tar.gz 3.0 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for pastasoss 1.2.4
File Interpreter ABI Platform
pastasoss-1.2.4-py3-none-any.whl Python 3 none any Details

Total release size: 3.0 MB

Release files / pastasoss-1.2.4.tar.gz

Download URL pastasoss-1.2.4.tar.gz
Size 3.0 MB
Tags Source
SHA-256 checksum
How to use checksums
5965bdd4bc38cd2a3f10681e9dcbb884dd3267bfd8235ccbb02918cd64558633
BLAKE2b-256 checksum
How to use checksums
21089375d1539b5670c4675efb6a28840b5679fcef6e5c1fbeb97b2d1e455a93
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / pastasoss-1.2.4-py3-none-any.whl

Download URL pastasoss-1.2.4-py3-none-any.whl
Size 57.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ecafe898f3603fb796f57319adbefe7b32955c2864254f7455844256707e7217
BLAKE2b-256 checksum
How to use checksums
805162832bae4ff947adc8dc7c1b5c57744fc71a7d5eff723e4c9da65b7650d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release history Release notifications | RSS feed

This release

1.2.4 This release

2 release files

1.2.3

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.1.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page