- 积分
- 2173
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2016-5-16
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
用ncl画水汽填图,发现色标怎么都显示不出来 如果添加上@lblabelon = ture 则会出现警告[img]file:///C:\Users\ASUS\AppData\Roaming\Tencent\Users\975055943\QQ\WinTemp\RichOle\I[EWU$6$_PAC4%{Z9HC(U{E.png[/img] warning:lbLabelBarOn is not a valid resource in /hgt130913500_contour at this time
希望能错这里得到解决 谢谢!
cnres = True ;水汽填图
cnres@gsnDraw = False
cnres@gsnFrame = False
cnres@cnFillOn=True
cnres@cnLevelSelectionMode = "ManualLevels" ; set manual contour levels
cnres@cnLineLabelPlacementMode="Constant"
cnres@cnLinesOn=False
cnres@cnLineLabelsOn=True
cnres@cnFillDrawOrder = "Predraw" ; areas before map gets
cnres@cnInfoLabelOn = False
cnres@lbOrientation = "Horizontal";"Vertical" ; ; vertical label bar
cnres@lbLabelFontHeightF = -0.15
cnres@pmLabelBarHeightF = 0.13
cnres@pmLabelBarWidthF = 0.3
;cnres@pmLabelBarParallelPosF = -1 ;shuiping
;cnres@lbBoxEndCapStyle="TriangleBothEnds"
cnres@pmLabelBarOrthogonalPosF = -0.008 ;chuizhi
;cnres@cnLevelSelectionMode="ExplicitLevels"
res = True ;等高线
res@mpMinLatF = 10
res@mpMaxLatF = 50
res@mpMinLonF = 80
res@mpMaxLonF = 150
res@mpFillOn = False
res@mpOutlineOn = True
res@mpOutlineBoundarySets = "AllBoundaries"
res@cnFillOn = False ; cn means ContourPlot
res@cnLinesOn = True
res@cnLineThicknessF = 2
res@cnLineLabelsOn = True
res@cnInfoLabelOn = False ; set false will not set an information label
res@cnLevelSelectionMode = "ManualLevels"
res@cnMinLevelValF = 5700
res@cnLevelSpacingF = 20
res@gsnSpreadColors = True ; 6.1.0
res@lbBoxLinesOn = False ; Label bar
res@lbLabelAutoStride = True ; let NCL determine label
res@gsnLeftString = " "
res@gsnRightString = " "
vcres = True ;风速
vcres@gsnLeftString = " "
vcres@gsnRightString = " "
vcres@vcRefAnnoOrthogonalPosF = 0.15;-1.0 ; move ref vector up
vcres@vcRefMagnitudeF = 10.0 ; make vectors larger
vcres@vcRefLengthF = 0.025 ;0.45; ; ref vec length
;vcres@vcMinMagnitudeF = 3
vcres@vcGlyphStyle = "LineArrow";"CurlyVector" ;"FillArrow";"WindBarb";; turn on curly vectors
vcres@vcMinDistanceF = 0.017 ; thin out vectors
vcres@vcRefAnnoOn = True
vcres@vcRefAnnoString2On = False
vcres@vcLineArrowThicknessF = 2.0
vcres@vcVectorDrawOrder= "PostDraw"
vcres@lbOrientation = "Vertical" ;"Horizontal"; ; vertical label bar
vcres@lbLabelFontHeightF = 0.02
vector = gsn_csm_vector(wks,uwnd,vwnd,vcres)
contour = gsn_csm_contour_map_overlay(wks, hgt, uv, res, cnres)
overlay(contour, vector)
maximize_output(wks,False)
draw(contour)
;frame(wks)
end
|
|