Commit 84ab0604 authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Fixed typing issue.


Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent 9e325cdd
Pipeline #8546 passed with stage
in 1 minute and 19 seconds
...@@ -341,7 +341,7 @@ class SensorMapGeometryTransformer(object): ...@@ -341,7 +341,7 @@ class SensorMapGeometryTransformer(object):
def to_sensor_geometry(self, data: np.ndarray, def to_sensor_geometry(self, data: np.ndarray,
src_prj: Union[str, int], src_prj: Union[str, int],
src_extent: List[float, float, float, float]) -> np.ndarray: src_extent: Tuple[float, float, float, float]) -> np.ndarray:
"""Transform the input map geometry array into sensor geometry """Transform the input map geometry array into sensor geometry
:param data: numpy array (representing map geometry) to be warped to sensor geometry :param data: numpy array (representing map geometry) to be warped to sensor geometry
...@@ -352,7 +352,7 @@ class SensorMapGeometryTransformer(object): ...@@ -352,7 +352,7 @@ class SensorMapGeometryTransformer(object):
# get area_definition # get area_definition
self.area_definition = AreaDefinition('', '', '', proj4_args, data.shape[1], data.shape[0], self.area_definition = AreaDefinition('', '', '', proj4_args, data.shape[1], data.shape[0],
src_extent) list(src_extent))
# resample # resample
data_sensorgeo = self._resample(data, self.area_definition, self.swath_definition) data_sensorgeo = self._resample(data, self.area_definition, self.swath_definition)
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
"""Module to transform 3D arrays between sensor and map geometry (using band-wise Lon/Lat arrays).""" """Module to transform 3D arrays between sensor and map geometry (using band-wise Lon/Lat arrays)."""
from typing import Union, List, Tuple from typing import Union, Tuple
import multiprocessing import multiprocessing
import sys import sys
import warnings import warnings
...@@ -201,7 +201,7 @@ class SensorMapGeometryTransformer3D(object): ...@@ -201,7 +201,7 @@ class SensorMapGeometryTransformer3D(object):
def to_sensor_geometry(self, def to_sensor_geometry(self,
data: np.ndarray, data: np.ndarray,
src_prj: Union[str, int], src_prj: Union[str, int],
src_extent: List[float, float, float, float]) -> np.ndarray: src_extent: Tuple[float, float, float, float]) -> np.ndarray:
"""Transform the input map geometry array into sensor geometry """Transform the input map geometry array into sensor geometry
:param data: 3D numpy array (representing map geometry) to be warped to sensor geometry :param data: 3D numpy array (representing map geometry) to be warped to sensor geometry
......
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