<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: arial,helvetica,sans-serif; font-size: 12pt; color: #000000'>Hi Matt,<div><br></div><div>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.<br><br><hr id="zwchr"><b>From: </b>"Matt Masarik" <mmasarik@atmos.ucla.edu><br><b>To: </b>gradsusr@gradsusr.org<br><b>Sent: </b>Thursday, May 23, 2013 1:23:39 PM<br><b>Subject: </b>[gradsusr] order of nested functions<br><br>Hi All,<br><br>What is the order in which GrADS processes nested<br>function calls: from the inside to outside, or vice<br>versa? For example,<br><br> ga-> d max(ave(cloud,time=jan1850,time=dec1900),z=1,z=4)<br><br>My intent was to take the average, and then the maximum. Looking<br>at the output, it appears the max is taken first and then averaged.<br>I could be misinterpreting the meaning of the output however.<br><br>Thank you, Matt<br>_______________________________________________<br>gradsusr mailing list<br>gradsusr@gradsusr.org<br>http://gradsusr.org/mailman/listinfo/gradsusr<br></div></div></body></html>