Skip to content

Removing nan data variable values #9654

Closed Answered by gabrahamastro
gabrahamastro asked this question in Q&A
Discussion options

You must be logged in to vote

I believe I've determined that, since I was using an xarray.Dataset, when it was being read by numpy in a test I was running (np.isnan(grid_to_array).any()) it wasn't being read correctly, giving an error that there are nan values because of the data type.

However, when I converted it to an xarray.DataArray this problem was fixed, providing False to the test.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gabrahamastro
# for free to join this conversation on GitHub. Already have an account? # to comment
Category
Q&A
Labels
None yet
1 participant