Hi,
I have a netcdf file in which variable "b" (64X128) has some values and some
missing places ( means there is no values).
I assign the missing place in variable b as -999. But when I use the
variable b in a if statement
, I will get the error given below
fatal:The result of the conditional expression yields a missing value. NCL
can not determine branch, see ismissing function
^Mfatal:Execute: Error occurred at or near line 67 in file deb_1.ncl
I give the some line of the program below
do i=0,63
do j=0,127
if (any(ismissing(b(0,i,j))) )then
b(0,i,j)=-999.
end if
end do
end do
b@_FillValue=-999.
do i = 0,63
do j = 0,127
if(b(0,i,j).gt.6) then
b(0,i,j) = 6
end if <--
end do
end do
I got the error in the indicated (<--) "end if statement"
Could you please tell me how will I slove it with out assigning
do i=0,63
do j=0,127
if(any(ismissing(phi(i,j)))) then
phi(i,j)=0
end if
end do
end do
Thanks
Debasish
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Aug 03 2006 - 17:15:43 MDT
This archive was generated by hypermail 2.2.0 : Fri Aug 04 2006 - 10:26:31 MDT