- 积分
- 322
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2012-5-23
- 最后登录
- 1970-1-1
|
发表于 2020-6-22 16:48:26
|
显示全部楼层
老师,是不是我从github和gitee分别下载了包,解压,在本地目录中使用- D:\360安全浏览器下载\PyCINRAD-master (1)\PyCINRAD-master>python setup.py install
复制代码 ,更新成功后还是提示”兰州
Traceback (most recent call last):
File "e:/MyPython/读取雷达数据.py", line 7, in <module>
rl = f.get_data(2, 230, 'REF')
File "D:\Program Files\Python 3.7\lib\site-packages\cinrad\io\level2.py", line 706, in get_data
da = xr.DataArray(ret, coords=[a, d], dims=["azimuth", "distance"])
File "D:\Program Files\Python 3.7\lib\site-packages\xarray\core\dataarray.py", line 344, in __init__
coords, dims = _infer_coords_and_dims(data.shape, coords, dims)
File "D:\Program Files\Python 3.7\lib\site-packages\xarray\core\dataarray.py", line 155, in _infer_coords_and_dims
"coordinate %r" % (d, sizes[d], s, k)
ValueError: conflicting sizes for dimension 'distance': length 1533 on the data but length 1534 on coordinate 'distance'“
是不是我方法没找对水平太低,让您费神了。 |
|