Commit 5d0bfec2 authored by EPINAT Benoit's avatar EPINAT Benoit
Browse files

change in units format in header

parent cf5d7a00
......@@ -1297,7 +1297,7 @@ def buildmaps(conf, cube, hdr, var=None, plot=False, debug=False, free_ratio=Fal
hdr['BUNIT'] = ''
hh = writedata(zmap[comp * els.index + comind, :, :], hdr, conf['OUTPUT'] + '_z' + suffixe + '.fits')
hh = writedata(ezmap[comp * els.index + comind, :, :], hdr, conf['OUTPUT'] + '_ez' + suffixe + '.fits')
hdr['BUNIT'] = 'KM/S'
hdr['BUNIT'] = 'km/s'
hh = writedata(rvmap[comp * els.index + comind, :, :], hdr, conf['OUTPUT'] + '_vel' + suffixe + '.fits')
hh = writedata(ervmap[comp * els.index + comind, :, :], hdr, conf['OUTPUT'] + '_evel' + suffixe + '.fits')
......@@ -1317,12 +1317,12 @@ def buildmaps(conf, cube, hdr, var=None, plot=False, debug=False, free_ratio=Fal
hh = writedata(efluxmaps[comp * els.index + i, :, :], hdr, conf['OUTPUT'] + '_eflux' + suffixe + '_' + linename[i] + '.fits')
hdr['BUNIT'] = ''
hh = writedata(snrmaps[comp * els.index + i, :, :], hdr, conf['OUTPUT'] + '_snr' + suffixe + '_' + linename[i] + '.fits')
hdr['BUNIT'] = 'KM/S'
hdr['BUNIT'] = 'km/s'
if not(conf['COMMW']):
hh = writedata(dispmaps[comp * els.index + i, :, :], hdr, conf['OUTPUT'] + '_disp' + suffixe + '_' + linename[i] + '.fits')
hh = writedata(edispmaps[comp * els.index + i, :, :], hdr, conf['OUTPUT'] + '_edisp' + suffixe + '_' + linename[i] + '.fits')
if conf['COMMW']:
hdr['BUNIT'] = 'KM/S'
hdr['BUNIT'] = 'km/s'
hh = writedata(dispmaps[comp * els.index + comind, :, :], hdr, conf['OUTPUT'] + '_disp' + suffixe + '.fits')
hh = writedata(edispmaps[comp * els.index + comind, :, :], hdr, conf['OUTPUT'] + '_edisp' + suffixe + '.fits')
......
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