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

Metadata attributes set to numpy arrays are now correctly handled in ENVI format.



Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent 8f3668c9
......@@ -138,6 +138,9 @@ class GDAL_Metadata(object):
elif isinstance(param_value, list):
return '{ ' + ',\n'.join([self._convert_param_to_ENVI_str(i) for i in param_value]) + ' }'
elif isinstance(param_value, np.ndarray):
return self._convert_param_to_ENVI_str(param_value.tolist())
else:
return str(param_value)
......
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