爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 5506|回复: 2

有关ncl画截面图的问题

[复制链接]
发表于 2015-10-21 15:06:55 | 显示全部楼层 |阅读模式
NCL
系统平台:
问题截图: -
问题概况: 只更改官网上面的文件名,试运行时出现问题
我看过提问的智慧: 看过
自己思考时长(天): 2

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

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

x
官网的代码为http://www2.mmm.ucar.edu/wrf/OnL ... f_CrossSection4.ncl

出现问题为
fatal:fspan: number of elements parameter is less-than-or-equal-to one, can't continue
fatal:["Execute.c":8575]:Execute: Error occurred at or near line 134 in file 3.ncl

已经知道问题出在这个位置
   opts_xy@tmXBMode                = "Explicit"
    opts_xy@tmXBValues              = fspan(0,xspan,nx)                    ; Create tick marks
    opts_xy@tmXBLabels              = sprintf("%.1f",fspan(xmin,xmax,nx))  ; Create labels

跟其相关的前面内容为
dimsX = dimsizes(X_plane)
      xmin  = X_plane(0)
      xmax  = X_plane(dimsX(0)-1)
      xspan = dimsX(0)-1
      nx    = floattoint( (xmax-xmin)/2 + 1)

在此求助各位大神
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2015-10-21 15:58:04 | 显示全部楼层
pangzi_xu 发表于 2015-10-21 15:42
opts_xy@tmXBValues  和    opts_xy@tmXBLabels    的数目不匹配???

找到原因了,我的数据尺度小没有保证fspan函数的第三个位置的值大于等于2
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

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

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