We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89ac5d4 commit 0e254beCopy full SHA for 0e254be
lonboard/experimental/_surface.py
@@ -55,7 +55,7 @@ def apply_colormap(
55
cmap: dict[int, tuple[int, int, int] | tuple[int, int, int, int]],
56
) -> NDArray[np.uint8]:
57
"""Apply rasterio colormap to single-band array."""
58
- lut = np.zeros((max(cmap.keys()), 4), dtype=np.uint8)
+ lut = np.zeros((max(cmap.keys()) + 1, 4), dtype=np.uint8)
59
for k, v in cmap.items():
60
lut[k] = v
61
0 commit comments