Commit f324bf0d authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Fixed missing LayerBandsAssignment and wrong bandnames.


Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent f79cd38d
Pipeline #4606 passed with stage
in 42 seconds
...@@ -147,7 +147,6 @@ class RelativeSpectralResponse(object): ...@@ -147,7 +147,6 @@ class RelativeSpectralResponse(object):
for band in rsr_dict: # = OrderedDict -> order follows LayerBandsAssignment for band in rsr_dict: # = OrderedDict -> order follows LayerBandsAssignment
bandname = band if not self.format_bandnames else ('B%s' % band if len(band) == 2 else 'B0%s' % band) bandname = band if not self.format_bandnames else ('B%s' % band if len(band) == 2 else 'B0%s' % band)
bandnames.append(bandname) bandnames.append(bandname)
self.LayerBandsAssignment.append(band)
rsrs = rsr_dict[band][:, 1] rsrs = rsr_dict[band][:, 1]
wvls = np.array(rsr_dict[band][:, 0] * scale_factor) wvls = np.array(rsr_dict[band][:, 0] * scale_factor)
...@@ -175,6 +174,7 @@ class RelativeSpectralResponse(object): ...@@ -175,6 +174,7 @@ class RelativeSpectralResponse(object):
self.rsrs_wvl = np.array(wvl) self.rsrs_wvl = np.array(wvl)
self.bands = bandnames self.bands = bandnames
self.LayerBandsAssignment = list(rsr_dict.keys())
# FIXME this is not the GMS algorithm to calculate center wavelengths # FIXME this is not the GMS algorithm to calculate center wavelengths
# calculate center wavelengths # calculate center wavelengths
......
...@@ -22,5 +22,5 @@ ...@@ -22,5 +22,5 @@
# with this program. If not, see <http://www.gnu.org/licenses/>. # with this program. If not, see <http://www.gnu.org/licenses/>.
__version__ = '0.2.8' __version__ = '0.2.9'
__versionalias__ = '20190823.01' __versionalias__ = '20190823.02'
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