Commit bd8f5722 authored by bepinat's avatar bepinat

Correction of dispersion map creation with common width

parent bb630310
......@@ -908,7 +908,7 @@ def buildmaps(conf, cube, hdr, var=None, plot=False, debug=False, free_ratio=Fal
if 'CD1_3' in hdr.ascard.keys(): del hdr['CD1_3']
suffixe = ''
if conf['COMMW']:
if conf['COMMW']:
suffixe = '_common'
else:
suffixe = '_indep'
......@@ -932,14 +932,18 @@ def buildmaps(conf, cube, hdr, var=None, plot=False, debug=False, free_ratio=Fal
hh = writedata(ewavemaps[i,:,:], hdr, conf['OUTPUT'] + '_ewave' + suffixe + '_' + linename[i] + '.fits')
hh = writedata(wavedispmaps[i,:,:], hdr, conf['OUTPUT'] + '_wavedisp' + suffixe + '_' + linename[i] + '.fits')
hh = writedata(ewavedispmaps[i,:,:], hdr, conf['OUTPUT'] + '_ewavedisp' + suffixe + '_' + linename[i] + '.fits')
hh = writedata(dispmaps[i,:,:], hdr, conf['OUTPUT'] + '_disp' + suffixe + '_' + linename[i] + '.fits')
hh = writedata(edispmaps[i,:,:], hdr, conf['OUTPUT'] + '_edisp' + suffixe + '_' + linename[i] + '.fits')
hh = writedata(intmaps[i,:,:], hdr, conf['OUTPUT'] + '_int' + suffixe + '_' + linename[i] + '.fits')
hh = writedata(eintmaps[i,:,:], hdr, conf['OUTPUT'] + '_eint' + suffixe + '_' + linename[i] + '.fits')
hh = writedata(fluxmaps[i,:,:], hdr, conf['OUTPUT'] + '_flux' + suffixe + '_' + linename[i] + '.fits')
hh = writedata(efluxmaps[i,:,:], hdr, conf['OUTPUT'] + '_eflux' + suffixe + '_' + linename[i] + '.fits')
hh = writedata(snrmaps[i,:,:], hdr, conf['OUTPUT'] + '_snr' + suffixe + '_' + linename[i] + '.fits')
if not(conf['COMMW']):
hh = writedata(dispmaps[i,:,:], hdr, conf['OUTPUT'] + '_disp' + suffixe + '_' + linename[i] + '.fits')
hh = writedata(edispmaps[i,:,:], hdr, conf['OUTPUT'] + '_edisp' + suffixe + '_' + linename[i] + '.fits')
if conf['COMMW']:
cond = np.where(linefit)
hh = writedata(dispmaps[cond[0]:,:], hdr, conf['OUTPUT'] + '_disp' + suffixe + '.fits')
hh = writedata(edispmaps[cond[0],:,:], hdr, conf['OUTPUT'] + '_edisp' + suffixe + '.fits')
return rvmap
......
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