Re: read variables from keyboard?

From: Rick Brownrigg <brownrig_at_nyahnyahspammersnyahnyah>
Date: Wed Apr 23 2014 - 09:22:13 MDT

I would add, if you are looking to prompt for data interactively from within an NCL script, similar to C printf/scanf or Fortran WRITE/READ pairs, there's really not a good way to do that directly from within NCL. An alternative would be to write shell script to gather up the input values and pass them into NCL via command-line arguments, as Karin indicates below.

Rick

On Apr 23, 2014, at 6:16 AM, Karin Meier-Fleischer <meier-fleischer@dkrz.de> wrote:

> Hi Tabish,
>
> see the Reference Manual (command line options and arguments):
>
> http://ncl.ucar.edu/Document/Manuals/Ref_Manual/NclCLO.shtml
>
> The last example explains how to handle command line arguments:
>
> % ncl nyrStrt=1900 nyrLast=1968 modelRun.ncl
> Hope this helps,
> Karin
>
> Am 23.04.2014 um 13:48 schrieb Tabish Ansari <tabishumaransari@gmail.com>:
>
>> Hello
>>
>> I wish to write a program wherein I want to enter the values through keyboard as input.
>>
>> How to do this in NCL?
>>
>> --
>> Thanks & Regards
>> Tabish Umar Ansari
>> MS Research Scholar
>> Environmental & Water Resources Engineering Division
>> Department of Civil Engineering
>> IIT Madras
>> _______________________________________________
>> ncl-talk mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
> _________________________________
> Karin Meier-Fleischer
> Deutsches Klimarechenzentrum GmbH
> Application Support
> Visualization
> Bundesstrasse 45a
> D-20146 Hamburg, Germany
>
> E-Mail: meier-fleischer@dkrz.de
> Internet: http://www.dkrz.de/
> Phone: +49 40 460094 126
> Fax: +49 40 460094 270
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Apr 23 09:22:25 2014

This archive was generated by hypermail 2.1.8 : Tue Apr 29 2014 - 09:04:20 MDT