Commit ec8d9440 authored by Daniel Scheffler's avatar Daniel Scheffler

Fixed GeoArray.save()

parent 899d1fa4
Pipeline #1765 failed with stages
in 1 minute and 39 seconds
......@@ -905,14 +905,15 @@ class GeoArray(object):
meta2write = dict((k, v) for k, v in meta2write.items() if v is not np.nan)
if 'band_name' in meta2write:
global_meta['Band_%s' % str(bidx + 1)] = meta2write['band_name']
global_meta['Band_%s' % str(bidx + 1)] = str(meta2write['band_name'])
del meta2write['band_name']
band.SetMetadata(meta2write)
del band
# set global domain metadata
ds.SetMetadata(global_meta)
if global_meta:
ds.SetMetadata(global_meta)
# get ENVI metadata domain
# ds_orig = gdal.Open(self.filePath)
......
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