Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
geomultisens
pyrsr
Commits
956d772a
Commit
956d772a
authored
Oct 11, 2021
by
Daniel Scheffler
Browse files
Fixed wrong wavelength and RSRs in case of micrometers.
Signed-off-by:
Daniel Scheffler
<
danschef@gfz-potsdam.de
>
parent
7b3fdbc9
Changes
1
Hide whitespace changes
Inline
Side-by-side
pyrsr/rsr.py
View file @
956d772a
...
...
@@ -202,8 +202,8 @@ class RelativeSpectralResponse(object):
self
.
wvl
=
np
.
array
([
np
.
trapz
(
x
=
self
.
rsrs_wvl
,
y
=
self
.
rsrs_wvl
*
self
.
rsrs
[
band
])
for
band
in
self
.
bands
])
# self.wvl = self.wvl if self.wvl_unit == 'micrometers' else np.array([int(i) for i in self.wvl])
self
.
rsrs_wvl
=
self
.
rsrs_wvl
if
self
.
wvl_unit
==
'nanometers'
else
self
.
rsrs_wvl
/
1000
self
.
wvl
=
self
.
wvl
if
self
.
wvl_unit
==
'nanometers'
else
self
.
wvl
/
1000
self
.
rsrs_wvl
=
self
.
rsrs_wvl
if
self
.
wvl_unit
==
'nanometers'
else
self
.
rsrs_wvl
*
1000
self
.
wvl
=
self
.
wvl
if
self
.
wvl_unit
==
'nanometers'
else
self
.
wvl
*
1000
self
.
conv
.
update
({
key
:
value
for
key
,
value
in
zip
(
self
.
bands
,
self
.
wvl
)})
self
.
conv
.
update
({
value
:
key
for
key
,
value
in
zip
(
self
.
bands
,
self
.
wvl
)})
...
...
Write
Preview
Supports
Markdown
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