Skip to content

Commit

Permalink
fix mosaic load bug on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
trchudley committed Jun 13, 2024
1 parent b6d67ad commit 5a559db
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/pdemtools/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5a559db

Please sign in to comment.