- 积分
- 1831
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2012-5-6
- 最后登录
- 1970-1-1
|
NCL
系统平台: |
linux |
问题截图: |
|
问题概况: |
wrf输出结果做散度/涡度时间序列,模仿官网上的例子自己修改了一下脚本,发现几个问题:
1.x轴是时间维,应该是41个时次,图中的时间轴出了问题
2.y轴为高度,是要自己定义数组使百pa高度显示吗? |
我看过提问的智慧: |
看过 |
自己思考时长(天): |
2 |
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
下面是脚本:
oad "$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"
load "$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRF_contributed.ncl"
begin
in = addfile("/home/zssapr/WRF3.5.1/20110710/data/wrf_data/wrfout_d02_2011-07-10_00:00:00","r")
U =in->U
ua = wrf_user_unstagger(U,U@stagger)
V = in->V
va = wrf_user_unstagger(V,V@stagger)
lat = in->XLAT(0,:,0)
lon = in->XLONG(0,0,:)
Time = WRF_Times2Udunits_c(in->Times, 0) ; convert to "hours since"
scale=1.e05
dv = new ( dimsizes(ua), typeof(ua), ua@_FillValue )
dv@long_name = "divengence"
dv@units = "scaled"
dv = uv2dv_cfd (ua,va,lat,lon, 2)
vr = new ( dimsizes(ua), typeof(ua), ua@_FillValue )
vr@long_name = "vorticity"
vr@units = "scaled"
vr = uv2vr_cfd (ua,va,lat,lon, 2) * scale
svbit = new ( dimsizes(ua), typeof(ua), ua@_FillValue )
svbit =dv/vr
time=new(41,integer)
bottom_top=new(27,integer)
south_north=new(81,integer)
west_east=new(81,integer)
svbit!0="time"
svbit!1="bottom_top"
svbit!2="south_north"
svbit!3="west_east"
svbit@time=Time
svbit@bottom_top=bottom_top
svbit@south_north=south_north
svbit@west_east=west_east
znu = in->ZNU(0,:) ; znu(bottom_top)
Svbit =svbit(:,:,6,7 )
wks = gsn_open_wks("ps","press_time")
gsn_define_colormap(wks,"BlueWhiteOrangeRed")
res = True
res@cnFillOn = True
plot = gsn_csm_contour(wks, Svbit(bottom_top|:,time|:),res)
end
NCL学习过程得到了许多同学的帮助,在此谢谢了,希望以后能帮助更多的人
|
|