From 5a559dbb4a6a2cb5da09e2e0b922876cb764fe9e Mon Sep 17 00:00:00 2001 From: trchudley Date: Thu, 13 Jun 2024 15:54:07 +0100 Subject: [PATCH] fix mosaic load bug on windows --- src/pdemtools/load.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/pdemtools/load.py b/src/pdemtools/load.py index 055490d..85071e2 100644 --- a/src/pdemtools/load.py +++ b/src/pdemtools/load.py @@ -225,15 +225,19 @@ def from_id( return preview_fpath # Construct DEM fpath - dem_fpath = os.path.join( - bucket, dataset, "strips", version, "2m", geocell, f"{dem_id}_dem.tif" - ) + dem_fpath = f'{bucket}/{dataset}/"strips"/{version}/2m/{geocell}/{dem_id}_dem.tif' + # dem_fpath = os.path.join( + # bucket, dataset, "strips", version, "2m", geocell, f"{dem_id}_dem.tif" + # ) # Construct bitmask fpath, if required if bitmask == True: - bitmask_fpath = os.path.join( - bucket, dataset, "strips", version, "2m", geocell, f"{dem_id}_bitmask.tif" + bitmask_fpath = ( + f'{bucket}/{dataset}/"strips"/{version}/2m/{geocell}/{dem_id}_bitmask.tif' ) + # bitmask_fpath = os.path.join( + # bucket, dataset, "strips", version, "2m", geocell, f"{dem_id}_bitmask.tif" + # ) else: bitmask_fpath = None