Commit 8d7f5d8b authored by Monica Rainer's avatar Monica Rainer
Browse files

Fix bug in FP calibration with UNe

parent 30cf7cee
......@@ -9,7 +9,7 @@ Reduction of the UNe lamps:
- if more than one lamps, combine them and adjust ron and gain
- save the masterlamp in the calibration database
- straigthen the masterlamp
- extract the central 4 pixels of each order for quality check
- extract the central 10 pixels of each order for quality check??
- UNe wavelength calibration (TO DO: FP)
- TO DO: UNe line diagnostics (checking the ratio between specific emission lines)
"""
......@@ -120,7 +120,7 @@ class GBWls():
else:
wlname = hea[CONFIG['KEYS']['IMANAME']].replace('.fts','_FP.fits')
wlname = wlname.replace(' ', '').replace('-', '_')
#wlname = wlname.replace(' ', '').replace('-', '_')
nome = os.path.join(CONFIG['CALIB_DIR'],wlname)
mwl.header = hea
......@@ -236,7 +236,13 @@ class GBWls():
#print wcalib
wlc = ccdproc.CCDData.read(wcalib, unit=u.adu)
wl.header = wlc.header
for key in CONFIG['WLCOEFFS']:
keyword = ''.join((CONFIG['WLCOEFFS'][key][0],str(x+32)))
try:
wl.header[keyword] = (wlc.header[keyword],CONFIG['WLCOEFFS'][key][1])
except:
pass
# save the extracted lamp as FITS file
......
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