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
96aaab93
Commit
96aaab93
authored
Aug 21, 2019
by
Daniel Scheffler
Browse files
Fix LayerBandsAssignment not properly passed through.
Signed-off-by:
Daniel Scheffler
<
danschef@gfz-potsdam.de
>
parent
aca92a2b
Changes
2
Hide whitespace changes
Inline
Side-by-side
pyrsr/rsr.py
View file @
96aaab93
...
...
@@ -98,7 +98,7 @@ class RelativeSpectralResponse(object):
self
.
from_satellite_sensor
(
satellite
,
sensor
,
subsystem
,
sort_by_cwl
=
sort_by_cwl
,
after_ac
=
after_ac
,
no_thermal
=
no_thermal
,
no_pan
=
no_pan
,
v
=
v
)
no_thermal
=
no_thermal
,
no_pan
=
no_pan
,
LayerBandsAssignment
=
LayerBandsAssignment
,
v
=
v
)
def
from_satellite_sensor
(
self
,
satellite
,
sensor
,
subsystem
=
''
,
**
kwargs
):
rsr_dict
=
RSR_reader
(
satellite
,
sensor
,
subsystem
,
**
kwargs
)
# (ordered according to LBA)
...
...
tests/test_pyrsr.py
View file @
96aaab93
...
...
@@ -57,6 +57,12 @@ class TestRelativeSpectralResponse(unittest.TestCase):
def
test_Aster
(
self
):
RelativeSpectralResponse
(
satellite
=
'Terra'
,
sensor
=
'ASTER'
)
def
test_custom_LayerBandsAssignment
(
self
):
RSR
=
RelativeSpectralResponse
(
satellite
=
'Sentinel-2A'
,
sensor
=
'MSI'
,
LayerBandsAssignment
=
[
'1'
,
'2'
,
'3'
,
'4'
,
'5'
,
'6'
,
'7'
])
self
.
assertEqual
(
len
(
RSR
.
wvl
),
7
)
class
Test_get_LayerBandsAssignment
(
unittest
.
TestCase
):
def
test_fullLBA
(
self
):
...
...
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