Skip to content

handlling NaN values in netcdfs #1013

Answered by knutfrode
KayCritchell asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Kay,

I believe the problem is not that landmask contains NaN, but rather that longitude and latitude arrays contain NaN, so that the interpolator from (i,j) <-> (lon,lat) cannot be created.
However, lokking at your file with ncview, there seem to be other issues, e.g. u and v (current components) seem to be vanishing except for a very small area at the bottom. So perhaps this file has become corrupted somehow?

Replies: 1 comment 1 reply

Comment options

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

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