<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">Thanks. It is a possible avenue but I was thinking more of something that didn't require the user to press "enter". For example, a way to plot, say, pressure and cycle through time with left/right arrow and move up/down levels with the up/down arrow. </div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Right now I'm using the mouseweel to move levels and right/left click to move in time (so, my script is permanently in "q pos" state, waiting for the user to click), but I'm wishing to expand it and to be able to cycle through different variables using the keyboard.</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Thank you again, </div><div class="gmail_default" style="font-family:verdana,sans-serif">Elio</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 6 July 2015 at 16:57, Bob Kuligowski - NOAA Federal <span dir="ltr"><<a href="mailto:bob.kuligowski@noaa.gov" target="_blank">bob.kuligowski@noaa.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>Dear Elio,<br>
<br>
<blockquote type="cite">
<p>
<i><b>pull</b></i>
</p>
<p>
To retrieve information provided by the GrADS user via the
terminal
(standard input), use the <code>pull</code> command:</p>
<p>
</p>
<ul>
<code>pull <i>variable</i></code>
</ul>
<p>
The script will pause for user input from the keyboard (ending
with
the carriage return), and then the string entered by the user
is
assigned to the indicated variable name. To elaborate on a
previous example:
</p>
<p>
</p>
<code>
'open my_sst_dataset.ctl' <br>
prompt 'Enter min and max latitudes: ' <br>
pull minlat maxlat <br>
prompt 'Enter min and max longitudes: ' <br>
pull minlon maxlon <br>
'set lat 'minlat%' '%maxlat <br>
'set lon 'minlon' 'maxlon <br>
'display sst' </code></blockquote>
<br>
Source: <a href="http://www.iges.org/grads/gadoc/script.html#standardio" target="_blank">http://www.iges.org/grads/gadoc/script.html#standardio</a><br>
<br>
Hope this helps!<br>
<br>
Cheers,<br>
Bob<br>
</div>
<blockquote type="cite"><span class="">
<div dir="ltr">
<div class="gmail_default" style="font-family:verdana,sans-serif">Hello, I'm trying to
write a script so assist in a more interactive way with
exploring different model outputs. My intent is to use mouse
input (with q pos) but also keyboard input. Is there a way to
let grads access key events by the user?</div>
<div class="gmail_default" style="font-family:verdana,sans-serif"><br>
</div>
<div class="gmail_default" style="font-family:verdana,sans-serif">Thank you!</div>
</div>
<br>
<fieldset></fieldset>
<br>
</span><pre>_______________________________________________
gradsusr mailing list
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a>
</pre>
</blockquote>
<br>
<br>
<pre cols="72">--
Bob Kuligowski, Ph.D.
Meteorologist
NOAA/NESDIS/Center for Satellite Applications and Research (STAR)
Mailing Address:
National Oceanic and Atmospheric Administration
NESDIS STAR/SMCD
Bob Kuligowski
NCWCP E/RA2
5830 University Research Court
2nd Floor, Office #2828
College Park, MD 20740-3818
Phone: (301) 683-3593
Fax : (301) 683-3616
<a href="http://www.star.nesdis.noaa.gov/star/Kuligowski_B.php" target="_blank">http://www.star.nesdis.noaa.gov/star/Kuligowski_B.php</a>
<a href="http://www.star.nesdis.noaa.gov/smcd/emb/ff/index.php" target="_blank">http://www.star.nesdis.noaa.gov/smcd/emb/ff/index.php</a>
</pre>
</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" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br></div>