Skip to content

rioxarray.clip returns some nan values even if data value exist for these coordinates #704

Answered by snowman2
TheRed86 asked this question in Q&A
Discussion options

You must be logged in to vote

The output raster is always going to be a grid. The nan values are for regions of the grid that don't overlap with the shape.

It sounds like you may want to use the envelope of the shape to clip to get the behavior you want.

Replies: 1 comment 1 reply

Comment options

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

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