- 积分
- 418
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2019-7-3
- 最后登录
- 1970-1-1
|
楼主 |
发表于 2019-8-28 17:59:05
|
显示全部楼层
我把二进制文件转化为矩阵然后再转化为nc但是一直报错,,,,raceback (most recent call last):
File "E:/Youxun/lianxi/untitled1/111.py", line 51, in <module>
latitudes[:] = lats # 放入变量
File "netCDF4\_netCDF4.pyx", line 4796, in netCDF4._netCDF4.Variable.__setitem__
File "E:\Youxun\xinde\lib\site-packages\netCDF4\utils.py", line 365, in _StartCountStride
datashape = broadcasted_shape(shape, datashape)
File "E:\Youxun\xinde\lib\site-packages\netCDF4\utils.py", line 973, in broadcasted_shape
return np.broadcast(a, b).shape
ValueError: shape mismatch: objects cannot be broadcast to a single shape |
|