From 363b3edb112649c8bbcba9db8cbc7faa4eb6e88c Mon Sep 17 00:00:00 2001 From: Radoslaw Guzinski Date: Tue, 28 Jan 2020 10:46:45 +0100 Subject: [PATCH] Bug fix with read_snappy_product --- snappy_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snappy_utils.py b/snappy_utils.py index 451543b..f412bc3 100644 --- a/snappy_utils.py +++ b/snappy_utils.py @@ -17,7 +17,7 @@ def read_snappy_product(file_path, band_name=None): width = prod.getSceneRasterWidth() height = prod.getSceneRasterHeight() geo_coding = prod.getSceneGeoCoding() - data = np.empty((width, height)) + data = np.empty((height, width)) if band_name is not None: band = prod.getBand(band_name) else: