| 
 
	积分3209贡献 精华在线时间 小时注册时间2012-6-1最后登录1970-1-1 
 | 
 
| 
按照论坛大佬的帖子,成功绘制了 经纬度-高度剖面图
x
登录后查看更多精彩内容~您需要 登录 才可以下载或查看,没有帐号?立即注册 
  
 filename=r'c:\work\20190628.nc'
 f=xr.open_dataset(filename)
 
 rh = f.r
 time = f.time[:]
 pres = f.level[:]
 lat = f.latitude[:]
 lon = f.longitude[:]
 arh = ax.contourf(lat[:],pres[:],rh[1,:,:,22], cmap='Greens',levels=np.arange(60,101,5),extend='both',alpha=0.75)
 
 
 想绘制 时间-高度剖面图时,遇到问题,前来求助
 尝试把最后一行改为
 arh = ax.contourf(time[:],pres[:],rh[:,:,22,22], cmap='Greens',levels=np.arange(60,101,5),extend='both',alpha=0.75)
 
 提示  TypeError: Length of x (48) must match number of columns in z (13)
 
 
 | 
 |