爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 4690|回复: 0

数据范围不一致(ncl)

[复制链接]
发表于 2014-11-25 16:24:41 | 显示全部楼层 |阅读模式
NCL
系统平台:
问题截图: -
问题概况: 添加了位温contour语句,出现以下错误:fatal:ContourPlotDraw: coordinates are out of range for drawing over a map: standard line or line label rendering method will not work;
consider setting the resource trGridType to "TriangularMesh" if coordinates contain missing values
修改了半天没有改好,请问大家是什么原因呢?
我看过提问的智慧: 看过
自己思考时长(天): 1

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

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

x
后面是我添加的语句,谢谢!   
。。。。。。。。
    tk=T
     a1 = where(tk .gt. 263.0, 0.622*6.11*exp(17.26*(tk-273.16)/(tk-35.86)), \
                     0.622*6.11*exp(21.87*(tk-273.16)/(tk-7.66)))   ;
     b1= where(tk .gt. 263.0, P-0.278*exp(17.26*(tk-273.16)/(tk-35.86)),\
                 P-0.278*exp(21.87*(tk-273.16)/(tk-7.66)))   ;
     qs1=a1/b1
     q1=qs1*rh
     e1=P*q1/100./(0.62197+q1/100.0)

     tk1=55.0+2840.0/(3.5*log(tk)-log(e1)-4.805)
     pot1=tk*(1000/P)^(0.2854*(1.0-0.28*q1/100.0))
     ept1=pot1*exp(((3376./tk1)-2.54)*q1/100.0*(1.0+0.81*q1/100.0)) ;
     ept1@description = "0se"
     ept1@units = "K"
     levels      = ispan(200,350,10)
     rh_res                                = res
     rh_res@cnLineColor                    = "black"
     rh_res@cnLevelSelectionMode           = "ExplicitLevels"
     rh_res@cnLevels                       = levels
     rh_res@cnLineLabelBackgroundColor     = -1    ; transparent
     rh_res@cnLineThicknessF               = 3.5
    rh_res@cnLineLabelsOn                 =True
     ;rh_res@cnHighLabelsOn                 = True
     ;rh_res@cnLowLabelsOn                  = True
     rh_res@cnHighLabelBackgroundColor     = -1
     rh_res@cnLowLabelBackgroundColor      = -1
     rh_res@cnLineDrawOrder                = "draw";"Postdraw"
     rh_res@cnInfoLabelOn                  =False
     ;print(T)
     printVarSummary(ept1)

     contour_rh = gsn_csm_contour(wks,ept1,rh_res)
。。。。。。。。。。。。

密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

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

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