Brian,<div>Perhaps attached sample script will help your case. It uses a search domain of "nearest gridpoint +/- a grid" but can be adjusted to a larger maxing domain.</div><div>Stephen Mc<br><br><div class="gmail_quote">
On Mon, Aug 29, 2011 at 2:13 PM, Arlindo da Silva <span dir="ltr"><<a href="mailto:dasilva@alum.mit.edu">dasilva@alum.mit.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Thu, Aug 18, 2011 at 9:59 AM, Walsh, Brian J <span dir="ltr"><<a href="mailto:brian.walsh@amec.com" target="_blank">brian.walsh@amec.com</a>></span> wrote:<br></div><div class="gmail_quote"><div class="im">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal">Hello Grads Users,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I’m trying to calculate the maximum 3-hourly precipitation amounts from one model in a given domain.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">So, for instance, if I choose a point (say 46.0 N 57.0W), I would like to get the maximum 3-hourly precipitation amounts from the GFS for the surrounding grid points (i.e. I don’t want a point forecast prediction). I’m not sure if I can
have it output the maximum amount from the nearest neighbor grid points or if I need to specify a domain.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I’ve tried the max function without success and was hoping someone may have done something similar and it worked. I’m looking to output the data into a file, not plot it.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Any help would be greatly appreciated.<u></u><u></u></p>
<p class="MsoNormal"><u></u> </p></div></div></blockquote><div><br></div></div><div>With careful design of a coarser grid, the re() extension in opengrads could be used to regrid the original data to a coarser grid using the box averaging method and get what you want. No need to write a separate file, just do the regridding on the fly. More more info, see here:</div>
<div><br></div><div> <a href="http://opengrads.org/doc/udxt/re/" target="_blank">http://opengrads.org/doc/udxt/re/</a></div><div><br></div><div> Arlindo</div><div><br></div></div><font color="#888888">-- <br>Arlindo da Silva<br>
<a href="mailto:dasilva@alum.mit.edu" target="_blank">dasilva@alum.mit.edu</a><br>
</font><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>
<br></blockquote></div><br></div>
<pre>***************************************************
The information contained in this e-mail message
is intended only for the use of the recipient(s)
named above and may contain information that is
privileged, confidential, and/or proprietary.
If you are not the intended recipient, you may not
review, copy or distribute this message. If you have
received this communication in error, please notify
the sender immediately by e-mail, and delete the original message.
***************************************************