In [2]:
%matplotlib notebook
In [12]:
# imports
from matplotlib import pyplot as plt
In [4]:
# PYPIT imports
from pypit import pyputils
msgs = pyputils.get_dummy_logger()
from pypit import arload
In [3]:
spfile = '/Users/xavier/REDUX/Keck/LRIS/2017jan30/blue_A/Science/spec1d_UCG3672A_LRISb_2017Jan30T064821.fits'
In [11]:
box_flux = arload.load_1dspec(spfile, objname='O220-S1466-D02-I0010', flux=True, extract='box')
opt_flux = arload.load_1dspec(spfile, objname='O220-S1466-D02-I0010', extract='opt',flux=True)
In [14]:
plt.clf()
ax = plt.gca()
ax.plot(box_flux.wavelength, box_flux.flux)
ax.plot(opt_flux.wavelength, opt_flux.flux)
plt.show()
In [ ]: