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

Fix bug when not using flat

parent 21763b1c
......@@ -435,10 +435,14 @@ class GBNodding():
drs_mjd = float(heaspe[CONFIG['KEYS']['MJD']]) + (float(heaspe[CONFIG['KEYS']['EXPTIME']])/(2*86400))
heaspe[CONFIG['DRS_MJD'][0]] = (drs_mjd,CONFIG['DRS_MJD'][1])
try:
if masterflat:
heaspe[CONFIG['MASTERFLAT'][0]] = (os.path.basename(masterflat),CONFIG['MASTERFLAT'][1])
except: pass
try:
if masterlamp:
heaspe[CONFIG['MASTERLAMP'][0]] = (os.path.basename(masterlamp),CONFIG['MASTERLAMP'][1])
except: pass
snr[snr==np.inf] = 0
snr[snr==-np.inf] = 0
......
......@@ -532,10 +532,14 @@ class GBStare():
heaspe = fits.Header(imstr.header)
try:
if masterflat:
heaspe[CONFIG['MASTERFLAT'][0]] = (os.path.basename(masterflat),CONFIG['MASTERFLAT'][1])
except: pass
try:
if masterlamp:
heaspe[CONFIG['MASTERLAMP'][0]] = (os.path.basename(masterlamp),CONFIG['MASTERLAMP'][1])
except: pass
snr[snr==np.inf] = 0
snr[snr==-np.inf] = 0
......
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