Re: maximum and minimum

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Fri Oct 21 2011 - 15:06:56 MDT

Please see the 'where' statement
   http://www.ncl.ucar.edu/Document/Functions/Built-in/where.shtml

On 10/21/11 3:04 PM, Xiaoyan Ma wrote:
> Hi
>
> I want to set a minimum in NCL if some values of an array are out of
> normal range. I was trying to use the conditional command as below, but
> failed. The message shows that "fatal:Conditional statements (if and do
> while) require SCALAR logical values, see all and any functions
> fatal:Execute: Error occurred at or near line 31 in file". how to set
> minimum in NCL? thanks
>
> a= new( (/46,72/), float)
> ..
> if (a.lt.0) then
> a = 0.
> end if
>
>
>
> _______________________________________________
> 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 Oct 21 15:07:01 2011

This archive was generated by hypermail 2.1.8 : Mon Oct 24 2011 - 09:29:35 MDT