爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 4467|回复: 0

ncl 画图时等值线不圆滑,直角拐弯

[复制链接]

新浪微博达人勋

发表于 2017-6-15 14:35:13 | 显示全部楼层 |阅读模式
GrADS
系统平台: ncl
问题截图:
问题概况: ncl画图时线条是直角调用平滑resourcs还是不对
我看过提问的智慧: 看过
自己思考时长(天): 5

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

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

x
begin
path = "hwf.nc"
f=addfile(path,"r")
;f1=addfile("avg.nc","c")
ap=f->ap
b=dim_avg_n(ap,0)
b!0="lat"
b!1="lon"
lon=fspan(-180,180,96)
lat=fspan(-90,90,73)
b&lon=lon
b&lat=lat
b&lon@long_name="lon"
b&lon@units="degrees_east"
b&lat@long_name="lat"
b&lat@units="degrees_north"
print(max(b))
print(min(b))
;f1->avg=b
;»-í¼
wks = gsn_open_wks("png","hwfavg")
res=True
;éèÖþ-Î3¶è
res@cnMissingValFillColor = "white"      
res@gsnAddCyclic        = False
res@mpCenterLonF         = 100  
res@mpLimitMode       = "LatLon"
res@mpMinLatF         = 20         
res@mpMaxLatF         = 60
res@mpMinLonF         = 70
res@mpMaxLonF         = 140
res@cnLineLabelsOn             = True  
;ÏÔê¾ÖD1úÇøóòμÄí¼
res@mpDataBaseVersion="Ncarg4_1"       ;ÖDμè·Ö±æÂê
res@mpDataSetName="Earth..4"           ;μú4°æμØí¼£¬óDÖD1ú±ß½çêy¾Y
res@mpOutlineOn            = True
res@mpOutlineSpecifiers=(/"China:states","Taiwan"/)   ;ÖD1ú±ß½çóDÎêìa£¬è±2ØÄÏ¡¢ì¨íå
res@mpOutlineBoundarySets ="NoBoundaries"
;í¼Ï¸½ú
res@cnFillOn       = True
res@cnMissingValFillColor = "white"
res@cnLevelSelectionMode = "ExplicitLevels"
res@cnLevels = (/8,8.5,9,9.5,10,10.5/)
res@cnSmoothingOn      =True
;res@cnRasterSmoothingOn =True

res@cnSmoothingTensionF   =0.006




res@cnSmoothingDistanceF  =0.07
;é«°å
;gsn_define_colormap(wks,"11colors")
;±êìa
res@tiMainString    = "hwfavg1950-2014"
;×ø±ê
res@tmXBMode = "Explicit"
res@tmXBValues = (/"70","80","90","100","110","120","130","140"/)
res@tmXBLabels  = (/"70E","80E", "90E", "100E","110E","120E","130E","140E"/)
;¼ä¾à
;res@cnLevelSelectionMode="ManualLevels"
;res@cnMinLevelValF=7.5
;res@cnMaxLevelValF=11
;res@cnLevelSpacingF=0.5
;res@cnLineLabelInterval =1
plot = gsn_csm_contour_map(wks,b,res)      
end

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

本版积分规则

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

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

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