Another approach
begin
  temp = (/ (/10.0, 20.0, 30.0/), (/20.0, 30.0, 40.0/), (/30.0, 40.0, 50.0/) /)
  print (temp)
  hi_val = 12.0
  lo_val = 5.0
  temp1   = ndtooned(temp)  ; 1d version of temp
  array1  = temp1
  ind_up  = ind(temp1.lt.40.)
  ind_lo  = ind(temp1.ge.40.)
  array1(ind_up) = hi_val+1
  array1(ind_lo) = lo_val+1
  array   = onedtond(array1, dimsizes(temp)) 
  print (array)
end
_______________________________________________
ncl-talk mailing list
ncl-talk AT ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
This archive was generated by hypermail 2b29 : Thu Aug 15 2002 - 07:28:58 MDT