<div dir="ltr"><div>[1] If you are &quot;new to NCL&quot;, please look at  <a href="http://test.www.ncl.ucar.edu/Document/Manuals/">http://test.www.ncl.ucar.edu/Document/Manuals/</a><br><br></div><div>      (a) look at the &#39;Mini-Language Manual&quot;<br></div><div>      (b) the <a href="https://dl.dropboxusercontent.com/u/8357888/homepage/tutoriais/ncl/NCL_Tutorial_V1.1.pdf">DKRZ: NCL Tutorial Version 1.1</a></div><div><br>===<br>&quot;I am using a NAM model nc but I cannot find the actual temperature and humidity for individual pressure levels.&quot;<br><br></div><div>Look at the file via:<br><br></div><div>ncdump -h NAM.nc | less<br></div><div>or, equivalently via<br></div><div>ncl_filedump NAM.nc | less<br><br></div><div>NAM files typically contain many variables. Some are at specific levels but others may have to be extraced by the user. [That&#39;s you!]<br><br></div><div>Good luck<br></div><div><br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 12, 2016 at 2:11 AM, Karin Meier-Fleischer <span dir="ltr">&lt;<a href="mailto:meier-fleischer@dkrz.de" target="_blank">meier-fleischer@dkrz.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div 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>Am 12.04.16 um 06:40 schrieb JP Kalb:<br>
    </div>
    <blockquote type="cite"><div><div class="h5">
      <div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px">
        <div style="font-family:&#39;Helvetica Neue&#39;,&#39;Segoe UI&#39;,Helvetica,Arial,&#39;Lucida Grande&#39;,sans-serif;font-size:13px">
          <div><span><span title="Mon, Apr 11, 2016 at 9:36 PM">Today
                at 9:36 <span>PM</span></span></span></div>
        </div>
        <div style="font-family:&#39;Helvetica Neue&#39;,&#39;Segoe UI&#39;,Helvetica,Arial,&#39;Lucida Grande&#39;,sans-serif;font-size:13px">
          <div style="outline:none 0px;width:769px">
            <div>
              <div>
                <div>
                  <div>
                    <div>Hi
                      there,</div>
                    <div dir="ltr">I am new
                      to NCL. I am getting a fatal error message in my
                      code for the line that goes.</div>
                    <div dir="ltr">If((bprime
                      &lt; 0))</div>
                    <div dir="ltr">bprime=0</div>
                    <div dir="ltr">endif</div>
                    <div dir="ltr">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">Thanks,</div>
                    <div><br>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <div> </div>
        <div>JP
          Kalb</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 face="Arial" size="2"> On Monday,
                  April 11, 2016 9:36 PM, JP Kalb
                  <a href="mailto:jpkalb1990@yahoo.com" target="_blank">&lt;jpkalb1990@yahoo.com&gt;</a> wrote:<br>
                </font></div>
              <br>
              <br>
              <div>
                <div>
                  <div>
                    <div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px">
                      <div>Hi
                        there,</div>
                      <div dir="ltr">I am new to NCL. I am getting a fatal
                        error message in my code for the line that goes.</div>
                      <div dir="ltr">If((bprime &lt; 0))</div>
                      <div dir="ltr">bprime=0</div>
                      <div dir="ltr">endif</div>
                      <div dir="ltr">The error is in the first line but I
                        cannot figure out how to solve it.</div>
                      <div dir="ltr">Thanks,</div>
                      <div> </div>
                      <div>JP Kalb</div>
                    </div>
                  </div>
                </div>
                <br>
                <br>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      </div></div><pre>_______________________________________________
ncl-talk mailing list
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>
List instructions, subscriber options, unsubscribe:
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a>
</pre>
    </blockquote>
    <br>
    <pre cols="72">-- 
Dipl. Geophys. Karin Meier-Fleischer
Visualization, NCL
Application Support

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

Phone:    <a href="tel:%2B49%20%280%2940%20460094%20126" value="+4940460094126" target="_blank">+49 (0)40 460094 126</a>
Fax:      <a href="tel:%2B49%20%280%2940%20460094%20270" value="+4940460094270" target="_blank">+49 (0)40 460094 270</a>
E-Mail:   <a href="mailto:meier-fleischer@dkrz.de" target="_blank">meier-fleischer@dkrz.de</a>
URL:      <a href="http://www.dkrz.de" target="_blank">www.dkrz.de</a>

Geschäftsführer: Prof. Dr. Thomas Ludwig
Sitz der Gesellschaft: Hamburg
Amtsgericht Hamburg HRB 39784
</pre>
  </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>