Re: another easy question - messages to the console?

From: Mary Haley (haley AT XXXXXX)
Date: Thu Sep 05 2002 - 08:17:01 MDT


>
> Hello all!
>
> I am messing about with NCL and I wonder if there is a way to print
> information to the console?
>
> Right now I have a script which I am running which produces an XY
> plot. I run it from an xterm. Is there a way for the script to output
> text to the xterm as it runs?
>
> Thanks!
>
> Ed

Hi Ed,

You can use the "print" function:

  http://ngwww.ucar.edu/ngdoc/ng/ref/ncl/functions/print.html

If you just want to print out information about a variable, like its
type, dimension sizes, attributes, etc, and not its values, then use
"printVarSummary":

  http://ngwww.ucar.edu/ngdoc/ng/ref/ncl/functions/printvarsum.html

If you want to concatenate strings and values, then you can use the
"+" operator to do this:

     x = 5.0
     print("value = " + x)

--Mary
_______________________________________________
ncl-talk mailing list
ncl-talk@ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk



This archive was generated by hypermail 2b29 : Thu Sep 05 2002 - 08:22:51 MDT