From 275031bb5726eaff9ea5df79b64c454e89e5d8bf Mon Sep 17 00:00:00 2001 From: Scott Staniewicz Date: Mon, 11 Mar 2024 21:15:13 -0400 Subject: [PATCH] remove `-tap` option from `gdal_merge.py` call --- src/dolphin/stitching.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/dolphin/stitching.py b/src/dolphin/stitching.py index 428aab031..878ade2ea 100644 --- a/src/dolphin/stitching.py +++ b/src/dolphin/stitching.py @@ -241,8 +241,6 @@ def merge_images( if out_dtype is not None: out_gdal_dtype = gdal.GetDataTypeName(utils.numpy_to_gdal_type(out_dtype)) args.extend(["-ot", out_gdal_dtype]) - if target_aligned_pixels: - args.append("-tap") if create_only: args.append("-create") if options is not None: @@ -253,7 +251,7 @@ def merge_images( logger.info(f"Running {' '.join(arg_list)}") subprocess.check_call(arg_list) - # Now clip to + # Now clip to the provided bounding box gdal.Translate( destName=fspath(outfile), srcDS=fspath(merge_output),