<div dir="ltr">Unfortunately, the wrf_omega routines in V6.2.0 and 6.3.0 have a bug that produces incorrect values. Since the error occurs in the C-wrapper code, there isn't a simple workaround. This has been fixed in the upcoming 6.4.0 release. <div><br></div><div>For now, I suggest trying the testing anaconda release of NCL 6.4.0. It may not be perfect, but is probably ok for your needs. First, install anaconda from: </div><div><br></div><div><a href="https://www.continuum.io/downloads">https://www.continuum.io/downloads</a> </div><div><br></div><div>After installing anaconda, to install NCL do:</div><div><br></div><div>conda install -c dbrown -c khallock ncl</div><div><br></div><div>Hope this helps,</div><div><br></div><div>Bill</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 14, 2016 at 12:49 PM, Mary Haley <span dir="ltr"><<a href="mailto:haley@ucar.edu" target="_blank">haley@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"><div class="gmail_default" style="font-size:small">These two functions were added in NCL V6.2.0. If you are running an older version of NCL, then you need to upgrade.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/wrf_omega.shtml" target="_blank">http://www.ncl.ucar.edu/Document/Functions/Built-in/wrf_omega.shtml</a><br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Document/Functions/Contributed/omega_to_w.shtml" target="_blank">http://www.ncl.ucar.edu/Document/Functions/Contributed/omega_to_w.shtml</a><br></div><div class="gmail_default"><br></div><div class="gmail_default">You can verify your NCL version with:</div><div class="gmail_default"><br></div><div class="gmail_default">ncl -V</div><span class="HOEnZb"><font color="#888888"><div class="gmail_default"><br></div><div class="gmail_default">--Mary</div><div class="gmail_default"><br></div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 13, 2016 at 12:03 PM, JP Kalb <span dir="ltr"><<a href="mailto:jpkalb1990@yahoo.com" target="_blank">jpkalb1990@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"><div><span>The error I am getting for the wrf_omega and w_to_omega is that both are undefined. Also, when I try to multiply my w by rho. I am getting an error saying "Fatal: mul: Dimension size, for dimension number 0, of operands does not match"</span></div><span><font color="#888888"><div></div><div> </div><div>JP Kalb</div></font></span><div><div> <div><br><br></div><div style="display:block"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"> <div dir="ltr"><font size="2" face="Arial"> On Wednesday, April 13, 2016 6:24 AM, Alan Brammer <<a href="mailto:abrammer@albany.edu" target="_blank">abrammer@albany.edu</a>> wrote:<br></font></div> <br><br> <div><div><div>Including more of the script will/would help. <div><br clear="none"></div><div>Sounds like bprime is an array, but there was no way for anyone to know that from your initial post. </div><div><br clear="none"></div><div>Therefore <a rel="nofollow" shape="rect" href="https://www.ncl.ucar.edu/Document/Functions/Built-in/where.shtml" target="_blank">where</a> is probably what you actually want. </div><div>e.g.</div><div><br clear="none"></div><div>bprime = where( bprime .lt. 0, 0, bprime) ; see documentation for whats going on here. </div><div><br clear="none"></div><div><br clear="none"></div><div><br clear="none"></div><div><blockquote type="cite"><div><div style="background-color:rgb(255,255,255);font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:16px"><div><span>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><br clear="none"></div><div><br clear="none"></div><div><br clear="none"></div><div><br clear="none"></div><div>Alan</div><div><br clear="none"></div><div><br clear="none"></div><div><br clear="none"></div><div><br clear="none"></div><div><br clear="none"><div><blockquote type="cite"><div><div>On 12 Apr 2016, at 18:30, JP Kalb <<a rel="nofollow" shape="rect" href="mailto:jpkalb1990@yahoo.com" target="_blank">jpkalb1990@yahoo.com</a>> wrote:</div><br clear="none"><div><div><div style="background-color:rgb(255,255,255);font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:16px"><div><span>Also, for some reason wrf_omega does not want to work.</span></div><div></div><div> </div><div>JP Kalb</div> <div><br clear="none"><br clear="none"></div><div style="display:block"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"> <div dir="ltr"><font size="2" face="Arial"> On Tuesday, April 12, 2016 3:21 PM, JP Kalb <<a rel="nofollow" shape="rect" href="mailto:jpkalb1990@yahoo.com" target="_blank">jpkalb1990@yahoo.com</a>> wrote:<br clear="none"></font></div> <br clear="none"><br clear="none"> <div><div><div><div style="background-color:rgb(255,255,255);font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:16px"><div dir="ltr"><span>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></div><div> </div><div>JP Kalb</div> <div><br clear="none"><br clear="none"></div><div><div style="display:block"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"> <div dir="ltr"><font size="2" face="Arial"> On Tuesday, April 12, 2016 11:23 AM, David Brown <<a rel="nofollow" shape="rect" href="mailto:dbrown@ucar.edu" target="_blank">dbrown@ucar.edu</a>> wrote:<br clear="none"></font></div> <br clear="none"><br clear="none"> <div>A small correction to Karin's answer: there is a extra ending<br clear="none">parenthesis. It should be<br clear="none"><br clear="none">if (bprime .lt. 0) then<br clear="none"> bprime = 0<br clear="none">end if<br clear="none"><br clear="none"> -dave<br clear="none"><br clear="none"><br clear="none">On Tue, Apr 12, 2016 at 2:11 AM, Karin Meier-Fleischer<br clear="none"><<a rel="nofollow" shape="rect" href="mailto:meier-fleischer@dkrz.de" target="_blank">meier-fleischer@dkrz.de</a>> wrote:<br clear="none">> Hi JP,<br clear="none">><br clear="none">> the if-statement is wrong, use:<br clear="none">><br clear="none">> if(bprime .lt. 0)) then<br clear="none">> bprime = 0<br clear="none">> end if<br clear="none">><br clear="none">> Bye,<br clear="none">> Karin<br clear="none">><br clear="none">> Am 12.04.16 um 06:40 schrieb JP Kalb:<br clear="none">><br clear="none">> Today at 9:36 PM<br clear="none">> Hi there,<br clear="none">> I am new to NCL. I am getting a fatal error message in my code for the line<br clear="none">> that goes.<br clear="none">> If((bprime < 0))<br clear="none">> bprime=0<br clear="none">> endif<br clear="none">> The error is in the first line but I cannot figure out how to solve it.<br clear="none">> Also, I am having trouble with my code as I am using a NAM model nc but I<br clear="none">> cannot find the actual temperature and humidity for individual pressure<br clear="none">> levels.<br clear="none">> Thanks,<br clear="none">><br clear="none">><br clear="none">> JP Kalb<br clear="none">><br clear="none">><br clear="none">> On Monday, April 11, 2016 9:36 PM, JP Kalb <<a rel="nofollow" shape="rect" href="mailto:jpkalb1990@yahoo.com" target="_blank">jpkalb1990@yahoo.com</a>> wrote:<br clear="none">><br clear="none">><br clear="none">> Hi there,<br clear="none">> I am new to NCL. I am getting a fatal error message in my code for the line<br clear="none">> that goes.<br clear="none">> If((bprime < 0))<br clear="none">> bprime=0<br clear="none">> endif<br clear="none">> The error is in the first line but I cannot figure out how to solve it.<br clear="none">> Thanks,<br clear="none">><br clear="none">> JP Kalb<br clear="none">><br clear="none">><br clear="none">><br clear="none">><br clear="none">> _______________________________________________<br clear="none">> ncl-talk mailing list<br clear="none">> <a rel="nofollow" shape="rect" href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br clear="none">> List instructions, subscriber options, unsubscribe:<br clear="none">> <a rel="nofollow" shape="rect" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br clear="none">><br clear="none">><br clear="none">> --<br clear="none">> Dipl. Geophys. Karin Meier-Fleischer<br clear="none">> Visualization, NCL<br clear="none">> Application Support<br clear="none">><br clear="none">> Deutsches Klimarechenzentrum GmbH (DKRZ)<br clear="none">> Bundesstrasse 45a - D20146 Hamburg - Germany<br clear="none">><br clear="none">> Phone: <a href="tel:%2B49%20%280%2940%20460094%20126" value="+4940460094126" target="_blank">+49 (0)40 460094 126</a><br clear="none">> Fax: <a href="tel:%2B49%20%280%2940%20460094%20270" value="+4940460094270" target="_blank">+49 (0)40 460094 270</a><br clear="none">> E-Mail: <a rel="nofollow" shape="rect" href="mailto:meier-fleischer@dkrz.de" target="_blank">meier-fleischer@dkrz.de</a><br clear="none">> URL: <a rel="nofollow" shape="rect" href="http://www.dkrz.de/" target="_blank">www.dkrz.de</a><br clear="none">><br clear="none">> Geschäftsführer: Prof. Dr. Thomas Ludwig<br clear="none">> Sitz der Gesellschaft: Hamburg<br clear="none">> Amtsgericht Hamburg HRB 39784<div><br clear="none">><br clear="none">><br clear="none">> _______________________________________________<br clear="none">> ncl-talk mailing list<br clear="none">> <a rel="nofollow" shape="rect" href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br clear="none">> List instructions, subscriber options, unsubscribe:<br clear="none">> <a rel="nofollow" shape="rect" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br clear="none">><br clear="none">_______________________________________________<br clear="none">ncl-talk mailing list<br clear="none"><a rel="nofollow" shape="rect" href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br clear="none">List instructions, subscriber options, unsubscribe:<br clear="none"><a rel="nofollow" shape="rect" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br clear="none"></div><br clear="none"><br clear="none"></div> </div> </div> </div></div></div></div></div><br clear="none"><br clear="none"></div> </div> </div> </div></div></div>_______________________________________________<br clear="none">ncl-talk mailing list<br clear="none"><a rel="nofollow" shape="rect" href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br clear="none">List instructions, subscriber options, unsubscribe:<br clear="none"><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br clear="none"></div></div></blockquote></div><br clear="none"></div></div></div><br><br></div> </div> </div> </div></div></div></div></div><br>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>