<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Including more of the script will/would help. <div class=""><br class=""></div><div class="">Sounds like bprime is an array, but there was no way for anyone to know that from your initial post. </div><div class=""><br class=""></div><div class="">Therefore <a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/where.shtml" class="">where</a> is probably what you actually want. </div><div class="">e.g.</div><div class=""><br class=""></div><div class="">bprime = where( bprime .lt. 0, 0, bprime) ; see documentation for whats going on here. </div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><blockquote type="cite" class=""><div class=""><div class="" style="background-color: rgb(255, 255, 255); font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;"><div class=""><span class="">Also, for some reason wrf_omega does not want to work.</span></div></div></div></blockquote>No one can do anything with this statement. Include an error message, an example of why it’s not working, some sample data. </div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Alan</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 12 Apr 2016, at 18:30, JP Kalb <<a href="mailto:jpkalb1990@yahoo.com" class="">jpkalb1990@yahoo.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><div style="background-color: rgb(255, 255, 255); font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;" class=""><div class=""><span class="">Also, for some reason wrf_omega does not want to work.</span></div><div class=""></div><div class=""> </div><div class="signature">JP Kalb</div> <div class="qtdSeparateBR"><br class=""><br class=""></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" class=""> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" class=""> <div dir="ltr" class=""><font size="2" face="Arial" class=""> On Tuesday, April 12, 2016 3:21 PM, JP Kalb <<a href="mailto:jpkalb1990@yahoo.com" class="">jpkalb1990@yahoo.com</a>> wrote:<br class=""></font></div> <br class=""><br class=""> <div class="y_msg_container"><div id="yiv7484806715" class=""><div class=""><div style="background-color: rgb(255, 255, 255); font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;" class=""><div dir="ltr" class=""><span class="">I tried that change but I am getting a scalar issue since I want to look at vertical motion at different levels.</span></div><div class=""></div><div id="yiv7484806715yui_3_16_0_ym19_1_1460437253226_24264" class=""> </div><div class="yiv7484806715signature">JP Kalb</div> <div class="yiv7484806715qtdSeparateBR"><br clear="none" class=""><br clear="none" class=""></div><div class="yiv7484806715yqt7583107794" id="yiv7484806715yqt31679"><div class="yiv7484806715yahoo_quoted" style="display:block;"> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;" class=""> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;" class=""> <div dir="ltr" class=""><font size="2" face="Arial" class=""> On Tuesday, April 12, 2016 11:23 AM, David Brown <<a href="mailto:dbrown@ucar.edu" class="">dbrown@ucar.edu</a>> wrote:<br clear="none" class=""></font></div> <br clear="none" class=""><br clear="none" class=""> <div class="yiv7484806715y_msg_container">A small correction to Karin's answer: there is a extra ending<br clear="none" class="">parenthesis. It should be<br clear="none" class=""><br clear="none" class="">if (bprime .lt. 0) then<br clear="none" class=""> bprime = 0<br clear="none" class="">end if<br clear="none" class=""><br clear="none" class=""> -dave<br clear="none" class=""><br clear="none" class=""><br clear="none" class="">On Tue, Apr 12, 2016 at 2:11 AM, Karin Meier-Fleischer<br clear="none" class=""><<a rel="nofollow" shape="rect" ymailto="mailto:meier-fleischer@dkrz.de" target="_blank" href="mailto:meier-fleischer@dkrz.de" class="">meier-fleischer@dkrz.de</a>> wrote:<br clear="none" class="">> Hi JP,<br clear="none" class="">><br clear="none" class="">> the if-statement is wrong, use:<br clear="none" class="">><br clear="none" class="">> if(bprime .lt. 0)) then<br clear="none" class="">> bprime = 0<br clear="none" class="">> end if<br clear="none" class="">><br clear="none" class="">> Bye,<br clear="none" class="">> Karin<br clear="none" class="">><br clear="none" class="">> Am 12.04.16 um 06:40 schrieb JP Kalb:<br clear="none" class="">><br clear="none" class="">> Today at 9:36 PM<br clear="none" class="">> Hi there,<br clear="none" class="">> I am new to NCL. I am getting a fatal error message in my code for the line<br clear="none" class="">> that goes.<br clear="none" class="">> If((bprime < 0))<br clear="none" class="">> bprime=0<br clear="none" class="">> endif<br clear="none" class="">> The error is in the first line but I cannot figure out how to solve it.<br clear="none" class="">> Also, I am having trouble with my code as I am using a NAM model nc but I<br clear="none" class="">> cannot find the actual temperature and humidity for individual pressure<br clear="none" class="">> levels.<br clear="none" class="">> Thanks,<br clear="none" class="">><br clear="none" class="">><br clear="none" class="">> JP Kalb<br clear="none" class="">><br clear="none" class="">><br clear="none" class="">> On Monday, April 11, 2016 9:36 PM, JP Kalb <<a rel="nofollow" shape="rect" ymailto="mailto:jpkalb1990@yahoo.com" target="_blank" href="mailto:jpkalb1990@yahoo.com" class="">jpkalb1990@yahoo.com</a>> wrote:<br clear="none" class="">><br clear="none" class="">><br clear="none" class="">> Hi there,<br clear="none" class="">> I am new to NCL. I am getting a fatal error message in my code for the line<br clear="none" class="">> that goes.<br clear="none" class="">> If((bprime < 0))<br clear="none" class="">> bprime=0<br clear="none" class="">> endif<br clear="none" class="">> The error is in the first line but I cannot figure out how to solve it.<br clear="none" class="">> Thanks,<br clear="none" class="">><br clear="none" class="">> JP Kalb<br clear="none" class="">><br clear="none" class="">><br clear="none" class="">><br clear="none" class="">><br clear="none" class="">> _______________________________________________<br clear="none" class="">> ncl-talk mailing list<br clear="none" class="">> <a rel="nofollow" shape="rect" ymailto="mailto:ncl-talk@ucar.edu" target="_blank" href="mailto:ncl-talk@ucar.edu" class="">ncl-talk@ucar.edu</a><br clear="none" class="">> List instructions, subscriber options, unsubscribe:<br clear="none" class="">> <a rel="nofollow" shape="rect" target="_blank" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br clear="none" class="">><br clear="none" class="">><br clear="none" class="">> --<br clear="none" class="">> Dipl. Geophys. Karin Meier-Fleischer<br clear="none" class="">> Visualization, NCL<br clear="none" class="">> Application Support<br clear="none" class="">><br clear="none" class="">> Deutsches Klimarechenzentrum GmbH (DKRZ)<br clear="none" class="">> Bundesstrasse 45a - D20146 Hamburg - Germany<br clear="none" class="">><br clear="none" class="">> Phone: +49 (0)40 460094 126<br clear="none" class="">> Fax: +49 (0)40 460094 270<br clear="none" class="">> E-Mail: <a rel="nofollow" shape="rect" ymailto="mailto:meier-fleischer@dkrz.de" target="_blank" href="mailto:meier-fleischer@dkrz.de" class="">meier-fleischer@dkrz.de</a><br clear="none" class="">> URL: <a href="http://www.dkrz.de" class="">www.dkrz.de</a><br clear="none" class="">><br clear="none" class="">> Geschäftsführer: Prof. Dr. Thomas Ludwig<br clear="none" class="">> Sitz der Gesellschaft: Hamburg<br clear="none" class="">> Amtsgericht Hamburg HRB 39784<div class="yiv7484806715yqt2106225121" id="yiv7484806715yqtfd26806"><br clear="none" class="">><br clear="none" class="">><br clear="none" class="">> _______________________________________________<br clear="none" class="">> ncl-talk mailing list<br clear="none" class="">> <a rel="nofollow" shape="rect" ymailto="mailto:ncl-talk@ucar.edu" target="_blank" href="mailto:ncl-talk@ucar.edu" class="">ncl-talk@ucar.edu</a><br clear="none" class="">> List instructions, subscriber options, unsubscribe:<br clear="none" class="">> <a rel="nofollow" shape="rect" target="_blank" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br clear="none" class="">><br clear="none" class="">_______________________________________________<br clear="none" class="">ncl-talk mailing list<br clear="none" class=""><a rel="nofollow" shape="rect" ymailto="mailto:ncl-talk@ucar.edu" target="_blank" href="mailto:ncl-talk@ucar.edu" class="">ncl-talk@ucar.edu</a><br clear="none" class="">List instructions, subscriber options, unsubscribe:<br clear="none" class=""><a rel="nofollow" shape="rect" target="_blank" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br clear="none" class=""></div><br clear="none" class=""><br clear="none" class=""></div> </div> </div> </div></div></div></div></div><br class=""><br class=""></div> </div> </div> </div></div></div>_______________________________________________<br class="">ncl-talk mailing list<br class=""><a href="mailto:ncl-talk@ucar.edu" class="">ncl-talk@ucar.edu</a><br class="">List instructions, subscriber options, unsubscribe:<br class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk<br class=""></div></blockquote></div><br class=""></div></body></html>