Commit b55ed104 authored by Monica Rainer's avatar Monica Rainer
Browse files

Print YJHK S/N

parent e9a439d1
...@@ -413,9 +413,11 @@ class GBNodding(): ...@@ -413,9 +413,11 @@ class GBNodding():
snr[snr==-np.inf] = 0 snr[snr==-np.inf] = 0
snr = np.nan_to_num(snr) snr = np.nan_to_num(snr)
self.messages.append('Nodding %s: SNR[order=36, wl=2130 nm] = %s' % (str(slit),str(round(np.mean(snr[4]),2))),) self.messages.append('Nodding %s: SNR[Y band, order=73, wl=1050 nm] = %s' % (str(slit),str(round(np.mean(snr[39]),2))),)
self.messages.append('Nodding %s: SNR[order=47, wl=1600 nm] = %s' % (str(slit),str(round(np.mean(snr[15]),2))),) self.messages.append('Nodding %s: SNR[J band, order=61, wl=1250 nm] = %s' % (str(slit),str(round(np.mean(snr[29]),2))),)
self.messages.append('Nodding %s: SNR[order=76, wl=1010 nm] = %s' % (str(slit),str(round(np.mean(snr[42]),2))),) self.messages.append('Nodding %s: SNR[H band, order=46, wl=1650 nm] = %s' % (str(slit),str(round(np.mean(snr[14]),2))),)
self.messages.append('Nodding %s: SNR[K band, order=35, wl=2200 nm] = %s' % (str(slit),str(round(np.mean(snr[3]),2))),)
for o in xrange(50): for o in xrange(50):
key_snr = ''.join((CONFIG['SNR'][0],str(o+32))) key_snr = ''.join((CONFIG['SNR'][0],str(o+32)))
...@@ -527,9 +529,10 @@ class GBNodding(): ...@@ -527,9 +529,10 @@ class GBNodding():
results = fits.HDUList([spefits]) results = fits.HDUList([spefits])
results.writeto(abnome,clobber=True) results.writeto(abnome,clobber=True)
self.messages.append('Nodding merged AB: SNR[order=36, wl=2130 nm] = %s' % (str(round(np.mean(snr[4]),2))),) self.messages.append('Nodding merged AB: SNR[Y band, order=73, wl=1050 nm] = %s' % (str(round(np.mean(snr[41]),2))),)
self.messages.append('Nodding merged AB: SNR[order=47, wl=1600 nm] = %s' % (str(round(np.mean(snr[15]),2))),) self.messages.append('Nodding merged AB: SNR[J band, order=61, wl=1250 nm] = %s' % (str(round(np.mean(snr[29]),2))),)
self.messages.append('Nodding merged AB: SNR[order=76, wl=1010 nm] = %s' % (str(round(np.mean(snr[42]),2))),) self.messages.append('Nodding merged AB: SNR[H band, order=46, wl=1650 nm] = %s' % (str(round(np.mean(snr[14]),2))),)
self.messages.append('Nodding merged AB: SNR[K band, order=35, wl=2200 nm] = %s' % (str(round(np.mean(snr[3]),2))),)
#calibrated = np.vstack((np.concatenate(np.flipud(awaves)),np.concatenate(np.flipud(abcalib)))) #calibrated = np.vstack((np.concatenate(np.flipud(awaves)),np.concatenate(np.flipud(abcalib))))
#print calibrated #print calibrated
......
...@@ -522,9 +522,10 @@ class GBStare(): ...@@ -522,9 +522,10 @@ class GBStare():
snr[snr==-np.inf] = 0 snr[snr==-np.inf] = 0
snr = np.nan_to_num(snr) snr = np.nan_to_num(snr)
self.messages.append('Stare image: SNR[order=36, wl=2130 nm] = %s' % (str(round(np.mean(snr[4]),2))),) self.messages.append('Stare image: SNR[Y band, order=73, wl=1050 nm] = %s' % (str(round(np.mean(snr[41]),2))),)
self.messages.append('Stare image: SNR[order=47, wl=1600 nm] = %s' % (str(round(np.mean(snr[15]),2))),) self.messages.append('Stare image: SNR[J band, order=61, wl=1250 nm] = %s' % (str(round(np.mean(snr[29]),2))),)
self.messages.append('Stare image: SNR[order=76, wl=1010 nm] = %s' % (str(round(np.mean(snr[42]),2))),) self.messages.append('Stare image: SNR[H band, order=46, wl=1650 nm] = %s' % (str(round(np.mean(snr[14]),2))),)
self.messages.append('Stare image: SNR[K band, order=35, wl=2200 nm] = %s' % (str(round(np.mean(snr[3]),2))),)
for o in xrange(50): for o in xrange(50):
key_snr = ''.join((CONFIG['SNR'][0],str(o+32))) key_snr = ''.join((CONFIG['SNR'][0],str(o+32)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment