- 积分
- 76
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2019-4-29
- 最后登录
- 1970-1-1
|
发表于 2020-8-3 14:48:15
|
显示全部楼层
老师您好,我已经画出图了,但是想请教时间坐标轴怎么控制,我设的时间范围并没有作用,还有就是坐标轴标记怎么改,谢谢。
fn = 'D:/nc/4/uwnd.2019.nc'
fm = 'D:/nc/4/vwnd.2019.nc'
fo = 'D:/nc/4/air.2019.nc'
fp = 'D:/nc/4/rhum.2019.nc'
f1 = addfile(fn)
f2 = addfile(fm)
f3 = addfile(fo)
f4 = addfile(fp)
data1 = f1['uwnd'][872:886,2:8,'46','100']
data2 = f2['vwnd'][872:886,2:8,'46','100']
data3 = f3['air'][872:886,2:8,'46','100']
data4 = f4['rhum'][872:886,2:8,'46','100']
data1 = data1.T
data2 = data2.T
data3 = data3.T
data4 = data4.T
lev1 = data1.dimvalue(0)
lev2 = meteo.pressure_to_height_std(lev1)
lev2 = lev2[:]/1000
data1.setdimvalue(0, lev2)
data2.setdimvalue(0, lev2)
data3.setdimvalue(0, lev2)
data4.setdimvalue(0, lev2)
es = 6.112*exp(17.67*(data3-273.16)/(data3-29.65))
qv = data4*es/100
uv = magnitude(data1, data2)
data = uv*qv/(9.8*1000)
levs=arange(0,100,5)
layer = contour(data*10000,levs,color='black')
clabel(layer)
#xticks([07/00,07/06,07/12,07/18,08/00,08/06,08/12,08/18,09/00,09/06,09/12,09/18,10/00,10/06,10/12,10/18])
yticks(lev2, lev1)
xlabel('Time')
ylabel('Pressure (hPa)')
|
|