<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Maryam,<br>
    <br>
    I'm a little bit confused about your script. The AFR-44 data must
    have time, lat and lon dimensions so the complete defining and
    assigning of time, lat and lon to the variable pre is not needed.
    You can read them directly <br>
    <br>
    <tt>time = f-&gt;time</tt><tt><br>
    </tt><tt>lat  = f-&gt;lat</tt><tt><br>
    </tt><tt>lon  = f-&gt;lon</tt><br>
    <br>
    After creating a contour plot of variable pre there is an exit call
    and NCL will stop directly without executing the rest of your
    script. But looking at the rest why are you overwriting your
    variable pre with random data? You will use the random data to
    define the new variable data!??<br>
    <br>
    By the way, if you are running NCL 6.3.0 you do not need to load the
    gsn_code.ncl, gsn_csm.ncl and contributed.ncl libraries anymore.<br>
    <br>
    Bye,<br>
    Karin<br>
    <br>
    <div class="moz-cite-prefix">Am 20.07.16 um 05:57 schrieb
      <a class="moz-txt-link-abbreviated" href="mailto:mkarimian59@yahoo.com">mkarimian59@yahoo.com</a>:<br>
    </div>
    <blockquote
cite="mid:1409786902.2194511.1468987057644.JavaMail.yahoo@mail.yahoo.com"
      type="cite">
      <div style="color:#000; background-color:#fff;
        font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande,
        sans-serif;font-size:16px">
        <div id="yui_3_16_0_ym19_1_1468985440977_13333"><span
            id="yui_3_16_0_ym19_1_1468985440977_13334">Dear All<br>
          </span></div>
        <div id="yui_3_16_0_ym19_1_1468985440977_13335" dir="ltr">I want
          to write a script at NCL for convert nc file to ascii file.<br
            id="yui_3_16_0_ym19_1_1468985440977_13336">
        </div>
        <span id="yui_3_16_0_ym19_1_1468985440977_13337">I studied
          ncl-talk and another example at NCL site. I get more
          information but I have a problem.</span>
        <div id="yui_3_16_0_ym19_1_1468985440977_13338" dir="ltr"><span
            id="yui_3_16_0_ym19_1_1468985440977_13339">I want to write a
            script that it can able to inform following task:</span></div>
        <div id="yui_3_16_0_ym19_1_1468985440977_13340" dir="ltr"><span
            id="yui_3_16_0_ym19_1_1468985440977_13341">1- open nc file
            and read it</span></div>
        <div id="yui_3_16_0_ym19_1_1468985440977_13342" dir="ltr"><span
            id="yui_3_16_0_ym19_1_1468985440977_13343">2- extract data
            below:</span></div>
        <div id="yui_3_16_0_ym19_1_1468985440977_13344" dir="ltr"><span
            id="yui_3_16_0_ym19_1_1468985440977_13345">lat    lon   pre</span></div>
        <div id="yui_3_16_0_ym19_1_1468985440977_13346" dir="ltr">
          <div id="yui_3_16_0_ym19_1_1468985440977_13347"><span
              id="yui_3_16_0_ym19_1_1468985440977_13348">for example:
              30  50   20</span></div>
          <div id="yui_3_16_0_ym19_1_1468985440977_13349"><span
              id="yui_3_16_0_ym19_1_1468985440977_13350">3- write these
              information to inform of ascii file.<br
                id="yui_3_16_0_ym19_1_1468985440977_13351">
            </span></div>
        </div>
        <div id="yui_3_16_0_ym19_1_1468985440977_13352" dir="ltr"><span
            id="yui_3_16_0_ym19_1_1468985440977_13353">I try to write a
            script but I have a problem at run it. I send this script
            for you.</span></div>
        <div id="yui_3_16_0_ym19_1_1468985440977_13354" dir="ltr"><span
            id="yui_3_16_0_ym19_1_1468985440977_13355">Please kindly see
            this and guide me. <br
              id="yui_3_16_0_ym19_1_1468985440977_13356">
          </span></div>
        <div id="yui_3_16_0_ym19_1_1468985440977_13357" dir="ltr"><span
            id="yui_3_16_0_ym19_1_1468985440977_13358">Thanks in advance</span></div>
        <div id="yui_3_16_0_ym19_1_1468985440977_13359" dir="ltr"><span
            id="yui_3_16_0_ym19_1_1468985440977_13360">regard</span></div>
        <span id="yui_3_16_0_ym19_1_1468985440977_13361">maryam</span>
        <div id="yui_3_16_0_ym19_1_1468985440977_13362" dir="ltr"><font
            id="yui_3_16_0_ym19_1_1468985440977_13363" face=""
            color="#00407f" size="2"><em
              id="yui_3_16_0_ym19_1_1468985440977_13364"><span
                id="yui_3_16_0_ym19_1_1468985440977_13365"
                style="BORDER-BOTTOM:medium none;BACKGROUND:none
                transparent scroll repeat 0% 0%;CURSOR:hand;"> </span></em></font></div>
        <div id="yui_3_16_0_ym19_1_1468985440977_13366">
          <div id="yui_3_16_0_ym19_1_1468985440977_13378" dir="ltr"><span
              id="yui_3_16_0_ym19_1_1468985440977_13367"><br
                id="yui_3_16_0_ym19_1_1468985440977_13368">
            </span></div>
        </div>
        <div id="yui_3_16_0_ym19_1_1468985440977_12060"> </div>
        <div id="yui_3_16_0_ym19_1_1468985440977_12075"
          class="signature">
          <div id="yui_3_16_0_ym19_1_1468985440977_12074">
            <div id="yiv1113997947yui_3_16_0_ym19_1_1465625839709_2916"><font
                id="yiv1113997947yui_3_16_0_ym19_1_1465625839709_3142"
                face="" color="#00407f" size="2"><em
                  id="yiv1113997947yui_3_16_0_ym19_1_1465625839709_3141">Maryam
                  Karimian<br>
                  <span style="BORDER-BOTTOM:medium none;BACKGROUND:none
                    transparent scroll repeat 0% 0%;CURSOR:hand;"
                    id="yiv1113997947yiv501271308yiv1154946147lw_1277615178_4"
class="yiv1113997947yiv501271308yiv1154946147yshortcuts"><span
                      id="yiv1113997947yiv501271308lw_1294818992_0"
                      class="yiv1113997947yiv501271308yshortcuts"><span
                        style="BORDER-BOTTOM:#366388 2px
                        dotted;BACKGROUND:none transparent scroll repeat
                        0% 0%;CURSOR:hand;"
                        id="yiv1113997947lw_1298452386_2"
                        class="yiv1113997947yshortcuts">Climate change</span></span></span>
                  and Climat modeling division<br>
                  <span style="BORDER-BOTTOM:medium none;BACKGROUND:none
                    transparent scroll repeat 0% 0%;CURSOR:hand;"
                    id="yiv1113997947yiv501271308lw_1294818992_1"
                    class="yiv1113997947yiv501271308yshortcuts">Climatological
                    Research Institute (CRI)<br>
                  </span></em></font></div>
            <div id="yiv1113997947yui_3_16_0_ym19_1_1465625839709_2910"><font
                id="yiv1113997947yui_3_16_0_ym19_1_1465625839709_3148"
                color="#00407f" size="2"><em
                  id="yiv1113997947yui_3_16_0_ym19_1_1465625839709_3147">Email:
                  <a moz-do-not-send="true" rel="nofollow"
                    id="yui_3_16_0_ym19_1_1465628850825_2090"
                    target="_blank"
href="http://us.mc320.mail.yahoo.com/mc/compose?to=r_modiriyan@yahoo.com"><font
                      id="yui_3_16_0_ym19_1_1465628850825_2089" face=""><font
                        color="#00407f">mkarimian59</font>@yahoo.com</font></a><br>
                  <font
                    id="yiv1113997947yui_3_16_0_ym19_1_1465625839709_3146"
                    face="">Sento Highway, Next to Torogh Road-Police
                    Station<br>
                      Mashad 91735 - 676 , Islamic Republic of Iran</font></em></font></div>
          </div>
          <div id="yui_3_16_0_ym19_1_1468985440977_13460"><br>
          </div>
          <div id="yui_3_16_0_ym19_1_1468985440977_13398"><br>
          </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>