- 积分
- 2399
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2013-1-28
- 最后登录
- 1970-1-1
|
发表于 2014-1-1 21:24:22
|
显示全部楼层
风往北吹 发表于 2014-1-1 20:40
这个要看看你的脚本,黏上来吧~
res = True ; make plot mods
res@gsnDraw = False
res@gsnFrame = False
res@gsnMaximize =True
res@mpLimitMode ="LatLon"
res@mpMinLatF = minlat
res@mpMaxLatF = maxlat
res@mpMinLonF = minlon
res@mpMaxLonF = maxlon
res@mpCenterLonF =(minlon+maxlon)/2
res@gsnAddCyclic = False
res@mpFillOn = True
res@mpOutlineOn =True ; Use outlines from shapefile
res@mpDataBaseVersion = "HighRes"
res@mpLandFillColor = "white"
res@mpInlandWaterFillColor = "white"
res@mpOceanFillColor = "white"
res@mpGeophysicalLineColor ="grey"
res@mpGeophysicalLineThicknessF=0.7
res@gsnLeftString = "" ; are blank
res@gsnRightString = "" ; are blank
res@tiMainFont =25
res@tiMainString = "The correlation between "+nlev+"hPa"+" wind(FMA) and I~B~OLR~N~ "
;>-------------------vector-----------------------------------<
res@vcGlyphStyle = "CurlyVector" ; curly vectors
res@gsnRightString = " " ; turn off right string
res@gsnLeftString = " " ; turn off left string
res@tiXAxisString = " " ; turn off axis label
res@vcPositionMode="ArrowTail"
res@vcLineArrowThicknessF="1.75"
res@vcMinDistanceF ="0.0175"
res@vcMonoLineArrowColor="False"
gsn_define_colormap(wks,"GMT_hot") ; 设置色表
res@gsnSpreadColors= True
res@gsnSpreadColorStart= -1
res@gsnSpreadColorEnd = 2
res@lbLabelBarOn ="True"
res@lbOrientation = "Horizontal" ; 竖直放置 Laber bar
res@lbBoxLinesOn = False ; Label bar 上不标记黑线
;res@vcRefAnnoOn ="False"
res@vcRefMagnitudeF = 1 ; define vector ref mag
res@vcRefLengthF = 0.02 ; define length of vec ref
res@vcRefAnnoSide ="Top"
res@vcRefAnnoArrowUseVecColor="False"
res@vcRefAnnoArrowLineColor="black"
res@vcRefAnnoString1="$VMG$"+"m/s"
res@vcRefAnnoString2On ="False"
res@vcRefAnnoOrthogonalPosF=-0.128
;res@vcRefAnnoParallelPosF=0.95
;res@vcRefAnnoPerimOn ="False"
res@vcFillArrowEdgeColor="Foreground"
res@vfXCStartV = minlat
res@vfXCEndV = maxlat
res@vfXCStartV = minlon
res@vfXCEndV = maxlon
plotA = gsn_csm_vector_map_ce(wks,ccr1(:,:),ccr2(:,:),res)
chinamap = add_china_map(wks,plotA,cnres)
draw(plotA)
frame(wks)
脚本就是上面这些了,红色那部分就是调矢量用的~出的图该有的都有了,就是没有色标~~搞不懂 |
|