[ncl-talk] gsn_csm_vector_scalar can't color at right speed

chenxiaochen chenxiaochen at aliyun.com
Fri Oct 10 06:40:11 MDT 2014


dear nc-talk everyone~
    I found a problem when I use gsn_csm_vector_scalar . I use CurlyVector ,  I set res at vcLevelSelectionMode = "ManualLevels"  and res at vcMaxLevelValF = 15 to control the color of vectors,but the color is less than the speed. It is at too low class at speed about . if  I  remove these item or use another vector style  it colored well.please help me,maybe it's a bug.my script
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
begin
f1 = addfile("~/ncl/uwnd.mon.ltm.nc","r")
f2 = addfile("~/ncl/vwnd.mon.ltm.nc","r")
level=925
wks_type = "pdf" 
wks=gsn_open_wks(wks_type,"003")
u=f1->uwnd(6,925,:,:)
v=f2->vwnd(6,925,:,:)
speed=u
speed=sqrt(u^2+v^2)

vres = True
vres at vcLevelPalette = "ncl_default"

vres at vcLevelSelectionMode = "ManualLevels"
vres at vcMaxLevelValF = 20

 vres at vcGlyphStyle = "CurlyVector" 
 vres at vcRefMagnitudeF = 5.0 ; make vectors larger
 vres at vcRefLengthF = 0.050 ; ref vec length
 vres at vcMinDistanceF = 0.02 ; thin out vectors
 vres at vcRefAnnoOn = True 
 plot = gsn_csm_vector_scalar_map_ce(wks,u,v,speed, vres)
end 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20141010/8463af47/attachment.html 


More information about the ncl-talk mailing list