Fix coord_tiles

This commit is contained in:
Florent Guiotte 2020-05-29 18:32:32 +02:00
parent dd76f031fb
commit 06649497ae

View File

@ -25,7 +25,8 @@ def run(rasters_path, rasters_name, gt_suffix='gt.tif'):
for gtn in gt_names:
gt += [load_tif(gtn)]
rasters += [{Path(n).stem: load_tif(gtn.as_posix().strip(gt_suffix) + n)
rasters += [{Path(n).stem:
load_tif(gtn.as_posix().replace(gt_suffix, '') + n)
for n in rasters_name}]
return gt, rasters