爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 5339|回复: 2

[作图] ncl

[复制链接]
发表于 2018-12-22 14:30:56 | 显示全部楼层 |阅读模式

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

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

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

密码修改失败请联系微信:mofangbao
发表于 2018-12-22 19:53:50 | 显示全部楼层
35行,左右维数不一样
密码修改失败请联系微信:mofangbao
发表于 2019-4-16 18:19:51 | 显示全部楼层
楼主,你好,我也在画OMI的图,有几个问题可以请教吗
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

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

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