Closed banesullivan-kobold closed 9 months ago
@banesullivan-kobold Colormaps work with uint8
data (0->255) meaning that you'll have to first rescale the data from a min-max
https://cogeotiff.github.io/rio-tiler/intro/#rescale-non-byte-data-andor-apply-colormap
I'm working with some rasters that have
float64
dtype and I'm trying to figure out how to best work with them for tile serving in rio-tiler.At present, using a colormap with non-integer dtype rasters errors with rio-tiler:
Code to create the tiff:
I'm wondering if there is an easy way to rescale my image before rendering to avoid this error and the warning that will happen when not using a colormap?