想求一高压中心7日的移动路径,脚本一直报错未定义xi,yi。
可是官网Local_max函数给出这两个是默认定义?新手初学ncl,恳求请前辈指点
begin
;---Open file and read in 500 h Anomalies
ff = addfile("d:/nc/hgt/hgt.2010.nc","r")
h = ff->hgt(0:6:1,{500},{40:70},{30:100})
;---Start the graphics
wks = gsn_open_wks("eps","max2")
do nt = 0,6
nt = 0
plot = gsn_csm_map(wks,res)
iimax = local_max(h(nt,:,:),False,0.)
end do
mkres = True
mkres@gsMarkerIndex = 16 ; filled dot
mkres@gsMarkerSizeF = 10. ; make dot larger
mkres@gsMarkerColor = "Blue"
dum1 = gsn_add_polymarker(wks,plot,h&lon(iimax@xi),h&lat(iimax@yi),mkres)