登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
NCL脚本如下:
do i=0,240
do l=0,26
if (ismissing(va_c(l,i))) then
mva(l,i)=mva@_FillValue
end if
if((.not.ismissing(va_c(l,i))).and.(mva(l,i).eq.0)) then
mva(l,i)=mva@_FillValue
end if
end do
end do
提示错误:The result of the conditional expression yields a missing value. NCL can not determine branch, see ismissing function。
对照官网相关如下:
Sample code that causes the error:
x = new(1,float) ; x is assigned a missing value if(x.gt.5) then print("x > 5") end ifCause: Using a missing value in an "if" statement or some other conditional statement. Fix: If there's a chance your variable could be missing, then use ismissing to test for missing values.
x = new(1,float) if(.not.ismissing(x).and.x.gt.5) then print("x > 5") end if
感觉我的脚本跟官网一样= =不知为啥错误,求大神解答。
|