Skip to content

Commit

Permalink
cast to float just in case
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewAnnex committed Feb 7, 2023
1 parent cf01e94 commit 3367232
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion planetcantile/topoalgo.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class TopographyQuantizer(BaseAlgorithm):
def __call__(self, img: ImageData) -> ImageData:
"""Encode DEM into RGB"""
quantizer = quantizers.get(self.body, "anyrock")
z = img.data[0]
z = img.data[0].astype(float)
z -= quantizer["min"]
z /= quantizer["resolution"]
d_z = z / 256
Expand Down

0 comments on commit 3367232

Please sign in to comment.