爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 10299|回复: 4

zonal图对数坐标轴出现的错误,求助

[复制链接]

新浪微博达人勋

发表于 2012-12-12 11:41:49 | 显示全部楼层 |阅读模式

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

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

x
zonal t随纬度和高度的变化,画等高线图,垂直坐标设成气压对数坐标,理想的是1000,,100,10,1,10-1,10-2,10-3,10-4,10-5。 未命名.jpg
66层气压。  画图出错,出不来气压对数。报错:
warning:_NhlCreateSplineCoordApprox: Attempt to create spline approximation for Y axis failed: consider adjusting trYTensionF value
warning:IrTransInitialize: error creating spline approximation for trYCoordPoints; defaulting to linear
warning:IrTransInitialize: LogAxis requires all positive data extent: defaulting trYAxisType to LinearAxis

程序如下:
16   zave = dim_avg_Wrap(T)                             ; calculate zonal ave
     17 ;************************************************
     18   p=in->lev_p                                    
     19 ;************************************************
     20 ; create plot
     21 ;************************************************
     22   wks  = gsn_open_wks("ps","zonalt")               ; Opens a ps file
     23   res                          = True             ; plot mods wanted
     24   res@sfYArray                 = p            ; put eta on y-axis
     25   res@sfXArray                 = zave&lat         ; put lat on x-axis
     26   res@tiXAxisString            = "latitude"       ; x-axis label
     27   res@tiYAxisString            = "p"     ; y-axis label
     28 res@cnInfoLabelOn=False        
     29 res@trXReverse                 =True
     30 res@cnLevelSpacingF=10         
     31   res@gsnYAxisIrregular2Log = True             ; convert y-axis to linear
     32 res@cnLevelSpacingF=10
     33   plot = gsn_csm_contour(wks,zave,res)         ; creates plot
     34 end



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

新浪微博达人勋

发表于 2012-12-12 13:18:09 | 显示全部楼层
NCL有专门的对数压力图的函数http://www.ncl.ucar.edu/Applications/height_lat.shtml
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2012-12-12 13:56:06 | 显示全部楼层
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2013-1-16 14:37:05 | 显示全部楼层
求助同样的问题
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2020-5-17 22:21:32 | 显示全部楼层
res@gsnAddCyclic = False  ?
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

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

本版积分规则

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

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

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