Code Monkey home page Code Monkey logo

specialsoss's Introduction

specialsoss

Documentation Status Updates

SPECtral Image AnaLysis for SOSS

Authors: Joe Filippazzo

This pure Python 3.6+ package performs optimal spectral extraction routines for the Single Object Slitless Spectroscopy (SOSS) mode of the Near-Infrared Imager and Slitless Spectrograph (NIRISS) instrument onboard the James Webb Space Telescope (JWST).

Additional resources:

Extracting Spectra from SOSS Observations

The headers in JWST data products provide almost all the information needed to perform the spectral extraction, making the path to your data the only required input. To load your SOSS exposure, simply do

# Imports
import numpy as np
from specialsoss import SossExposure
from pkg_resources import resource_filename

# Load the exposure
file = resource_filename('specialsoss', 'files/SUBSTRIP256_CLEAR_uncal.fits')
obs = SossExposure(file)

Now we can scroll through the ingested data by plotting the frames.

obs.plot_frames()
SOSS Frames

To run a spectral extraction routine, use the extract method with the name of the routine you would like to use. In this example, we'll use the vanilla column sum extraction.

obs.extract('sum', 'uncal')

Finally, we can see the extracted time-series spectra and the monochromatic lightcurves with:

obs.plot_results()

specialsoss's People

Contributors

dependabot[bot] avatar hover2pi avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

nespinoza

specialsoss's Issues

Export file of extracted 1D spectra

Once the spectral extraction is finished, the user should be able to export a single FITS file containing a 1D spectrum for each order in each frame (nints*ngrps*2).

Run method to locate the SOSS traces

User should be able to use a default trace location OR run a method that defines the trace location on the detector for orders 1 and 2 (in case of suboptimal pupil wheel rotation or TA)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.