[gradsusr] Max Function
Jeffrey Duda
jdduda at iastate.edu
Mon Aug 29 12:35:20 EDT 2011
Brian,
I have two suggestions:
1) If you can crack open the data outside of grads, say using Fortran, try
creating the variable outside of Grads and then displaying it in Grads
2) Use the set defval
<http://www.iges.org/grads/gadoc/gadocindex.html>command to manually
define the values of a variable. While I haven't used
the command myself, I'm pretty sure it's what you are looking for. You'd
just have to run two while loops using the I and J of the model grid, then
run the max command on a small box centered on each (I,J) coordinate point
and get the max value like you are trying to do. Then set that value to
your variable using the set defval command.
Hope this helps.
Jeff Duda
On Thu, Aug 18, 2011 at 8: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.****
>
> ** **
>
> Thanks****
>
> ** **
>
> Brian****
>
> ------------------------------
> The information contained in this e-mail is intended only for the
> individual or entity to whom it is addressed.
> Its contents (including any attachments) may contain confidential and/or
> privileged information.
> If you are not an intended recipient you must not use, disclose,
> disseminate, copy or print its contents.
> If you receive this e-mail in error, please notify the sender by reply
> e-mail and delete and destroy the message.
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
--
Jeff Duda
Iowa State University
Meteorology Graduate Student
www.meteor.iastate.edu/~jdduda <http://www.meteor.iastate.edu/%7Ejdduda>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20110829/63815055/attachment-0003.html
More information about the gradsusr
mailing list