- 积分
- 4
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2018-11-12
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
我想用OMI卫星数据画图 但是总是显示错误
fatal:Dimension size mismatch on subscript #1, left-hand and right-hand side dimensions do not match
fatal:["Execute.c":8575]:Execute: Error occurred at or near line 35 in file xy1.ncl
想问到底是怎么回事呢
begin
; read in data
diri = "/home/guo/NCL/2005.3/"
outfiles=systemfunc("ls "+diri+"*")
;print(outfiles)
nfile=dimsizes(outfiles)
print(nfile)
nlat=50
nlon=230
AI=new((/nfile,nlat,nlon/),float,-9999)
do i=0,nfile-1
filename=outfiles(i)
print(filename)
f = addfile(filename, "r")
AI(i,:,:)=f->UVAerosolIndex_Aerosol_NearUV_Grid
printVarSummary(AI)
end do
AI1=dim_avg_n_Wrap(AI(i,{0:50},{100:330},(/0,1/))
; plotting parameters
;************************************************
wks = gsn_open_wks ("pdf","xy")
res = True ; plot mods desired
res@tiMainString = "March2005 XY plot" ; add title
plot = gsn_csm_xy (wks,AI1&lat,AI,res) ; create plot
end
|
|