Skip to content

Commit 2e65066

Browse files
authored
Use 0 for water missing tiles, not 1 (#16)
* write zeros, not ones, for water * version for water change
1 parent 80e997e commit 2e65066

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

sardem/download.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,10 +367,9 @@ def _write_zeros(self, local_filename):
367367
shape = (3601, 3601)
368368
if self.data_source == "NASA_WATER":
369369
dtype = np.uint8
370-
data = np.ones(shape, dtype=dtype) * 255
371370
else:
372371
dtype = np.int16
373-
data = np.zeros(shape, dtype=dtype)
372+
data = np.zeros(shape, dtype=dtype)
374373
data.tofile(local_filename)
375374

376375
def download_all(self):

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setuptools.setup(
77
name="sardem",
8-
version="0.11.2",
8+
version="0.11.3",
99
author="Scott Staniewicz",
1010
author_email="scott.stanie@gmail.com",
1111
description="Create upsampled DEMs for InSAR processing",

0 commit comments

Comments
 (0)