Commit 4b286866 authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Merge branch 'bugfix/fix_duplicate_LBA' into 'master'

Fixed missing LayerBandsAssignment and wrong bandnames.

See merge request !2
parents f79cd38d f324bf0d
Pipeline #4607 passed with stages
in 3 minutes and 3 seconds
......@@ -147,7 +147,6 @@ class RelativeSpectralResponse(object):
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)
bandnames.append(bandname)
self.LayerBandsAssignment.append(band)
rsrs = rsr_dict[band][:, 1]
wvls = np.array(rsr_dict[band][:, 0] * scale_factor)
......@@ -175,6 +174,7 @@ class RelativeSpectralResponse(object):
self.rsrs_wvl = np.array(wvl)
self.bands = bandnames
self.LayerBandsAssignment = list(rsr_dict.keys())
# FIXME this is not the GMS algorithm to calculate center wavelengths
# calculate center wavelengths
......
......@@ -22,5 +22,5 @@
# with this program. If not, see <http://www.gnu.org/licenses/>.
__version__ = '0.2.8'
__versionalias__ = '20190823.01'
__version__ = '0.2.9'
__versionalias__ = '20190823.02'
Markdown is supported
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