[gradsusr] amax Function

Daniel Nairn dannairn at gmail.com
Tue Mar 10 10:55:25 EDT 2015


Thanks both, what I was ultimately missing was val=subwrd(result,4)

Works great now :-)

On 10 March 2015 at 14:51, Jennifer Adams <jma at cola.iges.org> wrote:

> The amax() function returns a single number, not a grid. Try something
> like this instead:
>
> 'd amax(gust10m,g)'
> val=subwrd(result,4)
> 'q gxinfo'
> xlims=sublin(result,3)
> ylims=sublin(result,4)
> xpos=subwrd(xlims,4)
> ypos=subwrd(ylims,6)
> 'set string 1 tl'
> 'draw string 'xpos+0.1' 'ypos-0.1' area max='val
>
> —Jennifer
>
>
>
> On Mar 9, 2015, at 5:35 PM, Daniel Nairn <dannairn at gmail.com> wrote:
>
> Hello
>
> I'm trying to use the amax function to display the maximum 10m wind gust
> value in my domain - I would like to display the value as text on the
> existing .png output for this script, alongside the shaded output. This is
> what I have in my script, which completes without an error, but my variable
> 'maxgust' does not seem to populate with anything.
>
> 'define maxgust=amax(gust10m,g)'
>
> Should this work or have I misinterpreted the amax function? I've also
> tried specifying lat/long dimensions but no change.
>
> Thanks
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
> --
> Jennifer M. Adams
> Center for Ocean-Land-Atmosphere Studies (COLA)
> 111 Research Hall, Mail Stop 2B3
> George Mason University
> 4400 University Drive
> Fairfax, VA 22030
>
>
>
>
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20150310/0c491315/attachment.html 


More information about the gradsusr mailing list