爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 4035|回复: 2

ncl画风矢量问题

[复制链接]

新浪微博达人勋

发表于 2015-3-27 17:34:06 | 显示全部楼层 |阅读模式
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

密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2015-3-27 19:11:21 | 显示全部楼层
这样的帖子很多,楼主查查
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2015-3-27 20:46:47 | 显示全部楼层
这个应该是箭头大小的设置问题 http://mailman.ucar.edu/pipermai ... -August/000506.html
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表