- 积分
- 2850
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2014-10-26
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
下面脚本是官网画流场图的脚本,我把文件换成我自己的,但是画出来内容是空的,也没有经纬度信息,但我的文件有经纬度的啊,请问要怎么改呢?
; stream_5.ncl
;
; Concepts illustrated:
; - Drawing a black-and-white streamline plot
;----------------------------------------------------------------------
;
; These files are loaded by default in NCL V6.2.0 and newer
; load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
; load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
begin
f = addfile("../wrfout_d02_2009-09-16_06:00:00","r")
;u1 = f->U(:,0,:,:)
;print(u1)
u = f->U(0,0,:,:) ; read in example data [2D only here]
v = f->V(0,0,:,:)
; =================================================;
; create plots
; =================================================;
wtype = "x11"
;
; These lines have been commented out due to the fact that they generate
; an excessively large plot.
; wtype@wkWidth = 2500
; wtype@wkHeight = 2500
wks = gsn_open_wks(wtype,"stream")
; The following line is not needed, and has been commented out.
; wks = gsn_open_wks("ps","stream") ; open a ps plot
res = True
res@stLineThicknessF = 5.0 ; default is 1.0
res@stLineColor = "NavyBlue"
plot = gsn_csm_streamline(wks,u,v,res)
end
|
-
|