From a4a45c1b4f30386a1dff0c58e50a26d29eac1e83 Mon Sep 17 00:00:00 2001 From: Reynold Mok <34395415+reyery@users.noreply.github.com> Date: Mon, 24 Jun 2024 11:36:08 +0200 Subject: [PATCH] Fix incorrect `nodata` meta --- cea/datamanagement/terrain_helper.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cea/datamanagement/terrain_helper.py b/cea/datamanagement/terrain_helper.py index 0a324262b..8385fcabf 100644 --- a/cea/datamanagement/terrain_helper.py +++ b/cea/datamanagement/terrain_helper.py @@ -167,7 +167,9 @@ def reproject_raster_array(src_array: np.ndarray, src_transform, meta: Dict, src_crs=meta["crs"], dst_transform=transform, dst_crs=dst_crs, - resampling=Resampling.nearest + resampling=Resampling.nearest, + src_nodata=meta["nodata"], + dst_nodata=meta["nodata"], ) return dst_array, transform, new_meta