<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">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 class="moz-txt-link-freetext" href="http://www.iges.org/grads/gadoc/script.html#standardio">http://www.iges.org/grads/gadoc/script.html#standardio</a><br>
<br>
Hope this helps!<br>
<br>
Cheers,<br>
Bob<br>
</div>
<blockquote
cite="mid:CAGCrKXd4c5hGRox_XiNMJc8vzSuyONv5H-YaD1MerJF44kxcYg@mail.gmail.com"
type="cite">
<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 class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
gradsusr mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>
<a class="moz-txt-link-freetext" href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" 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 class="moz-txt-link-freetext" href="http://www.star.nesdis.noaa.gov/star/Kuligowski_B.php">http://www.star.nesdis.noaa.gov/star/Kuligowski_B.php</a>
<a class="moz-txt-link-freetext" href="http://www.star.nesdis.noaa.gov/smcd/emb/ff/index.php">http://www.star.nesdis.noaa.gov/smcd/emb/ff/index.php</a>
</pre>
</body>
</html>