You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "interp2d.py", line 60, in
outf.variables['lat'].assign_value(ersst_lat)
File "/etc/anaconda2/envs/ml/lib/python3.8/site-packages/PyNIO/Nio.py", line 444, in assign_value
self._obj.assign_value(value)
Nio.NIOError: failed to write array (check dtype)
but acctually this caused by wrong numpy.shape
The text was updated successfully, but these errors were encountered:
Maybe, You can check data type.I use the np.zeros find the list default type is float64 and i can not write in nc file , so i change the np.zeros dtype is float32, its OK.
The error is:
Traceback (most recent call last):
File "interp2d.py", line 60, in
outf.variables['lat'].assign_value(ersst_lat)
File "/etc/anaconda2/envs/ml/lib/python3.8/site-packages/PyNIO/Nio.py", line 444, in assign_value
self._obj.assign_value(value)
Nio.NIOError: failed to write array (check dtype)
but acctually this caused by wrong numpy.shape
The text was updated successfully, but these errors were encountered: