- 积分
- 55946
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2011-6-21
- 最后登录
- 1970-1-1
|
楼主 |
发表于 2021-3-9 17:47:08
|
显示全部楼层
- f = addfile(r'D:\Temp\nc\EC.nc')
- t = f.gettime(0)
- print(t)
- u = f['u'][0,:,'31:41','70:140:2']
- u = mean(u,axis=1)
- v = f['v'][0,:,'31:41','70:140:2']
- v = mean(v,axis=1)
- speed = sqrt(u*u+v*v)
- speed = speed[::-1,:]
- tdata = f['r'][0,:,'31:41','70:140']
- tdata = mean(tdata,axis=1)
- tdata = tdata[::-1,:]
- lev1 = tdata.dimvalue(0)
- lev1=lev1[::-1]
- lev2 = meteo.pressure_to_height_std(lev1)
- lev2 = lev2[:]/1000
- tdata.setdimvalue(0, lev2)
- speed.setdimvalue(0, lev2)
- fn1 = addfile(r'D:\Temp\nc\elev.0.25-deg.nc')
- height=fn1['data'][0,'31:41',:]
- height = mean(height,axis=0)
- height = height/1000
- x= fn1['lon'][:]
- axes()
- levs = arange(10,100,10)
- cols = makecolors(len(levs)+1, reverse=True)
- layer = contourf(tdata,levs,colors=cols)
- xx, yy = meshgrid(u.dimvalue(1), lev2)
- layer1 = barbs(xx, yy, u, v, speed,color='k', size = 10)
- fill_between(x,height,color='gray')
- plot(x,height,color='k')
- yaxis(tickin=False,tickfontsize=17)
- xaxis(tickin=False,tickfontsize=17)
- yaxis(location='right',tickin=True,tickfontsize=18)
- yticks(tdata.dimvalue(0), lev1)
- ylim(lev2.min(),lev2.max())
- xlim(90,120)
- colorbar(layer,orientation='horizontal',aspect=35)
- antialias(True)
|
|