Commit 06bcf6a8 authored by bepinat's avatar bepinat

correction for nm scale and addition of cm scale

parent e48cdd63
......@@ -524,7 +524,9 @@ def waveindgen(hdr):
if cunit.strip().lower() in {'angstroms', 'angstrom'}:
lconvfac = 1
if cunit.strip().lower() in {'nanometers', 'nm'}:
lconvfac = 1e3
lconvfac = 1e1
if cunit.strip().lower() in {'centimeters', 'cm'}:
lconvfac = 1e8
if 'CD3_3' in hdr.keys():
sclp = hdr['CD3_3']
elif 'CDELT3' in hdr.keys():
......
......@@ -369,7 +369,9 @@ def waveindgen(hdr):
if cunit.strip().lower() in {'angstroms', 'angstrom'}:
lconvfac = 1
if cunit.strip().lower() in {'nanometers', 'nm'}:
lconvfac = 1e3
lconvfac = 1e1
if cunit.strip().lower() in {'centimeters', 'cm'}:
lconvfac = 1e8
if 'CD1_1' in hdr.keys():
sclp = hdr['CD1_1']
elif 'CDELT1' in hdr.keys():
......
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