Skip to content

Commit

Permalink
make terrainrgb interval and baseval floats to support more quantizers (
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewAnnex authored Feb 14, 2023
1 parent 5c202f2 commit 6ddf547
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/titiler/core/titiler/core/algorithm/dem.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ class TerrainRGB(BaseAlgorithm):
"""Encode DEM into RGB (Mapbox Terrain RGB)."""

# parameters
interval: int = 1
baseval: int = -10000
interval: float = 1.0
baseval: float = -10000.0

# metadata
input_nbands: int = 1
Expand Down

0 comments on commit 6ddf547

Please sign in to comment.