From 00d097ee5075565161b84d2ee75397596afd1b08 Mon Sep 17 00:00:00 2001 From: Isa Tot Date: Thu, 7 Nov 2024 17:38:15 +0000 Subject: [PATCH] Changing the band array for testing purposes on databricks --- src/utils/raster_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/raster_utils.py b/src/utils/raster_utils.py index f5a9553..f285862 100644 --- a/src/utils/raster_utils.py +++ b/src/utils/raster_utils.py @@ -283,9 +283,9 @@ def upsample_raster(ds, resampled_resolution=UPSAMPLED_RESOLUTION, logger=None): # Falls under different bands, use the long_name instead of integer value #ds_ = ds_.expand_dims({'band': [ds_.long_name[val-1]]}) if int(ds_['band']) ==1 : - ds_ = ds_.expand_dims({'band': 'SFED'}) + ds_ = ds_.expand_dims({'band': ['SFED']}) else: - ds_ = ds_.expand_dims({'band': 'MFED'}) + ds_ = ds_.expand_dims({'band': ['MFED']}) else: ds_ = ds_.expand_dims([fourth_dim]) resampled_arrays.append(ds_)