There's not quite enough information here, as it would help if a line number was included.
This error is implying that you are doing a conditional operation on a missing value. For example, this short code snippet will produce the same error:
TEST = new(1,logical)
if(TEST) then
print("TEST is True")
else
print("TEST is False")
end if
In the above, "TEST" is missing, because the "new" statement is returning a missing value. You can't execute an "if" statement on a missing value, but you could do something like this:
TEST = new(1,logical)
if(ismissing(TEST)) then
print("TEST is missing")
else if(TEST) then
print("TEST is True")
else
print("TEST is False")
end if
end if
In your case, the problem may be with this statement:
if ( .not.ismissing(zz(imax,0)) .and. zz(imax,0) .ge. zmax ) then
Is it possible that zmax is missing?
--Mary
On May 8, 2014, at 6:53 PM, nlcheng <cnl88@163.com> wrote:
> hello
> I want to extract rh and t from the WRF out data on a N-S cross section that runs through "plane" and draw the three physical quantity in one picture like this drawing.
> appendix is my scripts that I have uploaded. but there are some errors as below,how can i change this script?
>
> fatal:The result of the conditional expression yields a missing value. NCL can not determine branch, see ismissing function
>
>
> thank you very much
>
>
>
>
> <crossrht.ncl>_______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri May 9 10:08:17 2014
This archive was generated by hypermail 2.1.8 : Fri May 09 2014 - 15:23:17 MDT