Skip to content

Instantly share code, notes, and snippets.

@teuben
teuben / cubespectrum.py
Created April 21, 2017 20:38
corrected cubespectrum.py for new Spectrum1D
#! /usr/bin/env python
#
# Load a FITS cube , extract the spectrum at a (or reference) pixel
# and operate and plot some and then more...
#
# 21-apr-2016 Peter Teuben hackday at "SPECTROSCOPY TOOLS IN PYTHON WORKSHOP" STSCI
import os, sys
import numpy as np
@teuben
teuben / cubespectrum.py
Created April 21, 2017 18:34
Example to extract a Spectrum1D for specutils
#! /usr/bin/env python
#
# Load a FITS cube , extract the spectrum at a (or reference) pixel
# and operate and plot some and then some...
#
# 21-apr-2016 Peter Teuben hackday at "SPECTROSCOPY TOOLS IN PYTHON WORKSHOP" STSCI
import os, sys
import numpy as np