- 积分
- 4103
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2016-11-6
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
大家好,我现在需要提取某一点的值,如果该点的值缺失,就用邻近的值代替,我用 if,else if写出程序后,能提取出值,但是提出的值是错误的,我的代码如下,请各位帮我看一下,是哪里出错了?谢谢您的解答!
XT_AE= ae({37.20},{114.35})
if((ismissing(ae({37.20},{114.35}))) .and. (.not.ismissing(ae({37.15},{114.35}))))then
XT_AE = ae({37.15},{114.35})
else if ((ismissing(ae({37.15},{114.35}))) .and. (.not.ismissing(ae({37.20},{114.40}))))then
XT_AE = ae({37.20},{114.40})
else if ((ismissing(ae({37.20},{114.40}))) .and. (.not.ismissing(ae({37.25},{114.35}))))then
XT_AE = ae({37.25},{114.35})
else if ((ismissing(ae({37.25},{114.35}))) .and. (.not.ismissing(ae({37.20},{114.30}))))then
XT_AE = ae({37.20},{114.30})
else if ((ismissing(ae({37.20},{114.30}))) .and. (.not.ismissing(ae({37.15},{114.30}))))then
XT_AE = ae({37.15},{114.30})
else if ((ismissing(ae({37.15},{114.30}))) .and. (.not.ismissing(ae({37.15},{114.40}))))then
XT_AE = ae({37.15},{114.40})
else if ((ismissing(ae({37.15},{114.40}))) .and. (.not.ismissing(ae({37.25},{114.30}))))then
XT_AE = ae({37.25},{114.30})
else if ((ismissing(ae({37.25},{114.30}))) .and. (.not.ismissing(ae({37.25},{114.40}))))then
XT_AE = ae({37.25},{114.40})
else
XT_AE = 0
end if
end if
end if
end if
end if
end if
end if
end if
|
|