Python code to remove the blaze function from IGRINS spectra
Designed to be run on Python 3. Uses numpy, matplotlib, astropy, scipy
python cont_fit.py SDCK_20180115_0109.spec.fits
Will produce 2 additional files:
SDCK_20180115_0109.flat.fits a fits file with 3 extensions:
-
Original spectrum
-
Wavelength
-
Flattened spectrum
SDCK_20180115_0109.flat.pdf - plot of the original spectrum and the flattened spectrum