Re: how to get user input

From: Gerry Creager <gerry.creager_at_nyahnyahspammersnyahnyah>
Date: Wed, 10 Sep 2008 07:59:58 -0500

Joe,

I do some of this in a separate shell script. I've not found any
indication that you can communicate in the manner you're asking about
from within NCL (and Dennis' comments confirm this).

I have several scripts where a lot of the "intelligence" happens in the
shell portion, and then sends the CLAs to the NCL script. For me, this
has been very successful.

gerry

Dennis Shea wrote:
> At this time, I don't think this is possible.
>
> Usually, command line arguments [CLAs] are used:
> ===
> ncl 'season="JJA"' foo.ncl
>
> The ' are needed to escape the unix shell.
>
> ===
> Another examples:
>
> ncl nyrStrt=1900 nyrLast=1968 modelRun.ncl
>
>
> The following contains more info amd more complicated examples:
>
>
>
> http://www.ncl.ucar.edu/Document/Manuals/Ref_Manual/NclCLO.shtml
>
> Joe Grim wrote:
>> Hi,
>>
>> This probably seems like a simple question, but I can't find an answer
>> to this problem anywhere on the NCL page. When running an NCL
>> program, how does one ask the user for a value? For example, my
>> program reads in a field for 5 seasons, but I want it to ask the user
>> which season to plot. In FORTRAN I would just use the read function,
>> but I can't find its equivalent for NCL. Could you help me out here?
>>
>> Thanks a lot!
>>
>> Joe Grim
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk_at_ucar.edu
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
> _______________________________________________
> ncl-talk mailing list
> ncl-talk_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

-- 
Gerry Creager -- gerry.creager_at_tamu.edu
Texas Mesonet -- AATLT, Texas A&M University	
Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.862.3983
Office: 1700 Research Parkway Ste 160, TAMU, College Station, TX 77843
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Sep 10 2008 - 06:59:58 MDT

This archive was generated by hypermail 2.2.0 : Wed Sep 10 2008 - 07:38:41 MDT