# imports
sys.path.append(os.path.abspath('/Users/xavier/local/Python/PYPIT/src'))
import arload as pyp_arload
import ario as pyp_ario

"""
Explanation: Notes on the LRIS Blue reduction
End of explanation
"""


fil = '/Users/xavier/PYPIT/LRIS_blue/Raw/b150910_2033.fits.gz'
hdu = fits.open(fil)
hdu.info()

head0['OBSTYPE']

head0 = hdu[0].header
head0
#head0['DATE']

plt.clf()
plt.imshow(hdu[1].data)
plt.show()

"""
Explanation: Detectors
Note:  LRISb has employed different detectors.  We may need to
make PYPIT backwards compatible.
FITS file
End of explanation
"""


### Need to port readmhdufits

head0

reload(pyp_ario)
img, head = pyp_ario.read_lris('/Users/xavier/PYPIT/LRIS_blue/Raw/b150910_2070.fits',TRIM=True)

xdb.ximshow(img)

import subprocess

subprocess.call(["touch", "dum.fil"])

b = 'as'

'{1:s}'.format(b)

range(1,5)

tmp = np.ones((10,20))

tmp[0:1,:].shape

"""
Explanation: Display Raw LRIS image in Ginga
End of explanation
"""


