- 积分
- 32392
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2011-12-11
- 最后登录
- 1970-1-1
|
GrADS
系统平台: |
|
问题截图: |
|
问题概况: |
CurlyVector可以出图,LineArrow不可以。另外问一下坐标轴°怎么标呢 |
我看过提问的智慧: |
看过 |
自己思考时长(天): |
2 |
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
使用的脚本; =================================================;
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
; =================================================;
begin
f = addfile("2001-2010.nc","r")
u = f->u(:,11,:,:)
v = f->v(:,11,:,:)
; =================================================;
; create plots
; =================================================;
wks = gsn_open_wks("pdf","10muv1") ; open a ps file
plot = new(4,graphic) ; create a plot array
res = True ; plot mods desired
res@vcRefMagnitudeF = 5.0 ; add a reference vector
res@vcRefLengthF = 0.045 ; what the ref length is
res@vcGlyphStyle = "CurlyVector" ; turn on LineArrow curley vectors“LineArrow” “FillArrow”“WindBarb”“CurlyVector”
res@mpMinLatF = 30
res@mpMaxLatF = 50
res@mpMinLonF = 70
res@mpMaxLonF = 100
res@gsnDraw = False ; don't draw
res@gsnFrame = False ; don't advance frame
;res@cnInfoLabelOn = False ; turn off cn info label
res@gsnRightString =" "
res@gsnLeftString = "DJF"
plot(0) = gsn_csm_vector_map_ce(wks,u(0,:,:),v(0,:,:),res)
res@gsnLeftString = "MAM"
plot(1) = gsn_csm_vector_map_ce(wks,u(1,:,:),v(1,:,:),res)
res@gsnLeftString = "JJA"
plot(2) = gsn_csm_vector_map_ce(wks,u(2,:,:),v(2,:,:),res)
res@gsnLeftString = "SON"
;delete(res@cnInfoLabelOn)
plot(3) = gsn_csm_vector_map_ce(wks,u(3,:,:),v(3,:,:),res)
;************************************************
; create panel
;************************************************
resP = True ; modify the panel plot
;resP@txString = "wind"
gsn_panel(wks,plot,(/2,2/),resP) ; now draw as one plot
end
|
|