Skip to content

Commit

Permalink
add --overwrite to watermask call to simplify local testing
Browse files Browse the repository at this point in the history
  • Loading branch information
forrestfwilliams committed Jul 2, 2024
1 parent c449956 commit 894c93b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hyp3_isce2/water_mask.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 894c93b

Please sign in to comment.