On Tue, Jul 19, 2011 at 4:36 PM, Rowell, Mason D. <span dir="ltr"><<a href="mailto:Mason.D.Rowell-1@ou.edu">Mason.D.Rowell-1@ou.edu</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;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. For example, to make a time average along satellite swaths we could do</div>
<div><br></div><div>define xmean = ave(x+0*sat.2,t=1,t=124)</div><div><br></div><div>where "sat" (on file "2") is some gridded (time dependent) satellite measurement with lots of undefs.</div><div><br>
</div><div> Arlindo</div><div><br></div><div><br></div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Mason<br>
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">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">dasilva@alum.mit.edu</a><br>