From 894c93b1881b7dc4443fc59d3a337c2a48043ae5 Mon Sep 17 00:00:00 2001 From: Forrest Williams Date: Tue, 2 Jul 2024 08:00:51 -0500 Subject: [PATCH] add --overwrite to watermask call to simplify local testing --- src/hyp3_isce2/water_mask.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hyp3_isce2/water_mask.py b/src/hyp3_isce2/water_mask.py index 489869e6..06681287 100644 --- a/src/hyp3_isce2/water_mask.py +++ b/src/hyp3_isce2/water_mask.py @@ -125,6 +125,7 @@ def create_water_mask(input_image: str, output_image: str, gdal_format='ISCE', t merged_warped_path, f'--outfile={output_image}', '--calc="numpy.abs((A.astype(numpy.int16) + 1) - 2)"', # Change 1's to 0's and 0's to 1's. - f'--format={gdal_format}' + f'--format={gdal_format}', + '--overwrite', ] subprocess.run(flip_values_command, check=True)