爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 166|回复: 1

求问

[复制链接]

新浪微博达人勋

发表于 2024-3-30 21:53:57 | 显示全部楼层 |阅读模式

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

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

x
有没有大佬帮忙看一下,照着官网例子画的,为什么等值线会这么乱呢
数据处理
t=f->time
date=cd_calendar(t,-3)
z=short2flt(f->z(1,1,:,:))
u=short2flt(f->u(1,1,:,:))
v=short2flt(f->v(1,1,:,:))
c=short2flt(f->t(1,1,:,:))
h=z/98
copy_VarMeta(z,h)
h@units="dagdm"
T=c-273.15
Ts=smth9(smth9(smth9(T,0.50,0.25,True),0.5,0.25,True),0.5,0.25,True)
Tsm=smth9(smth9(smth9(Ts,0.50,0.25,True),0.5,0.25,True),0.5,0.25,True)
Tsmt=smth9(smth9(smth9(Tsm,0.50,0.25,True),0.5,0.25,True),0.5,0.25,True)
Tsmth=smth9(smth9(smth9(Tsmt,0.50,0.25,True),0.5,0.25,True),0.5,0.25,True)
copy_VarMeta(c,Tsmth)
Tsmth@units="~S~o~N~C"


等值线
levels                                                                    =ispan(1000,1300,4)
h_res                                                                    =res
h_res@cnLineColor                                                 ="NavyBlue"
h_res@cnLevelSelectionMode                                  ="ExplicitLevels"
h_res@cnLevels                                                     = levels
h_res@cnLineLabelBackgroundColor                         = -1    ; transparent
h_res@cnLineThicknessF                                         = 2.5
h_res@cnHighLabelsOn                                           = True
h_res@cnLowLabelsOn                                            = True
h_res@cnHighLabelBackgroundColor                         = -1      
h_res@cnLowLabelBackgroundColor                          = -1
h_res@cnInfoLabelFontColor                                    = "NavyBlue"
h_res@cnInfoLabelPerimOn                                      = False



ncl绘图1.png
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2024-3-31 12:00:03 | 显示全部楼层
我对NCL不是很熟悉,但是仅从图片中看好像是你的等值线图画的太密了,可以尝试隔几个画一个等值线
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

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

本版积分规则

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

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

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