<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi Joe,<div><br></div><div>there is a way to get rid of the icObjAnal_1d lines when running NCL. You can pipe the output </div><div>from your script to a grep command, like</div><div><br></div><div><font face="Courier" color="#0042aa" size="2">ncl your_script.ncl | grep -v icObjAnal_1d</font></div><div><br></div><div>This will keep all other output information lines untouched and print them at your terminal window.</div><div><br></div><div>Bye,</div><div>Karin</div><div><br></div><div><div><div>Am 11.02.2015 um 00:22 schrieb Kyle Griffin <<a href="mailto:ksgriffin2@wisc.edu">ksgriffin2@wisc.edu</a>>:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Hi Joe,<div><br></div><div>You could also try running</div><div><br></div><div>ncl myscript.ncl > /dev/null</div><div><br></div><div>I haven't tried this explicitly, and it might be more "mute" 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't think that is relevant as this printing isn't coming from a system(...) call.</div><div><br></div><div>Developers can chime in if there's some other way to assign NCL's environmental pager to a null pager, but I'm not sure there'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"><<a href="mailto:grim@ucar.edu" target="_blank">grim@ucar.edu</a>></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"><<a href="mailto:ksgriffin2@wisc.edu" target="_blank">ksgriffin2@wisc.edu</a>></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'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;">$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;"><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;"><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'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...</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;"><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;"><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 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>
<br><div class="gmail_quote"><div>On Tue, Feb 10, 2015 at 3:53 PM, Joe Grim <span dir="ltr"><<a href="mailto:grim@ucar.edu" target="_blank">grim@ucar.edu</a>></span> wrote:<br></div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto;"><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'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>_______________________________________________<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>
_______________________________________________<br>ncl-talk mailing list<br>List instructions, subscriber options, unsubscribe:<br><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br></blockquote></div><br><div apple-content-edited="true">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">____________________________________</div></span><span style="font-size: 13px; font-family: 'Courier New';">Dipl. Geophys. Karin Meier-Fleischer</span></div></span><div><font face="Courier New"><span style="font-size: 13px;">Visualisierung</span></font></div><div><font face="Courier New"><span style="font-size: 13px;">Abteilung Anwendungen</span></font></div><div><font face="Courier New"><span style="font-size: 13px;"><br></span></font></div><div><font face="Courier New"><span style="font-size: 13px;">Deutsches Klimarechenzentrum GmbH (DKRZ)</span></font></div><div><font face="Courier New"><span style="font-size: 13px;">Bundesstrasse 45a * D-</span></font><span style="font-size: 13px; font-family: 'Courier New'; text-align: -webkit-auto;">20146 Hamburg </span></div><div><font face="Courier New"><span style="font-size: 13px;">Germany </span></font></div><div><font face="Courier New"><span style="font-size: 13px;"><br></span></font></div><div><span style="font-family: 'Courier New'; font-size: 13px;">Phone:<span class="Apple-tab-span" style="white-space: pre;">        </span>+49 (0)40 460094 126</span></div><div><div><span style="font-family: 'Courier New'; font-size: 13px; text-align: -webkit-auto;">Fax:<span class="Apple-tab-span" style="white-space: pre;">        </span>+49 (0)40 460094 270</span></div><div><font face="Courier New"><span style="font-size: 13px;">E-Mail:<span class="Apple-tab-span" style="white-space: pre;">        </span></span></font><span style="font-size: 13px; font-family: 'Courier New'; text-align: -webkit-auto;"><a href="mailto:meier-fleischer@dkrz.de">meier-fleischer@dkrz.de</a></span></div></div><div><font face="Courier New"><span style="font-size: 13px;">URL:<span class="Apple-tab-span" style="white-space: pre;">        </span></span></font><span style="text-align: -webkit-auto; font-size: 13px; font-family: 'Courier New';"><a href="http://www.dkrz.de/">http://www.dkrz.de/</a></span></div><div><font face="Courier New"><span style="font-size: 13px;"><br></span></font></div><div><font face="Courier New"><span style="font-size: 13px;">Geschäftsführer: Prof. Dr. Thomas Ludwig</span></font></div><div><font face="Courier New"><span style="font-size: 13px;">Sitz der Gesellschaft: Hamburg</span></font></div><div><font face="Courier New"><span style="font-size: 13px;">Amtsgericht Hamburg HRB 39784</span></font></div><div><br></div></div></span></div></div></div></div></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br></div></body></html>