Skip to content

Commit

Permalink
Use 0 for water missing tiles, not 1 (#16)
Browse files Browse the repository at this point in the history
* write zeros, not ones, for water

* version for water change
  • Loading branch information
scottstanie authored May 18, 2023
1 parent 80e997e commit 2e65066
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions sardem/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,10 +367,9 @@ def _write_zeros(self, local_filename):
shape = (3601, 3601)
if self.data_source == "NASA_WATER":
dtype = np.uint8
data = np.ones(shape, dtype=dtype) * 255
else:
dtype = np.int16
data = np.zeros(shape, dtype=dtype)
data = np.zeros(shape, dtype=dtype)
data.tofile(local_filename)

def download_all(self):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="sardem",
version="0.11.2",
version="0.11.3",
author="Scott Staniewicz",
author_email="scott.stanie@gmail.com",
description="Create upsampled DEMs for InSAR processing",
Expand Down

0 comments on commit 2e65066

Please sign in to comment.