爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 9228|回复: 7

关于ncl填色图色标不显示的提问

[复制链接]

新浪微博达人勋

发表于 2018-7-10 10:09:06 | 显示全部楼层 |阅读模式

登录后查看更多精彩内容~

您需要 登录 才可以下载或查看,没有帐号?立即注册 新浪微博登陆

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

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

新浪微博达人勋

发表于 2019-2-24 21:01:07 | 显示全部楼层
我也是色标不知道为什么不出来,之前都好好的,而且经纬度信息也变成了格点数量
eke_composite_analysis_during_different_pdo_phase_1993-2011.000001.png
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2019-4-19 11:11:17 | 显示全部楼层
求问贴主解决了吗,遇到了同样的问题
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2019-8-2 16:17:37 | 显示全部楼层
请问解决了吗,遇到同样的问题
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2021-10-25 21:25:13 | 显示全部楼层

请问解决了吗,遇到同样的问题
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2022-7-23 17:37:58 | 显示全部楼层
sreveryone 发表于 2019-2-24 21:01
我也是色标不知道为什么不出来,之前都好好的,而且经纬度信息也变成了格点数量

pmLabelBarDisplayMode    = "Always"
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2022-7-23 17:43:40 | 显示全部楼层
多年前的帖子,到现在都缺少回复,我以前是这样解决的,希望可以帮助其他人
pmLabelBarDisplayMode    = "Always"
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2024-1-12 16:52:55 | 显示全部楼层
邵乃夫 发表于 2022-7-23 17:43
多年前的帖子,到现在都缺少回复,我以前是这样解决的,希望可以帮助其他人
pmLabelBarDisplayMode    = " ...

Useful!
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

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

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

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