Re: Runtime input to ncl script

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Thu Jun 24 2010 - 14:04:52 MDT

Hi Gibies,

I'm afraid there's no way to do this with NCL. We have a sample of this using a C program, but it's going to be a bit more complicated to do the graphics.

Try running:

   ng4ex xy13c

to see if it compiles (you need some additional X11 libraries). This command will copy "xy13c.c" to your current directory and try to compile it using "nhlcc".
Once it runs, you can click on the pop-up window with your left-mouse button to get values.

Wei Huang has developed a prototype Java/NCL interactive GUI. Maybe it can do something like this? Wei?

--Mary

On Jun 24, 2010, at 1:30 AM, gibies george wrote:

> Thank you Dave, Chen and Dennis for giving a solution for my previous question.
>
> Hello NCL users,
>
> I need another help.
>
> I would like to know whether I can get the position of my mouse-click on the plot. That is the latitude and longitude value of the point which I have clicked.
>
> The same thing I have done in GrADS using the following script.
>
> say 'Click where you want the left upper corner of the box'
> 'query bpos'
> xb1o = subwrd(result,3)
> yb2o = subwrd(result,4)
>
> Can I do similar thing in NCL
>
> Thanking you in Advance.
>
> Gibies George,CSIR-RF,
> Climate and Global Modelling Division,
> Indian Institute of Tropical Meteorology,
> Dr. Homi Bhabha Road,
> NCL (P. O.), Pashan,
> Pune 411008, India.
>
> http://sites.google.com/site/gibiesge/
>
> Think about the environment. Please don't print this e-mail unless it is necessary.
>
>
>
> On 21 June 2010 17:53, gibies george <gibiesgeorge@gmail.com> wrote:
> Hello friends,
>
> While writing an ncl script I came through a requirement to read some values to the script at run time. Is there a way to do it in ncl script ?
> In grads I used promt and pull for this purpose. Is there any thing similer to that available in NCL script language ?
>
>
> Gibies George,CSIR-RF,
> Climate and Global Modelling Division,
> Indian Institute of Tropical Meteorology,
> Dr. Homi Bhabha Road,
> NCL (P. O.), Pashan,
> Pune 411008, India.
>
> http://sites.google.com/site/gibiesge/
>
> Think about the environment. Please don't print this e-mail unless it is necessary.
>
>
>
> --
>
> _______________________________________________
> 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 Thu Jun 24 14:05:05 2010

This archive was generated by hypermail 2.1.8 : Thu Jun 24 2010 - 14:10:27 MDT