Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
EPINAT Benoit
CAMEL
Commits
06bcf6a8
Commit
06bcf6a8
authored
Sep 13, 2018
by
bepinat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correction for nm scale and addition of cm scale
parent
e48cdd63
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
camel.py
camel.py
+3
-1
samel.py
samel.py
+3
-1
No files found.
camel.py
View file @
06bcf6a8
...
...
@@ -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
():
...
...
samel.py
View file @
06bcf6a8
...
...
@@ -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
():
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment