Skip to content

How to remove black background (nan values) from loaded raster? #409

Answered by giswqs
zxdawn asked this question in Q&A
Discussion options

You must be logged in to vote

The add_raster method probably can't understand raster.rio.nodata. Try setting the nodata value in the array to another value and use it for the nodata parameter for add_raster

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@zxdawn
Comment options

Answer selected by giswqs
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