diff --git a/camel.py b/camel.py index b697bd0d37cc63bbe4f3dea706058989a9b2acac..3ad10f07ba7498128f637b185ffbc6dea786653a 100755 --- a/camel.py +++ b/camel.py @@ -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(): diff --git a/samel.py b/samel.py index bfae8bde41e0ab02d8f2ad5c5b138d880bf41181..01a50063703e656257e3e8b3b64c6dd4bbe2be53 100755 --- a/samel.py +++ b/samel.py @@ -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():