<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi,<br>
    <br>
    if you have 16 label strings in an array and ninfo is 16 then you
    have to write<br>
    <br>
        <span style="color: rgb(0, 0, 0); font-family: Verdana;
      font-size: 14px; font-weight: normal; line-height: 1.5;">res@lbLabelStrings
        = ispan(0,ninfo-1,1)<br>
      <br>
      NCL's first element of an array is 0 and the last is n-1.<br>
      <br>
      Bye,<br>
      Karin<br>
    </span> <br>
    <div class="moz-cite-prefix">Am 17.07.17 um 11:20 schrieb 古枫玥瑟:<br>
    </div>
    <blockquote cite="mid:tencent_73551C6536B0FA42472F561A@qq.com"
      type="cite">
      <h1 style="margin: 5px 0px 0px -5px; padding: 5px; clear: both;"><font
          face="verdana, sans-serif"><span style="font-size: 13.3333px;
            font-weight: normal; line-height: 16px; background-color:
            rgb(255, 231, 198);">Dear ncl-talk,</span></font></h1>
      <span style="color: rgb(0, 0, 0); font-family: verdana,
        sans-serif; font-size: 13.3333px; font-weight: normal;
        line-height: 16px; background-color: rgb(255, 231, 198);"> I
        have a question about </span><span style="line-height: normal; white-space: pre-wrap;">LabelStrings when running</span><span
        style="font-family: verdana, sans-serif; font-size: 13.3333px;
        line-height: 16px; background-color: rgb(255, 231, 198);"> "ncl
      </span><a moz-do-not-send="true"
        href="http://www.ncl.ucar.edu/Applications/Scripts/vegland_3.ncl"
        style="margin: 0px; padding: 0px; text-decoration: none; color:
        rgb(133, 45, 133); font-family: verdana, sans-serif; font-size:
        13.3333px; line-height: 16px;">vegland_3.ncl</a><span
        style="line-height: 1.5;">"</span><span style="font-family:
        verdana, sans-serif; font-size: 13.3333px; line-height: 16px;
        background-color: rgb(255, 231, 198);">(Vegetation and landuse
        classifications are examples of categorical data).</span>
      <h1 style="margin: 5px 0px 0px -5px; padding: 5px; font-size:
        20pt; line-height: 22pt; font-family: 'lucida sans', verdana,
        arial, sans-serif; color: rgb(2, 83, 143); clear: both;"><span
          style="color: rgb(0, 0, 0); font-family: Verdana; font-size:
          14px; font-weight: normal; line-height: 1.5;"> I have set "</span><span
          style="color: rgb(0, 0, 0); font-family: Verdana; font-size:
          14px; font-weight: normal; line-height: 1.5;">res@lbLabelStrings
            = ispan(1,ninfo,1)</span><span style="color: rgb(0, 0, 0);
          font-family: Verdana; font-size: 14px; font-weight: normal;
          line-height: 1.5;">",but the lable as shown </span><span
          style="color: rgb(0, 0, 0); font-family: Verdana; font-size:
          14px; font-weight: normal; line-height: 1.5;">from 2 to
          Lable_16 </span><span style="color: rgb(0, 0, 0);
          font-family: Verdana; font-size: 14px; font-weight: normal;
          line-height: 1.5;">in the attachment file(.png) .</span></h1>
      <div>You can see the details code in attachment file.</div>
      <div>why did this question occour?how should I write the code?<br>
        <h1 style="margin: 5px 0px 0px -5px; padding: 5px; font-size:
          20pt; line-height: 22pt; font-family: 'lucida sans', verdana,
          arial, sans-serif; color: rgb(2, 83, 143); clear: both;"><br>
          <span style="color: rgb(0, 0, 0); font-family: verdana,
            sans-serif; font-size: 13.3333px; font-weight: normal;
            line-height: 16px; background-color: rgb(255, 231, 198);"></span></h1>
        <div>
          <div class="mailcontainer" id="qqmail_mailcontainer">
            <div id="mainmail" style="position: relative; z-index: 1;
              margin-bottom: 12px;">
              <div id="contentDiv" class="body" style="line-height: 1.7;
                position: relative; height: auto; padding: 15px 15px
                10px; z-index: 1; zoom: 1;">
                <div id="qm_con_body">
                  <div id="mailContentContainer" class="qmbox
                    qm_con_body_content qqmail_webmail_only"
                    style="padding: 0px; height: auto; min-height:
                    100px; word-wrap: break-word; font-family: 'lucida
                    Grande', Verdana, 'Microsoft YaHei';">
                    <blockquote
cite="mid:57d8b589.46ac6b0a.67e93.4266SMTPIN_ADDED_MISSING@mx.google.com"
                      type="cite" style="line-height: 23.8px;">
                      <div class="WordSection1">
                        <pre style="line-height: 23.8px;"><span style="line-height: 23.8px; font-family: 'lucida Grande', Verdana, 'Microsoft YaHei';">Many thanks in advance</span></pre>
                      </div>
                    </blockquote>
                    <div class="mailcontainer" id="qqmail_mailcontainer"
                      style="line-height: 23.8px;">
                      <div id="mainmail" style="position: relative;
                        z-index: 1; margin-bottom: 12px;">
                        <div id="contentDiv" class="body"
                          style="line-height: 1.7; position: relative;
                          height: auto; padding: 15px 15px 10px;
                          z-index: 1; zoom: 1;">
                          <div id="qm_con_body">
                            <div id="mailContentContainer" class="qmbox
                              qm_con_body_content qqmail_webmail_only"
                              style="padding: 0px; height: auto;
                              min-height: 100px; word-wrap: break-word;">
                              <div class="mailcontainer"
                                id="qqmail_mailcontainer"
                                style="line-height: 23.8px;">
                                <div id="mainmail" style="position:
                                  relative; z-index: 1; margin-bottom:
                                  12px;">
                                  <div id="contentDiv" class="body"
                                    style="line-height: 1.7; position:
                                    relative; height: auto; padding:
                                    15px 15px 10px; z-index: 1; zoom:
                                    1;">
                                    <div id="qm_con_body">
                                      <div id="mailContentContainer"
                                        class="qmbox qm_con_body_content
                                        qqmail_webmail_only"
                                        style="padding: 0px; height:
                                        auto; min-height: 100px;
                                        word-wrap: break-word;">
                                        <blockquote
cite="mid:57d8b589.46ac6b0a.67e93.4266SMTPIN_ADDED_MISSING@mx.google.com"
                                          type="cite"
                                          style="line-height: 23.8px;">
                                          <div class="WordSection1">
                                            <pre style="line-height: 23.8px;"><span lang="EN-US">Regards<o:p></o:p></span></pre>
                                            <pre style="line-height: 23.8px;"><span lang="EN-US">Yan<o:p></o:p></span></pre>
                                            <pre style="line-height: 23.8px;"><span lang="EN-US">Shanghai Institute of Meteorology,China.</span></pre>
                                          </div>
                                        </blockquote>
                                      </div>
                                    </div>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <blockquote style="margin: 0.8em 0px 0.8em 2em; padding: 0px 0px
          0px 0.7em; border-left-width: 2px; border-left-style: solid;
          border-left-color: rgb(221, 221, 221);" formatblock="1"><br>
        </blockquote>
      </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>
  </body>
</html>