<div dir="ltr">Hi Joe,<div><br></div><div>You could also try running</div><div><br></div><div>ncl myscript.ncl &gt; /dev/null</div><div><br></div><div>I haven&#39;t tried this explicitly, and it might be more &quot;mute&quot; than you were intending.</div><div><br></div><div>Otherwise, you also have these NCL command line options.</div><div><br></div><div><a href="http://www.ncl.ucar.edu/Document/Manuals/Ref_Manual/NclCLO.shtml">http://www.ncl.ucar.edu/Document/Manuals/Ref_Manual/NclCLO.shtml</a><br></div><div><br></div><div>-n will turn off the (0) and similar numbers at the start of the line. Although the -p option looks interesting, I don&#39;t think that is relevant as this printing isn&#39;t coming from a system(...) call.</div><div><br></div><div>Developers can chime in if there&#39;s some other way to assign NCL&#39;s environmental pager to a null pager, but I&#39;m not sure there&#39;s much else...</div><div><br></div><div><br></div><div>Kyle</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr">----------------------------------------<div>Kyle S. Griffin</div><div>Department of Atmospheric and Oceanic Sciences</div><div>University of Wisconsin - Madison</div><div>Room 1421</div><div>1225 W Dayton St, Madison, WI 53706</div><div>Email: <a href="mailto:ksgriffin2@wisc.edu" target="_blank">ksgriffin2@wisc.edu</a></div></div></div></div>
<br><div class="gmail_quote">On Tue, Feb 10, 2015 at 4:04 PM, Joe Grim <span dir="ltr">&lt;<a href="mailto:grim@ucar.edu" target="_blank">grim@ucar.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks, Kyle, for your quick response and workaround idea.  Yes, I thought of doing this, though I was just wondering if there happened to be a way of muting screen output without this extra work (as I often would like to mute screen output.)<div><br></div><div>Thanks again!</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Joe</div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 10, 2015 at 3:00 PM, Kyle Griffin <span dir="ltr">&lt;<a href="mailto:ksgriffin2@wisc.edu" target="_blank">ksgriffin2@wisc.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Although this wouldn&#39;t work for the non-deprecated function, as that is built-in, the deprecated function is sitting in the contributed.ncl file, at<div><br></div><div><pre style="margin-top:0px;margin-bottom:0px;padding:0px;font-size:13.3333330154419px;line-height:16px;font-family:courier;border-style:solid;border-width:0px 0px 15px;border-color:transparent;color:rgb(0,0,0)">$NCARG_ROOT/lib/ncarg/nclscripts/csm/<a href="https://www.ncl.ucar.edu/Document/Functions/Contributed/contrib.shtml" style="margin:0px;padding:0px;text-decoration:none;color:rgb(133,45,133);font-family:verdana,sans-serif" target="_blank">contributed.ncl</a></pre><pre style="margin-top:0px;margin-bottom:0px;padding:0px;font-size:13.3333330154419px;line-height:16px;font-family:courier;border-style:solid;border-width:0px 0px 15px;border-color:transparent;color:rgb(0,0,0)"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;line-height:normal;white-space:normal">ugh this wo</span><br></pre><pre style="margin-top:0px;margin-bottom:0px;padding:0px;font-size:13.3333330154419px;line-height:16px;font-family:courier;border-style:solid;border-width:0px 0px 15px;border-color:transparent;color:rgb(0,0,0)"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;line-height:normal;white-space:normal">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&#39;t have write permissions for your NCL installation location, you can simply copy the code (including the undef(&quot;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...</span></pre><pre style="margin-top:0px;margin-bottom:0px;padding:0px;font-size:13.3333330154419px;line-height:16px;font-family:courier;border-style:solid;border-width:0px 0px 15px;border-color:transparent;color:rgb(0,0,0)"><br></pre><pre style="margin-top:0px;margin-bottom:0px;padding:0px;font-size:13.3333330154419px;line-height:16px;font-family:courier;border-style:solid;border-width:0px 0px 15px;border-color:transparent;color:rgb(0,0,0)"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;line-height:normal;white-space:normal">Kyle</span></pre></div></div><div class="gmail_extra"><br clear="all"><div><div><div dir="ltr">----------------------------------------<div>Kyle S. Griffin</div><div>Department of Atmospheric and Oceanic Sciences</div><div>University of Wisconsin - Madison</div><div>Room 1421</div><div>1225 W Dayton St, Madison, WI 53706</div><div>Email: <a href="mailto:ksgriffin2@wisc.edu" target="_blank">ksgriffin2@wisc.edu</a></div></div></div></div>
<br><div class="gmail_quote"><div><div>On Tue, Feb 10, 2015 at 3:53 PM, Joe Grim <span dir="ltr">&lt;<a href="mailto:grim@ucar.edu" target="_blank">grim@ucar.edu</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">Hi,<div><br></div><div>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 <em>option</em>@<em>zonal = True</em>.  So, when I run the main NCL program, I get output to my screen that looks like this:</div><div>(0)     icObjAnal_1d: lat=32.15   zonavg=-4.14749<br></div><div><div>(1)     icObjAnal_1d: lat=32.25   zonavg=-4.14749</div><div>(2)     icObjAnal_1d: lat=32.35   zonavg=-4.14749</div><div>(3)     icObjAnal_1d: lat=32.45   zonavg=-4.1474</div></div><div>...</div><div>Since obj_anal_ic_deprecated is used 720 times in my program, that is a lot of output to my screen that I don&#39;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?</div><div><br></div><div>Thanks in advance!</div><span><font color="#888888"><div><br></div><div>Joe Grim</div></font></span></div>
<br></div></div>_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>