爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 5630|回复: 1

[作图] 【NCL】为啥我画出来的是折线图不是平滑的

[复制链接]
发表于 2016-11-30 21:36:09 | 显示全部楼层 |阅读模式

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

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

x
为啥我画出来的是折线图不是平滑的load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl"
;************************************************
begin
;---Read in data
in=addfile("/lustre/home/niehw/ERA/11.nc","r")
tcc=in->tcc                                    ; get tcc data

wks   = gsn_open_wks ("x11","wxfb")                 ; send graphics to PNG file

;---Set plotting parameters

res                   = True                      ; plot mods desired
res@trXMinF           =1985
res@trXMaxF           =2015

res@tiXAxisString     = "year"
res@tiYAxisString     = "Total cloud cover/%"

tcc2=tcc@add_offset+tcc*tcc@scale_factor
copy_VarMeta(tcc,tcc2)

tcc2_mean=dim_avg_n_Wrap(tcc2,(/1,2/))
;print(tcc2_mean)

y    =tcc2_mean*100
;print(y)

y1   = month_to_annual(y, 0)  ; prc_annual_total(30)
y2   =y1/12
;print(y2)
asciiwrite("avg.txt ",y2)
;print(x)

x1=ispan(1985,2015,5)

plot=gsn_csm_xy(wks,x1,y2,res)

end


QQ图片20161130213615.png
密码修改失败请联系微信:mofangbao
发表于 2016-12-1 09:29:07 | 显示全部楼层
呐! 可能点太少 可能没滤波 可能没runave
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

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

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