<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1460522215161_7591"><span id="yui_3_16_0_ym19_1_1460522215161_7630">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><div></div><div id="yui_3_16_0_ym19_1_1460522215161_7592"> </div><div class="signature" id="yui_3_16_0_ym19_1_1460522215161_7788">JP Kalb</div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" 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 <abrammer@albany.edu> wrote:<br></font></div> <br><br> <div class="y_msg_container"><div id="yiv2451765241"><div>Including more of the script will/would help. <div class="yiv2451765241"><br clear="none" class="yiv2451765241"></div><div class="yiv2451765241">Sounds like bprime is an array, but there was no way for anyone to know that from your initial post. </div><div class="yiv2451765241"><br clear="none" class="yiv2451765241"></div><div class="yiv2451765241">Therefore <a rel="nofollow" shape="rect" class="yiv2451765241" target="_blank" href="https://www.ncl.ucar.edu/Document/Functions/Built-in/where.shtml">where</a> is probably what you actually want. </div><div class="yiv2451765241">e.g.</div><div class="yiv2451765241"><br clear="none" class="yiv2451765241"></div><div class="yiv2451765241">bprime = where( bprime .lt. 0, 0, bprime) ; see documentation for whats going on here. </div><div class="yiv2451765241"><br clear="none" class="yiv2451765241"></div><div class="yiv2451765241"><br clear="none" class="yiv2451765241"></div><div class="yiv2451765241"><br clear="none" class="yiv2451765241"></div><div class="yiv2451765241"><blockquote class="yiv2451765241" type="cite"><div class="yiv2451765241"><div class="yiv2451765241" style="background-color:rgb(255, 255, 255);font-family:HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;font-size:16px;"><div class="yiv2451765241"><span class="yiv2451765241">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="yiv2451765241"><br clear="none" class="yiv2451765241"></div><div class="yiv2451765241"><br clear="none" class="yiv2451765241"></div><div class="yiv2451765241"><br clear="none" class="yiv2451765241"></div><div class="yiv2451765241"><br clear="none" class="yiv2451765241"></div><div class="yiv2451765241">Alan</div><div class="yiv2451765241"><br clear="none" class="yiv2451765241"></div><div class="yiv2451765241"><br clear="none" class="yiv2451765241"></div><div class="yiv2451765241"><br clear="none" class="yiv2451765241"></div><div class="yiv2451765241"><br clear="none" class="yiv2451765241"></div><div class="yiv2451765241"><br clear="none" class="yiv2451765241"><div><blockquote class="yiv2451765241" type="cite"><div class="yiv2451765241yqt2137501048" id="yiv2451765241yqt13833"><div class="yiv2451765241">On 12 Apr 2016, at 18:30, JP Kalb <<a rel="nofollow" shape="rect" class="yiv2451765241" ymailto="mailto:jpkalb1990@yahoo.com" target="_blank" href="mailto:jpkalb1990@yahoo.com">jpkalb1990@yahoo.com</a>> wrote:</div><br clear="none" class="yiv2451765241Apple-interchange-newline"><div class="yiv2451765241"><div class="yiv2451765241"><div class="yiv2451765241" style="background-color:rgb(255, 255, 255);font-family:HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;font-size:16px;"><div class="yiv2451765241"><span class="yiv2451765241">Also, for some reason wrf_omega does not want to work.</span></div><div class="yiv2451765241"></div><div class="yiv2451765241"> </div><div class="yiv2451765241signature">JP Kalb</div> <div class="yiv2451765241qtdSeparateBR"><br clear="none" class="yiv2451765241"><br clear="none" class="yiv2451765241"></div><div class="yiv2451765241yahoo_quoted" style="display:block;"> <div class="yiv2451765241" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div class="yiv2451765241" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div class="yiv2451765241" dir="ltr"><font class="yiv2451765241" size="2" face="Arial"> On Tuesday, April 12, 2016 3:21 PM, JP Kalb <<a rel="nofollow" shape="rect" class="yiv2451765241" ymailto="mailto:jpkalb1990@yahoo.com" target="_blank" href="mailto:jpkalb1990@yahoo.com">jpkalb1990@yahoo.com</a>> wrote:<br clear="none" class="yiv2451765241"></font></div> <br clear="none" class="yiv2451765241"><br clear="none" class="yiv2451765241"> <div class="yiv2451765241y_msg_container"><div class="yiv2451765241" id="yiv2451765241"><div class="yiv2451765241"><div class="yiv2451765241" style="background-color:rgb(255, 255, 255);font-family:HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;font-size:16px;"><div class="yiv2451765241" dir="ltr"><span class="yiv2451765241">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="yiv2451765241"></div><div class="yiv2451765241" id="yiv2451765241yui_3_16_0_ym19_1_1460437253226_24264"> </div><div class="yiv2451765241signature">JP Kalb</div> <div class="yiv2451765241qtdSeparateBR"><br clear="none" class="yiv2451765241"><br clear="none" class="yiv2451765241"></div><div class="yiv2451765241yqt7583107794" id="yiv2451765241yqt31679"><div class="yiv2451765241yahoo_quoted" style="display:block;"> <div class="yiv2451765241" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div class="yiv2451765241" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div class="yiv2451765241" dir="ltr"><font class="yiv2451765241" size="2" face="Arial"> On Tuesday, April 12, 2016 11:23 AM, David Brown <<a rel="nofollow" shape="rect" class="yiv2451765241" ymailto="mailto:dbrown@ucar.edu" target="_blank" href="mailto:dbrown@ucar.edu">dbrown@ucar.edu</a>> wrote:<br clear="none" class="yiv2451765241"></font></div> <br clear="none" class="yiv2451765241"><br clear="none" class="yiv2451765241"> <div class="yiv2451765241y_msg_container">A small correction to Karin's answer: there is a extra ending<br clear="none" class="yiv2451765241">parenthesis. It should be<br clear="none" class="yiv2451765241"><br clear="none" class="yiv2451765241">if (bprime .lt. 0) then<br clear="none" class="yiv2451765241"> bprime = 0<br clear="none" class="yiv2451765241">end if<br clear="none" class="yiv2451765241"><br clear="none" class="yiv2451765241"> -dave<br clear="none" class="yiv2451765241"><br clear="none" class="yiv2451765241"><br clear="none" class="yiv2451765241">On Tue, Apr 12, 2016 at 2:11 AM, Karin Meier-Fleischer<br clear="none" class="yiv2451765241"><<a rel="nofollow" shape="rect" class="yiv2451765241" ymailto="mailto:meier-fleischer@dkrz.de" target="_blank" href="mailto:meier-fleischer@dkrz.de">meier-fleischer@dkrz.de</a>> wrote:<br clear="none" class="yiv2451765241">> Hi JP,<br clear="none" class="yiv2451765241">><br clear="none" class="yiv2451765241">> the if-statement is wrong, use:<br clear="none" class="yiv2451765241">><br clear="none" class="yiv2451765241">> if(bprime .lt. 0)) then<br clear="none" class="yiv2451765241">> bprime = 0<br clear="none" class="yiv2451765241">> end if<br clear="none" class="yiv2451765241">><br clear="none" class="yiv2451765241">> Bye,<br clear="none" class="yiv2451765241">> Karin<br clear="none" class="yiv2451765241">><br clear="none" class="yiv2451765241">> Am 12.04.16 um 06:40 schrieb JP Kalb:<br clear="none" class="yiv2451765241">><br clear="none" class="yiv2451765241">> Today at 9:36 PM<br clear="none" class="yiv2451765241">> Hi there,<br clear="none" class="yiv2451765241">> I am new to NCL. I am getting a fatal error message in my code for the line<br clear="none" class="yiv2451765241">> that goes.<br clear="none" class="yiv2451765241">> If((bprime < 0))<br clear="none" class="yiv2451765241">> bprime=0<br clear="none" class="yiv2451765241">> endif<br clear="none" class="yiv2451765241">> The error is in the first line but I cannot figure out how to solve it.<br clear="none" class="yiv2451765241">> Also, I am having trouble with my code as I am using a NAM model nc but I<br clear="none" class="yiv2451765241">> cannot find the actual temperature and humidity for individual pressure<br clear="none" class="yiv2451765241">> levels.<br clear="none" class="yiv2451765241">> Thanks,<br clear="none" class="yiv2451765241">><br clear="none" class="yiv2451765241">><br clear="none" class="yiv2451765241">> JP Kalb<br clear="none" class="yiv2451765241">><br clear="none" class="yiv2451765241">><br clear="none" class="yiv2451765241">> On Monday, April 11, 2016 9:36 PM, JP Kalb <<a rel="nofollow" shape="rect" class="yiv2451765241" ymailto="mailto:jpkalb1990@yahoo.com" target="_blank" href="mailto:jpkalb1990@yahoo.com">jpkalb1990@yahoo.com</a>> wrote:<br clear="none" class="yiv2451765241">><br clear="none" class="yiv2451765241">><br clear="none" class="yiv2451765241">> Hi there,<br clear="none" class="yiv2451765241">> I am new to NCL. I am getting a fatal error message in my code for the line<br clear="none" class="yiv2451765241">> that goes.<br clear="none" class="yiv2451765241">> If((bprime < 0))<br clear="none" class="yiv2451765241">> bprime=0<br clear="none" class="yiv2451765241">> endif<br clear="none" class="yiv2451765241">> The error is in the first line but I cannot figure out how to solve it.<br clear="none" class="yiv2451765241">> Thanks,<br clear="none" class="yiv2451765241">><br clear="none" class="yiv2451765241">> JP Kalb<br clear="none" class="yiv2451765241">><br clear="none" class="yiv2451765241">><br clear="none" class="yiv2451765241">><br clear="none" class="yiv2451765241">><br clear="none" class="yiv2451765241">> _______________________________________________<br clear="none" class="yiv2451765241">> ncl-talk mailing list<br clear="none" class="yiv2451765241">> <a rel="nofollow" shape="rect" class="yiv2451765241" ymailto="mailto:ncl-talk@ucar.edu" target="_blank" href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br clear="none" class="yiv2451765241">> List instructions, subscriber options, unsubscribe:<br clear="none" class="yiv2451765241">> <a rel="nofollow" shape="rect" class="yiv2451765241" target="_blank" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br clear="none" class="yiv2451765241">><br clear="none" class="yiv2451765241">><br clear="none" class="yiv2451765241">> --<br clear="none" class="yiv2451765241">> Dipl. Geophys. Karin Meier-Fleischer<br clear="none" class="yiv2451765241">> Visualization, NCL<br clear="none" class="yiv2451765241">> Application Support<br clear="none" class="yiv2451765241">><br clear="none" class="yiv2451765241">> Deutsches Klimarechenzentrum GmbH (DKRZ)<br clear="none" class="yiv2451765241">> Bundesstrasse 45a - D20146 Hamburg - Germany<br clear="none" class="yiv2451765241">><br clear="none" class="yiv2451765241">> Phone: +49 (0)40 460094 126<br clear="none" class="yiv2451765241">> Fax: +49 (0)40 460094 270<br clear="none" class="yiv2451765241">> E-Mail: <a rel="nofollow" shape="rect" class="yiv2451765241" ymailto="mailto:meier-fleischer@dkrz.de" target="_blank" href="mailto:meier-fleischer@dkrz.de">meier-fleischer@dkrz.de</a><br clear="none" class="yiv2451765241">> URL: <a rel="nofollow" shape="rect" class="yiv2451765241" target="_blank" href="http://www.dkrz.de/">www.dkrz.de</a><br clear="none" class="yiv2451765241">><br clear="none" class="yiv2451765241">> Geschäftsführer: Prof. Dr. Thomas Ludwig<br clear="none" class="yiv2451765241">> Sitz der Gesellschaft: Hamburg<br clear="none" class="yiv2451765241">> Amtsgericht Hamburg HRB 39784<div class="yiv2451765241yqt2106225121" id="yiv2451765241yqtfd26806"><br clear="none" class="yiv2451765241">><br clear="none" class="yiv2451765241">><br clear="none" class="yiv2451765241">> _______________________________________________<br clear="none" class="yiv2451765241">> ncl-talk mailing list<br clear="none" class="yiv2451765241">> <a rel="nofollow" shape="rect" class="yiv2451765241" ymailto="mailto:ncl-talk@ucar.edu" target="_blank" href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br clear="none" class="yiv2451765241">> List instructions, subscriber options, unsubscribe:<br clear="none" class="yiv2451765241">> <a rel="nofollow" shape="rect" class="yiv2451765241" target="_blank" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br clear="none" class="yiv2451765241">><br clear="none" class="yiv2451765241">_______________________________________________<br clear="none" class="yiv2451765241">ncl-talk mailing list<br clear="none" class="yiv2451765241"><a rel="nofollow" shape="rect" class="yiv2451765241" ymailto="mailto:ncl-talk@ucar.edu" target="_blank" href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br clear="none" class="yiv2451765241">List instructions, subscriber options, unsubscribe:<br clear="none" class="yiv2451765241"><a rel="nofollow" shape="rect" class="yiv2451765241" target="_blank" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br clear="none" class="yiv2451765241"></div><br clear="none" class="yiv2451765241"><br clear="none" class="yiv2451765241"></div> </div> </div> </div></div></div></div></div><br clear="none" class="yiv2451765241"><br clear="none" class="yiv2451765241"></div> </div> </div> </div></div></div>_______________________________________________<br clear="none" class="yiv2451765241">ncl-talk mailing list<br clear="none" class="yiv2451765241"><a rel="nofollow" shape="rect" class="yiv2451765241" ymailto="mailto:ncl-talk@ucar.edu" target="_blank" href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br clear="none" class="yiv2451765241">List instructions, subscriber options, unsubscribe:<br clear="none" class="yiv2451765241">http://mailman.ucar.edu/mailman/listinfo/ncl-talk<br clear="none" class="yiv2451765241"></div></div></blockquote></div><br clear="none" class="yiv2451765241"></div></div></div><br><br></div> </div> </div> </div></div></body></html>