You have to make sure you are actively displaying a variable to have the scaling environment set to run 'q xy2gr' etc. commands. <br><br>Jeff Duda<br><br><div class="gmail_quote">On Tue, Oct 19, 2010 at 2:47 AM, Andrew Revering <span dir="ltr"><<a href="mailto:andy@f5data.com">andy@f5data.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Great, that got me on the right track… it was a factor of
'no scaling environment' with a fix of moving the code to after it has been
displayed.</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Thanks.</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<div style="border-width: 1pt medium medium; border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; padding: 3pt 0in 0in;">
<p class="MsoNormal"><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;"> <a href="mailto:gradsusr-bounces@gradsusr.org" target="_blank">gradsusr-bounces@gradsusr.org</a>
[mailto:<a href="mailto:gradsusr-bounces@gradsusr.org" target="_blank">gradsusr-bounces@gradsusr.org</a>] <b>On Behalf Of </b>Heiner Körnich<br>
<b>Sent:</b> Tuesday, October 19, 2010 2:34 AM<br>
<b>To:</b> GrADS Users Forum<br>
<b>Subject:</b> Re: [gradsusr] variable=environment</span></p>
</div><div><div></div><div class="h5">
<p class="MsoNormal"> </p>
<p class="MsoNormal">Don't know, but try</p>
<div>
<p class="MsoNormal">say result</p>
</div>
<div>
<p class="MsoNormal">after the 'q xy2gr'-command. then you know the output.</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom: 12pt;">/Heiner</p>
<div>
<p class="MsoNormal">On Tue, Oct 19, 2010 at 9:07 AM, Andrew Revering <<a href="mailto:andy@f5data.com" target="_blank">andy@f5data.com</a>> wrote:</p>
<div>
<div>
<p class="MsoNormal">This
is probably a simple problem, but I can't figure it out…</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">I'm
using the OpenGrads superpack, and my variable gx returns
"environment" instead of a value. Any ideas?</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">'q
xy2gr 'sitelon+1' 'sitelat-1</p>
<p class="MsoNormal">maxx
= subwrd(result,3)</p>
<p class="MsoNormal">gx
= subwrd(result,3)</p>
<p class="MsoNormal">gy
= subwrd(result,6)</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">say
'Max value is 'gx</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">says….
"Max value is environment"</p>
<p class="MsoNormal"> </p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom: 12pt;"><br>
_______________________________________________<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></p>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<br>
-- <br>
Heiner Körnich <br>
Dept. of Meteorology Tel: +46 8
164333<br>
Stockholms University, SE-106 91 Stockholm, Sweden<br>
Email: <a href="mailto:heiner@misu.su.se" target="_blank">heiner@misu.su.se</a> <a href="http://www.misu.su.se/%7Eheiner/" target="_blank">www.misu.su.se/~heiner/</a></p>
</div>
</div></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><br clear="all"><br>-- <br>Jeff Duda<br>Iowa State University<br>Meteorology Graduate Student<br>3134 Agronomy Hall<br><a href="http://www.meteor.iastate.edu/~jdduda">www.meteor.iastate.edu/~jdduda</a><br>