Commit 96aaab93 authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Fix LayerBandsAssignment not properly passed through.


Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent aca92a2b
......@@ -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)
......
......@@ -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):
......
Supports Markdown
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