<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Thanks both, what I was ultimately missing was <span style="font-size:12.8000001907349px;font-family:arial,sans-serif">val=subwrd(result,4)</span></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><span style="font-size:12.8000001907349px;font-family:arial,sans-serif"><br></span></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><span style="font-size:12.8000001907349px;font-family:arial,sans-serif">Works great now :-)</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 10 March 2015 at 14:51, Jennifer Adams <span dir="ltr">&lt;<a href="mailto:jma@cola.iges.org" target="_blank">jma@cola.iges.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">The amax() function returns a single number, not a grid. Try something like this instead:<div><br></div><div><div>&#39;d amax(gust10m,g)&#39;</div><div>val=subwrd(result,4)</div><div>&#39;q gxinfo&#39;</div><div>xlims=sublin(result,3)</div><div>ylims=sublin(result,4)</div><div>xpos=subwrd(xlims,4)</div><div>ypos=subwrd(ylims,6)</div><div>&#39;set string 1 tl&#39;</div><div>&#39;draw string &#39;xpos+0.1&#39; &#39;ypos-0.1&#39; area max=&#39;val</div><div><br></div><div>—Jennifer</div><div><br></div><div><br></div><div><br><div><div><div class="h5"><div>On Mar 9, 2015, at 5:35 PM, Daniel Nairn &lt;<a href="mailto:dannairn@gmail.com" target="_blank">dannairn@gmail.com</a>&gt; wrote:</div><br></div></div><blockquote type="cite"><div><div class="h5"><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Hello</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">I&#39;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 &#39;maxgust&#39; does not seem to populate with anything.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">&#39;define maxgust=amax(gust10m,g)&#39;</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Should this work or have I misinterpreted the amax function? I&#39;ve also tried specifying lat/long dimensions but no change.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Thanks</div></div></div></div><span class="">
_______________________________________________<br>gradsusr mailing list<br><a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br><a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br></span></blockquote></div><br><div>
<span style="border-collapse:separate;border-spacing:0px"><span style="border-collapse:separate;color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div>--</div><div>Jennifer M. Adams<br>Center for Ocean-Land-Atmosphere Studies (COLA)<br>111 Research Hall, Mail Stop 2B3<br>George Mason University<br>4400 University Drive<br>Fairfax, VA 22030 <br><br></div><div><br></div><br></span></span><br>
</div>
<br></div></div></div><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>