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

Fixed wrong import statement. Fixed numpy deprecation warning. Updated version info.


Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent 6ad29632
Pipeline #11585 failed with stages
in 3 minutes and 35 seconds
......@@ -2,6 +2,13 @@
History
=======
0.4.1 (2020-08-17)
------------------
* Fixed wrong import statement.
* Fixed numpy deprecation warning.
0.4.0 (2020-08-07)
------------------
......
......@@ -32,8 +32,8 @@ from time import sleep
import numpy as np
import gdal
from py_tools_ds.geo.projection import EPSG2WKT, WKT2EPSG, proj4_to_WKT
from py_tools_ds.geo.coord_trafo import get_proj4info, proj4_to_dict, transform_coordArray, transform_any_prj
from py_tools_ds.geo.projection import EPSG2WKT, WKT2EPSG, proj4_to_WKT, proj4_to_dict
from py_tools_ds.geo.coord_trafo import get_proj4info, transform_coordArray, transform_any_prj
from py_tools_ds.geo.coord_calc import corner_coord_to_minmax, get_corner_coordinates
from py_tools_ds.geo.coord_grid import find_nearest
from py_tools_ds.io.raster.writer import write_numpy_to_image
......
......@@ -289,7 +289,7 @@ class SensorMapGeometryTransformer3D(object):
else:
result = [self._to_sensor_geometry_2D(argsdict) for argsdict in args]
band_inds = list(np.array(result)[:, -1])
band_inds = [res[-1] for res in result]
data_sensorgeo = np.dstack([result[band_inds.index(i)][0] for i in range(data.shape[2])])
return data_sensorgeo
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