- 积分
- 9
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2020-10-28
- 最后登录
- 1970-1-1
|
发表于 2021-2-14 19:43:18
|
显示全部楼层
请问你使用ax.quiver(lon, lat, u, v)这个函数有没有报错:IndexError: 2-dimensional boolean indexing is not supported. ?
我是用的NCEP数据
代码如下:
dsu=xr.open_dataset(uwind_dpath)
dsv=xr.open_dataset(vwind_dpath)
uwnd=dsu['uwnd']
vwnd=dsv['vwnd']
u=uwnd.loc['2019-01-01',850,:,:]
v=vwnd.loc['2019-01-01',850,:,:]
lat=dsu['lat']
lon=dsu['lon']
fig=plt.figure()
ax=fig.add_subplot(111,projection=ccrs.PlateCarree(180))
ax.quiver(lon,lat,u,v,transform=ccrs.PlateCarree()) |
|