<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi JP,<br>
    <br>
    the if-statement is wrong, use:<br>
    <br>
    <font color="#000099"><tt>if(bprime .lt. 0)) then</tt><tt><br>
      </tt><tt>  bprime = 0</tt><tt><br>
      </tt><tt>end if</tt></font><br>
    <br>
    Bye,<br>
    Karin<br>
    <br>
    <div class="moz-cite-prefix">Am 12.04.16 um 06:40 schrieb JP Kalb:<br>
    </div>
    <blockquote
      cite="mid:641834127.1114961.1460436017158.JavaMail.yahoo@mail.yahoo.com"
      type="cite">
      <div style="color:#000; background-color:#fff;
        font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial,
        Lucida Grande, sans-serif;font-size:16px">
        <div role="presentation" style="font-family: 'Helvetica Neue',
          'Segoe UI', Helvetica, Arial, 'Lucida Grande', sans-serif;
          font-size: 13px;" id="yui_3_16_0_ym19_1_1460435837212_4682">
          <div role="presentation"
            id="yui_3_16_0_ym19_1_1460435837212_4683"><span
              role="presentation"
              id="yui_3_16_0_ym19_1_1460435837212_4684"><span
                title="Mon, Apr 11, 2016 at 9:36 PM" role="presentation"
                title-off="" id="yui_3_16_0_ym19_1_1460435837212_4685">Today
                at 9:36 <span id="yui_3_16_0_ym19_1_1460435837212_4686">PM</span></span></span></div>
        </div>
        <div role="presentation"
          aria-labelledby="yui_3_16_0_ym19_1_1460435837212_4005 "
          tabindex="0" style="font-family: 'Helvetica Neue', 'Segoe UI',
          Helvetica, Arial, 'Lucida Grande', sans-serif; font-size:
          13px;" id="yui_3_16_0_ym19_1_1460435837212_4687">
          <div tabindex="0" style="outline: none 0px; width: 769px;"
            id="yui_3_16_0_ym19_1_1460435837212_4688">
            <div id="yui_3_16_0_ym19_1_1460435837212_4689">
              <div id="yui_3_16_0_ym19_1_1460435837212_4690">
                <div id="yui_3_16_0_ym19_1_1460435837212_4691">
                  <div style="font-family: HelveticaNeue, 'Helvetica
                    Neue', Helvetica, Arial, 'Lucida Grande',
                    sans-serif; font-size: 16px;"
                    id="yui_3_16_0_ym19_1_1460435837212_4692">
                    <div id="yui_3_16_0_ym19_1_1460435837212_4693">Hi
                      there,</div>
                    <div dir="ltr"
                      id="yui_3_16_0_ym19_1_1460435837212_4694">I am new
                      to NCL. I am getting a fatal error message in my
                      code for the line that goes.</div>
                    <div dir="ltr"
                      id="yui_3_16_0_ym19_1_1460435837212_4695">If((bprime
                      &lt; 0))</div>
                    <div dir="ltr"
                      id="yui_3_16_0_ym19_1_1460435837212_4696">bprime=0</div>
                    <div dir="ltr"
                      id="yui_3_16_0_ym19_1_1460435837212_4697">endif</div>
                    <div dir="ltr"
                      id="yui_3_16_0_ym19_1_1460435837212_4698">The
                      error is in the first line but I cannot figure out
                      how to solve it. Also, I am having trouble with my
                      code as I am using a NAM model nc but I cannot
                      find the actual temperature and humidity for
                      individual pressure levels.</div>
                    <div dir="ltr"
                      id="yui_3_16_0_ym19_1_1460435837212_4699">Thanks,</div>
                    <div id="yui_3_16_0_ym19_1_1460435837212_4701"><br>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <div id="yui_3_16_0_ym19_1_1460435837212_4585"> </div>
        <div class="signature" id="yui_3_16_0_ym19_1_1460435837212_4586">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 face="Arial" size="2"> On Monday,
                  April 11, 2016 9:36 PM, JP Kalb
                  <a class="moz-txt-link-rfc2396E" href="mailto:jpkalb1990@yahoo.com">&lt;jpkalb1990@yahoo.com&gt;</a> wrote:<br>
                </font></div>
              <br>
              <br>
              <div class="y_msg_container">
                <div id="yiv4361474653">
                  <div>
                    <div
                      style="color:#000;background-color:#fff;font-family:HelveticaNeue,
                      Helvetica Neue, Helvetica, Arial, Lucida Grande,
                      sans-serif;font-size:16px;">
                      <div
                        id="yiv4361474653yui_3_16_0_ym19_1_1460321823731_48436">Hi
                        there,</div>
                      <div
                        id="yiv4361474653yui_3_16_0_ym19_1_1460321823731_48442"
                        dir="ltr">I am new to NCL. I am getting a fatal
                        error message in my code for the line that goes.</div>
                      <div
                        id="yiv4361474653yui_3_16_0_ym19_1_1460321823731_48442"
                        dir="ltr">If((bprime &lt; 0))</div>
                      <div
                        id="yiv4361474653yui_3_16_0_ym19_1_1460321823731_48442"
                        dir="ltr">bprime=0</div>
                      <div
                        id="yiv4361474653yui_3_16_0_ym19_1_1460321823731_48442"
                        dir="ltr">endif</div>
                      <div
                        id="yiv4361474653yui_3_16_0_ym19_1_1460321823731_48442"
                        dir="ltr">The error is in the first line but I
                        cannot figure out how to solve it.</div>
                      <div
                        id="yiv4361474653yui_3_16_0_ym19_1_1460321823731_48442"
                        dir="ltr">Thanks,</div>
                      <div> </div>
                      <div class="yiv4361474653signature">JP Kalb</div>
                    </div>
                  </div>
                </div>
                <br>
                <br>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
ncl-talk mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>
List instructions, subscriber options, unsubscribe:
<a class="moz-txt-link-freetext" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Dipl. Geophys. Karin Meier-Fleischer
Visualization, NCL
Application Support

Deutsches Klimarechenzentrum GmbH (DKRZ)
Bundesstrasse 45a - D20146 Hamburg - Germany

Phone:    +49 (0)40 460094 126
Fax:      +49 (0)40 460094 270
E-Mail:   <a class="moz-txt-link-abbreviated" href="mailto:meier-fleischer@dkrz.de">meier-fleischer@dkrz.de</a>
URL:      <a class="moz-txt-link-abbreviated" href="http://www.dkrz.de">www.dkrz.de</a>

Geschäftsführer: Prof. Dr. Thomas Ludwig
Sitz der Gesellschaft: Hamburg
Amtsgericht Hamburg HRB 39784
</pre>
  </body>
</html>