[gradsusr] order of nested functions

Matt Masarik mmasarik at atmos.ucla.edu
Thu May 23 13:40:55 EDT 2013


Great.  Thank you, Eric.

On 05/23/2013 10:39 AM, Eric Altshuler wrote:
> Hi Matt,
>
> The functions are evaluated starting with the innermost one, just as 
> in any mathematical expression involving nested functions. In this 
> case the ave is done first, followed by the max.
>
> ------------------------------------------------------------------------
> *From: *"Matt Masarik" <mmasarik at atmos.ucla.edu>
> *To: *gradsusr at gradsusr.org
> *Sent: *Thursday, May 23, 2013 1:23:39 PM
> *Subject: *[gradsusr] order of nested functions
>
> Hi All,
>
> What is the order in which GrADS processes nested
> function calls: from the inside to outside, or vice
> versa?  For example,
>
>     ga-> d  max(ave(cloud,time=jan1850,time=dec1900),z=1,z=4)
>
> My intent was to take the average, and then the maximum.  Looking
> at the output, it appears the max is taken first and then averaged.
> I could be misinterpreting the meaning of the output however.
>
> Thank you,  Matt
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20130523/4d99fb41/attachment-0003.html 


More information about the gradsusr mailing list