handlling NaN values in netcdfs #1013
-
Hello, First: thanks for making this project open accessible. I'm attempting to use hydro outputs from the eReefs project (e.g. 'https://dapds00.nci.org.au/thredds/fileServer/fx3/gbr1_2.0/gbr1_simple_2019-03-19.nc') but these files contain NaN values in the land mask and so I get "ValueError: Points cannot contain NaN" when I try to load them into reader_netCDF_CF_generic. full error: Traceback (most recent call last): testingOutOPenDrift.py contains:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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. |
Beta Was this translation helpful? Give feedback.
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?