Skip to content

Trouble Hiding NoData Value #643

Discussion options

You must be logged in to vote

after inspecting the data I think I know what's going on!

The band 6 and 7 do not have the same nodata mask. Their value is set to 0 while the other bands are at -10000

Sadly the current version of rio-tiler use a per-dataset mask, meaning that it will construct a mask using the sum of all the mask, and because the band 6 and 7 says it shouldn't mask the area on the right of the image, the combined mask return 255 instead of 0.

https://github.com/cogeotiff/rio-tiler/blob/main/rio_tiler/reader.py#L197-L202

Next version of rio-tiler will use per-band mask so it should better handle this case (ref: cogeotiff/rio-tiler#579)

https://github.com/cogeotiff/rio-tiler/blob/30dc83cdc3154ac2820363d3…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@dseminara-pivot
Comment options

@vincentsarago
Comment options

Comment options

You must be logged in to vote
3 replies
@vincentsarago
Comment options

@vincentsarago
Comment options

Answer selected by dseminara-pivot
@dseminara-pivot
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants