mapbox / mapbox/rio-rgbify

ValueError for pixel values greater than than 256 ** 3

Open
#16 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
125
Forks
46
PR merge metrics
No merged PRs in 30d

Description

While processing a tif with very large no data value, i get this error:

`ValueError: Data of 3.4028234663852886e+38 larger than 256 ** 3`

A little unexpected since there is no documentation of this limitation.

Contributor guide

Open the contributing guide

Research direction

Reproduce the failure with a TIFF containing the reported large no-data value, then trace where pixel values are checked against 256 ** 3. The issue names no files or tests; done should establish the intended handling or documented limitation for such values and add coverage for the observed case.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.