- 积分
- 201
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2012-4-12
- 最后登录
- 1970-1-1
|
发表于 2019-7-5 12:43:41
|
显示全部楼层
@楼主,谢谢共享,推广python处理雷达数据,我按照您的方法全部安装好了,应用你写的代码(PPI.py)运行时,发现运行到第56行代码[liner = fig.geoax.gridlines(draw_labels=True,linewidth=2, color='gray', alpha=0.5, linestyle='--')],出现以下错误:
Traceback (most recent call last):
File "ppi.py", line 56, in <module>
liner = fig.geoax.gridlines(draw_labels=True,linewidth=2, color='gray', alpha=0.5, linestyle='--')
File "C:\ProgramData\Anaconda3\lib\site-packages\cartopy\mpl\geoaxes.py", line 1224, in gridlines
ylocator=ylocs, collection_kwargs=kwargs)
File "C:\ProgramData\Anaconda3\lib\site-packages\cartopy\mpl\gridliner.py", line 185, in __init__
self._assert_can_draw_ticks()
File "C:\ProgramData\Anaconda3\lib\site-packages\cartopy\mpl\gridliner.py", line 399, in _assert_can_draw_ticks
'supported.'.format(prj=self.axes.projection))
TypeError: Cannot label gridlines on a AzimuthalEquidistant plot. Only PlateCarree and Mercator plots are currently supported.
不知道大家有没有碰见这种情况
|
|