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

Fixed bandnames synchronization issue in GeoArray.get_subset().


Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent 1f038140
......@@ -7,6 +7,7 @@ History
* Updated minimal version of py_tools_ds which fixes a TypeError in GeoArray.save if nodata value has a numpy data type.
* Force Python data type in GeoArray.nodata setter.
* Fixed bandnames synchronization issue in GeoArray.get_subset().
0.13.3 (2021-07-12)
......
......@@ -1739,10 +1739,10 @@ class GeoArray(object):
# apply zslice to bandnames and metadata
if zslicing:
bNs_out = list(np.array(list(self.bandnames))[zslice])
bNs_out = list(np.array(list(self._bandnames))[zslice]) if self._bandnames else None
_meta_out = self.metadata.get_subset(bands2extract=zslice)
else:
bNs_out = list(self.bandnames)
bNs_out = list(self._bandnames) if self._bandnames else None
_meta_out = self.meta
sub_gA.gt = sub_gt
......
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