- 积分
- 6467
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2015-11-6
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
各位大神,我最近刚学wrf和ncl,想试着画一下垂直速度W的垂直剖面图,但是一直不成功,我的W是四维的,还包括时间维,不知道是不是这个问题,我还设置了第一个时次,仍然不行,错误如下:
fatal:Number of subscripts do not match number of dimensions of variable,(3) Subscripts used, (1) Subscripts expected
fatal:Execute: Error occurred at or near line 336 in file $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl
fatal:Execute: Error occurred at or near line 12 in file c:/w.ncl
脚本如下:
load"$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load"$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
load"$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl"
begin
f=addfile("c:/wrfout_d01_2000-01-24_12.nc","r")
w=wrf_user_getvar(f,"W",-1)
w1=w(0,:,:,:)
wks=gsn_open_wks("ps","w")
plane = (/ 1,30 , 40,30 /)
z=(/100,200,300,400,500,600,700,800,1000,3000,5000/)
w_plane=wrf_user_intrp3d(w1,z,"v",plane,90.0,False)
res=True
plot=gsn_csm_pres_hgt_contour(wks,w_plane,res)
end
问题可能比较菜,还请大家批评指正!谢谢各位
|
|