<div dir="ltr">Dear Karin,<div><br></div><div>I meant multiple first index in the sequence. Your example is only work for the</div><div>first index in the first sequence. The values -999 separated each sequence.</div><div>Can you suggest me something?</div><div><br></div><div>Xi<br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, May 6, 2017 at 8:25 AM, Karin Meier-Fleischer <span dir="ltr"><<a href="mailto:meier-fleischer@dkrz.de" target="_blank">meier-fleischer@dkrz.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div>Hi Xi,</div><div id="m_1803241675343434387AppleMailSignature"><br></div><div id="m_1803241675343434387AppleMailSignature">I think you want to do something like<span class=""><br><br><blockquote type="cite"><div dir="ltr"><div><font color="#000000"><span style="background-color:rgba(255,255,255,0)">x=(/2.1, 3.2, 4.3, -999, -999, 7.6, 8.7, 9.8/)</span></font></div><div><font color="#000000"><span style="background-color:rgba(255,255,255,0)">x@_FillValue=-999</span></font></div></div></blockquote><div id="m_1803241675343434387AppleMailSignature"><br></div></span><div id="m_1803241675343434387AppleMailSignature">first_index = x(0)</div><div id="m_1803241675343434387AppleMailSignature">print(x(0))</div><br>Bye,</div><div id="m_1803241675343434387AppleMailSignature">Karin<br><div><br></div></div><div><div class="h5"><div><br>Am 05.05.2017 um 17:48 schrieb Xi Chang <<a href="mailto:xi.chang01@gmail.com" target="_blank">xi.chang01@gmail.com</a>>:<br><br></div><blockquote type="cite"><div><div dir="ltr">Dear NCL,<div><br></div><div>Could you suggest me how to get the first index in the sequence?</div><div>for instance:</div><div><br></div><div>x=<span style="color:rgb(0,0,0);font-family:courier;font-size:13.3333px">(/2.1, 3.2, 4.3, -999, -999, 7.6, 8.7, 9.8/)</span></div><div><span style="color:rgb(0,0,0);font-family:courier;font-size:13.3333px">x@_FillValue=-999</span></div><div><span style="color:rgb(0,0,0);font-family:courier;font-size:13.3333px"><br></span></div><div><span style="color:rgb(0,0,0);font-family:courier;font-size:13.3333px">the first index in the sequence will be</span></div><div><span style="color:rgb(0,0,0);font-family:courier;font-size:13.3333px">(0) 2.1 and</span></div><div><span style="color:rgb(0,0,0);font-family:courier;font-size:13.3333px">(5) 7.6</span></div><div><span style="color:rgb(0,0,0);font-family:courier;font-size:13.3333px"><br></span></div><div><span style="color:rgb(0,0,0);font-family:courier;font-size:13.3333px">I do appreaciate for your help.</span></div><div><span style="color:rgb(0,0,0);font-family:courier;font-size:13.3333px"><br></span></div><div><span style="color:rgb(0,0,0);font-family:courier;font-size:13.3333px">Best,</span></div><div><font color="#000000" face="courier"><span style="font-size:13.3333px">Xi</span></font></div></div>
</div></blockquote></div></div><blockquote type="cite"><div><span>______________________________<wbr>_________________</span><br><span>ncl-talk mailing list</span><br><span><a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a></span><br><span>List instructions, subscriber options, unsubscribe:</span><br><span><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a></span><br></div></blockquote></div></blockquote></div><br></div></div></div>