From fe6fdc565aa652ee6bb52343aa1db100c8317346 Mon Sep 17 00:00:00 2001 From: Olivier DUPOUY <127526340+od-forsk@users.noreply.github.com> Date: Thu, 18 Jul 2024 11:10:44 +0200 Subject: [PATCH] inverse width and height during rasterizing numpy needs (height, width), but from_bounds needs (width, height) --- h3ronpy/python/h3ronpy/arrow/raster.py | 1 + 1 file changed, 1 insertion(+) diff --git a/h3ronpy/python/h3ronpy/arrow/raster.py b/h3ronpy/python/h3ronpy/arrow/raster.py index 95b0ccc..9d88b68 100644 --- a/h3ronpy/python/h3ronpy/arrow/raster.py +++ b/h3ronpy/python/h3ronpy/arrow/raster.py @@ -183,6 +183,7 @@ def rasterize_cells( del values values_array = grouped["values"].to_numpy() + size = size[::-1] rasterized = np.full(size, nodata_value, dtype=values_array.dtype) for cells, value in zip(grouped["cells_distinct"], grouped["values"]):