[gradsusr] Return keypress
Bob Kuligowski - NOAA Federal
bob.kuligowski at noaa.gov
Mon Jul 6 15:57:01 EDT 2015
Dear Elio,
> /*pull*/
>
> To retrieve information provided by the GrADS user via the terminal
> (standard input), use the |pull| command:
>
> |pull /variable/|
>
> 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:
>
> |'open my_sst_dataset.ctl'
> prompt 'Enter min and max latitudes: '
> pull minlat maxlat
> prompt 'Enter min and max longitudes: '
> pull minlon maxlon
> 'set lat 'minlat%' '%maxlat
> 'set lon 'minlon' 'maxlon
> 'display sst' |
Source: http://www.iges.org/grads/gadoc/script.html#standardio
Hope this helps!
Cheers,
Bob
> 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?
>
> Thank you!
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
--
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
http://www.star.nesdis.noaa.gov/star/Kuligowski_B.php
http://www.star.nesdis.noaa.gov/smcd/emb/ff/index.php
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20150706/76c478ee/attachment.html
More information about the gradsusr
mailing list