Replies: 1 comment 13 replies
-
TiTiler endpoints have an https://developmentseed.org/titiler/endpoints/cog/#tiles
|
Beta Was this translation helpful? Give feedback.
13 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am building a STAC catalog in Azure Blob. The data are nightly mosaics for nighttime lights from Colorado School of Mines and are converted to COGs before being inserted into the catalog. The original files are GeoTiffs rounded to 100th place and in average every COG occupies approx. 4 to 5 GB on disk. It occured to me that with some preprocessing (setting negative radiance to nodata, thresholding max radiance and using a scale factor ) the data type can be changed to 2 byte unsigned integer halving thus the output COG size (2GB and less).
titiler can display the COGs but ignores the scale factor and shows the data to be of int type not float as opposed to QGIS/GDAL. I think this might be a tricky one but in essence it is relatively easy to use the scale factor in the reader and I was wondering if there is a good/specific reason why this is not happening.
The way I imagine this is through a config setting, either inside the server or as an env variable, or both, something like UNSCALE=TRUE/FALSE
I am looking forward to hear your thoughts on this
Beta Was this translation helpful? Give feedback.
All reactions