[gradsusr] Max Function

Stephen McMillan smcmillan at planalytics.com
Mon Aug 29 16:24:16 EDT 2011


Brian,
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.
Stephen Mc

On Mon, Aug 29, 2011 at 2:13 PM, Arlindo da Silva <dasilva at alum.mit.edu>wrote:

> On Thu, Aug 18, 2011 at 9:59 AM, Walsh, Brian J <brian.walsh at amec.com>wrote:
>
>>  Hello Grads Users,****
>>
>> ** **
>>
>> I’m trying to calculate the maximum 3-hourly precipitation amounts from
>> one model in a given domain.****
>>
>> ** **
>>
>> 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.****
>>
>> ** **
>>
>> 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.****
>>
>> ** **
>>
>> Any help would be greatly appreciated.****
>>
>> **
>>
>
> 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:
>
>    http://opengrads.org/doc/udxt/re/
>
>      Arlindo
>
> --
> Arlindo da Silva
> dasilva at alum.mit.edu
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>

***************************************************
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.
***************************************************

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20110829/7715f3c1/attachment-0003.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MaxGrid.gs
Type: application/octet-stream
Size: 1310 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20110829/7715f3c1/attachment-0003.obj 


More information about the gradsusr mailing list