-
Notifications
You must be signed in to change notification settings - Fork 264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NAN #1239
Comments
are you using xarray? |
Yeah. |
Is there a better way to achieve? |
this is really not a netcdf4-python issue. I suspect you are select a point with missing or undefined data, but you would have to ask an xarray expert (maybe here). |
Yeah, thanks. The data I read out using xray is like this, and the graph drawn is as follows. <xarray.DataArray 'z' (lat: 1180, lon: 1910)>
|
You should specify ds.sel(lat=.., lon=..., method='nearest' ) without that, it is trying to find that exact value. |
ps_point = d1.sel(lon='117.17638888845157', lat='35.47979166666699')
print(ps_point.values)
When I run the codes, but the terminal shows NAN. How to solve it?
nan
The text was updated successfully, but these errors were encountered: