[ncl-talk] muting output to screen?

Kyle Griffin ksgriffin2 at wisc.edu
Tue Feb 10 15:00:54 MST 2015


Although this wouldn't work for the non-deprecated function, as that is
built-in, the deprecated function is sitting in the contributed.ncl file, at

$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl
<https://www.ncl.ucar.edu/Document/Functions/Contributed/contrib.shtml>

ugh this wo

This means that you can go in the file and search for the function,
find the associated printing statements, and comment them out if you
so choose. If you don't have write permissions for your NCL
installation location, you can simply copy the code (including the
undef("obj_anal_ic_deprecated) line above the function declaration)
into its own file, make your desired changes, and load it at the
bottom of your load statements for your script. Hope that makes sense,
and let the list know if you need further help...


Kyle


----------------------------------------
Kyle S. Griffin
Department of Atmospheric and Oceanic Sciences
University of Wisconsin - Madison
Room 1421
1225 W Dayton St, Madison, WI 53706
Email: ksgriffin2 at wisc.edu

On Tue, Feb 10, 2015 at 3:53 PM, Joe Grim <grim at ucar.edu> wrote:

> Hi,
>
> I was wondering if you could tell me if there is an NCL parameter or
> subroutine that can allow one to avoid having certain ascii output shown on
> the screen?  I am using the function obj_anal_ic_deprecated, and I have set
> its option parameter *option*@*zonal = True*.  So, when I run the main
> NCL program, I get output to my screen that looks like this:
> (0)     icObjAnal_1d: lat=32.15   zonavg=-4.14749
> (1)     icObjAnal_1d: lat=32.25   zonavg=-4.14749
> (2)     icObjAnal_1d: lat=32.35   zonavg=-4.14749
> (3)     icObjAnal_1d: lat=32.45   zonavg=-4.1474
> ...
> Since obj_anal_ic_deprecated is used 720 times in my program, that is a
> lot of output to my screen that I don't want to see, though I do want to
> see other screen output from the program.  Is there any way to mute certain
> output to the screen?
>
> Thanks in advance!
>
> Joe Grim
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150210/68f40e9d/attachment.html 


More information about the ncl-talk mailing list