<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hello Arlindo,<br>
<br>
I need to set a different domain center for each of the time periods in the ave function, like say 1 through 124 in your example. As such, the display would then become geographically irrelevant, asides from attaining a since of scale.<br>
<br>
Mason <br>
<div style="font-family: Times New Roman; color: rgb(0, 0, 0); font-size: 16px;">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF532762"><font color="#000000" face="Tahoma" size="2"><b>From:</b> gradsusr-bounces@gradsusr.org [gradsusr-bounces@gradsusr.org] on behalf of Arlindo da Silva [dasilva@alum.mit.edu]<br>
<b>Sent:</b> Tuesday, July 19, 2011 5:40 PM<br>
<b>To:</b> GrADS Users Forum<br>
<b>Subject:</b> Re: [gradsusr] semi-advanced ave tool use<br>
</font><br>
</div>
<div></div>
<div>On Tue, Jul 19, 2011 at 4:36 PM, Rowell, Mason D. <span dir="ltr">&lt;<a href="mailto:Mason.D.Rowell-1@ou.edu" target="_blank">Mason.D.Rowell-1@ou.edu</a>&gt;</span> wrote:<br>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hello Grads community,<br>
<br>
I can see from the tutorial that one can open several different case files in grads(file1, file2 etc) and average the data from these files for subsequent display. Is there an advanced option that would allow me to specify the domain for each case and then
 average them? I was hoping to use this function to easily complete an average of 25 cases or so but relative to some specific type of event, which requires different domain centering for each case prior to averaging.<br>
<br>
</blockquote>
<div><br>
</div>
<div>The ave() functions allows you to make averages over a (x,y,z,t,e) hypercube. Because undef values are skipped, you can have averages over very irregular domains, provided an appropriate mask can be derived either through an expression or by reading it
 from a file. &nbsp;For example, to make a time average along satellite swaths we could do</div>
<div><br>
</div>
<div>define xmean = ave(x&#43;0*sat.2,t=1,t=124)</div>
<div><br>
</div>
<div>where &quot;sat&quot; (on file &quot;2&quot;) is some gridded (time dependent) satellite measurement with lots of undefs.</div>
<div><br>
</div>
<div>&nbsp;&nbsp; &nbsp;Arlindo</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>&nbsp;</div>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Mason<br>
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
Arlindo da Silva<br>
<a href="mailto:dasilva@alum.mit.edu" target="_blank">dasilva@alum.mit.edu</a><br>
</div>
</div>
</div>
</body>
</html>