您好,这是我改完之后的脚本
opts = res
opts@cnFillOn = True
opts@gsnSpreadColors = True
opts@cnLevelSelectionMode = "ExplicitLevels"
colors = (/(/255,255,255/),(/0,0,0/),(/0,255,241/),(/0,255,198/),(/0,255,170/),\
(/0,255,88/),(/0,255,55/),(/0,255,16/),(/20,255,0/),(/55,255,0/),(/93,255,0/),(/131,255,0/),\
(/164,255,0/),(/246,255,0/),(/255,233,0/),(/255,190,0/),(/255,173,0/),(/255,160,0/),(/255,144,0/),\
(/255,119,0/),(/255,62,0/),(/255,51,0/),(/255,29,0/),(/255,0,0/),(/255,0,0/),(/255,0,0/)/)*1.0
cmap = colors/255.
opts@cnLevels =(/-0.2,-0.1,-0.08,-0.06,-0.04,-0.02,0,0.01,0.02,0.04,0.05/)
opts@cnFillColors = ispan(2,27,1)
gsn_define_colormap(wks,cmap)
contour = gsn_csm_contour(wks,t(it,:,:),opts)
draw(contour)
frame(wks)
delete(opts,it)
出现了一个错误:
fatal:syntax error: procedure delete expects 1 arguments, got 2
fatal:error at line 139 in file chazhi.ncl
fatal:Syntax Error in block, block not executed
fatal:error at line 250 in file chazhi.ncl
一直说的是delete(opts,it)这一行有问题呢 |