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

Added temporary output writers of test output.


Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent 1c0fe747
Pipeline #8617 passed with stage
in 1 minute and 26 seconds
......@@ -101,6 +101,11 @@ class Test_SensorMapGeometryTransformer(TestCase):
# to Lon/Lat
dem_map_geo, dem_gt, dem_prj = SMGT.to_map_geometry(self.dem_sensor_geo, tgt_prj=4326)
# from geoarray import GeoArray
# GeoArray(dem_map_geo, dem_gt, dem_prj)\
# .save(os.path.join(tests_path, 'test_output', 'resampled_pyresample_ll.bsq'))
self.assertIsInstance(dem_map_geo, np.ndarray)
self.assertEqual(dem_map_geo.shape, (SMGT.area_definition.height,
SMGT.area_definition.width))
......@@ -131,6 +136,8 @@ class Test_SensorMapGeometryTransformer(TestCase):
# tgt_extent=self.expected_dem_area_extent_utm,
tgt_coordgrid=((0, 30), (0, 30))
)
# from geoarray import GeoArray
# GeoArray(dem_map_geo, dem_gt, dem_prj).save(os.path.join(tests_path, 'test_output', 'resampled_gdal.bsq'))
self.assertIsInstance(dem_map_geo, np.ndarray)
self.assertEqual(dem_map_geo.shape, (366, 976))
......@@ -190,6 +197,11 @@ class Test_SensorMapGeometryTransformer3D(TestCase):
# to Lon/Lat
data_mapgeo_3D, dem_gt, dem_prj = SMGT.to_map_geometry(self.data_sensor_geo_3D, tgt_prj=4326)
# from geoarray import GeoArray
# GeoArray(data_mapgeo_3D, dem_gt, dem_prj)\
# .save(os.path.join(tests_path, 'test_output', 'resampled_3D_02_ll.bsq'))
self.assertIsInstance(data_mapgeo_3D, np.ndarray)
# only validate number of bands (height and width are validated in 2D version
# fixed numbers may fail here due to float uncertainty errors
......@@ -221,6 +233,9 @@ class Test_SensorMapGeometryTransformer3D(TestCase):
# tgt_extent=self.expected_dem_area_extent_utm,
tgt_coordgrid=((0, 30), (0, 30))
)
# from geoarray import GeoArray
# GeoArray(data_mapgeo_3D, dem_gt, dem_prj)\
# .save(os.path.join(tests_path, 'test_output', 'resampled_3D_02_pyresample.bsq'))
self.assertIsInstance(data_mapgeo_3D, np.ndarray)
# only validate number of bands (height and width are validated in 2D version
......
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