- 积分
- 130
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2016-3-25
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
本帖最后由 rolemodel 于 2017-9-27 11:42 编辑
脚本如下,但是会报错,我实在改不出来,大神帮忙看看啊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"
begin
itimes = 200701
itimee = 201701
fi = addfile("/cygdrive/d/yanjiusheng/uwnd.mon.mean.nc","r")
var = fi->uwnd
time = fi->time
YYYYMM := cd_calendar(time,-1)
ist = ind(itimes.eq.YYYYMM)
ied = ind(itimee.eq.YYYYMM)
uwnd = var(ist:ied,:,:,:)
uwnd_zm = dim_avg_Wrap(uwnd)
wks = gsn_open_wks("png","/cygdrive/c/Data/zuoye")
res = True
res@gsnDraw = False
res@gsnFrame = False
res@gsnLeftString = ""
res@gsnRightString = ""
res@tmXBMode = "Explicit"
res@tmXBValues = (/-90,-60,-30,0,30,60,90/)
res@tmXBLabels = (/"90~S~o~N~S","60~S~o~N~S","30~S~o~N~S","30~S~o~N~N","60~S~o~N~N","90~S~o~N~N"/)
res@tmXBLabelDeltaF = -0.6
res@tmXBLabelFontHeightF = 0.015
res@tmYLLabelFontHeightF = 0.015
res@tiYAxisString = "Level(hPa)"
res@cnFillOn = False
res@cnLinesOn = True
res@cnLineLabelsOn = False
res@cnLevelSpacingF = 0.05
res@gsnContourZeroLineThicknessF = 0
res@cnInfoLabelOn = False
res@lbLabelBarOn = False
res@cnFillOn = False
res@cnLinesOn = True
res@cnLevelSpacingF = 0.15
res@cnLineDashPattern = 2
res@cnLineThicknessF = 3.
res@cnInfoLabelOn = True
plot = gsn_csm_pres_hgt(wks,var(level|:,lat|:),res)
plot = ColorNegDashZeroPosContour(plot,"black","white","black")
draw(plot)
frame(wks)
end
|
-
-
|