<div dir="ltr"><div class="gmail_default" style="font-family:courier new,monospace;font-size:large">Dear NCL users,<br><br></div><div class="gmail_default" style="font-family:courier new,monospace;font-size:large">I am trying to get the indices of non-missing values from 1D array which looks like:<br><br>Variable: z<br>Type: float<br>Total Size: 112 bytes<br> 28 values<br>Number of Dimensions: 1<br>Dimensions and sizes: [28]<br>Coordinates: <br>Number Of Attributes: 1<br> _FillValue : 9.96921e+36<br>(0) 900<br>(1) 900<br>(2) 900<br>(3) 900<br>(4) 9.97e+36<br>(5) 900<br>(6) 900<br>(7) 900<br>(8) 9.97e+36<br>(9) 900<br>(10) 9.97e+36<br>(11) 900<br>(12) 9.97e+36<br>(13) 9.97e+36<br>(14) 9.97e+36<br>(15) 9.97e+36<br>(16) 9.97e+36<br>(17) 900<br>(18) 9.97e+36<br>(19) 9.97e+36<br>(20) 900<br>(21) 900<br>(22) 900<br>(23) 9.97e+36<br>(24) 9.97e+36<br>(25) 9.97e+36<br>(26) 9.97e+36<br>(27) 9.97e+36<br><br clear="all"></div><div class="gmail_default" style="font-family:courier new,monospace;font-size:large">So I used "ind0=ind(.not.ismissing(z))" and when I printed out "print(ind0)", I got this:<br><br>Variable: ind0<br>Type: integer<br>Total Size: 112 bytes<br> 28 values<br>Number of Dimensions: 1<br>Dimensions and sizes: [28]<br>Coordinates: <br>(0) 0<br>(1) 1<br>(2) 2<br>(3) 3<br>(4) 4<br>(5) 5<br>(6) 6<br>(7) 7<br>(8) 8<br>(9) 9<br>(10) 10<br>(11) 11<br>(12) 12<br>(13) 13<br>(14) 14<br>(15) 15<br>(16) 16<br>(17) 17<br>(18) 18<br>(19) 19<br>(20) 20<br>(21) 21<br>(22) 22<br>(23) 23<br>(24) 24<br>(25) 25<br>(26) 26<br>(27) 27<br><br></div><div class="gmail_default" style="font-family:courier new,monospace;font-size:large">But I am just looking for the indices of non-missing values in z.<br><br></div><div class="gmail_default" style="font-family:courier new,monospace;font-size:large">What's wrong with this?<br></div><br>-- <br><div class="gmail_signature"><div dir="ltr"><b style="font-size:small;font-family:tahoma,sans-serif"><font color="#000066"> </font><font color="#000066">COULIBALY </font><font color="#000066">AMADOU </font></b><br><span style="color:rgb(0,0,102);font-family:tahoma,sans-serif;font-size:small">PhD Student on West African Climate System (WACS)</span><br><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff">FUTA</font><font style="font-size:small;font-family:tahoma,sans-serif" color="#000066"> - </font><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff">F</font><font style="font-size:small;font-family:tahoma,sans-serif" color="#000066">ederal </font><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff">U</font><font style="font-size:small;font-family:tahoma,sans-serif" color="#000066">niversity of </font><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff">T</font><font style="font-size:small;font-family:tahoma,sans-serif" color="#000066">echnology of </font><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff">A</font><font style="font-size:small;font-family:tahoma,sans-serif" color="#000066">kure, Nigeria</font><div><font face="tahoma, sans-serif" size="2" color="#000066"><br></font><div><span style="color:rgb(76,17,48)"><span style="font-family:arial,helvetica,sans-serif"><i style="font-weight:bold">Visiting Student - </i></span><i style="font-weight:bold"><span style="font-family:arial,helvetica,sans-serif"><i><font size="1"><span style="font-size:13px">University of Cologne, Germany</span></font></i></span><br></i><i><span style="font-family:arial,helvetica,sans-serif">Institute of Geophysics and Meteorology</span></i><span style="font-family:arial,helvetica,sans-serif"><br></span></span><div style="letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px"><span style="color:rgb(76,17,48)"><span style="font-family:arial,helvetica,sans-serif"><font size="1">Pohligstr. 3 / Office 3.102</font></span></span></div><div style="letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px"><span style="color:rgb(76,17,48)"><span style="font-family:arial,helvetica,sans-serif"><font size="1">D-50969 Köln</font></span></span></div></div></div><div style="color:rgb(80,0,80)"><i style="color:rgb(34,34,34);font-family:"bookman old style","new york",times,serif"><font size="1"><span style="color:rgb(0,0,127)"><span style="font-size:13px"><br></span></span></font></i></div><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)"><u>Project</u>: </span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff">WASCAL</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)"> (</span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff">W</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)">est </span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff">A</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)">frican </span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff">S</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)">cience </span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff">S</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)">ervice </span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff">C</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)">entre on </span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff">C</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)">limate </span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff">C</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)">hange and </span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff">A</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)">dapted </span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff">L</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)">and Use) </span><br><font style="font-family:tahoma,sans-serif;font-size:small;color:rgb(0,0,102)" color="#000066">Phone:(+234) 810 795 2836 </font><font style="font-family:tahoma,sans-serif;font-size:small" color="#ff0000">/</font><font style="font-family:tahoma,sans-serif;font-size:small;color:rgb(0,0,102)" color="#000066">(+223) 65 67 27 57 </font><font style="font-family:tahoma,sans-serif;font-size:small" color="#ff0000">/</font><font style="font-family:tahoma,sans-serif;font-size:small;color:rgb(0,0,102)" color="#000066">(+226) 64 57 37 27 </font><font style="font-size:small;font-family:tahoma,sans-serif" color="#000066"><span style="color:rgb(34,34,34)"></span><font color="#ff0000">/</font></font><font style="font-family:tahoma,sans-serif;font-size:small;color:rgb(0,0,102)" color="#000066">+49 15218352574<br></font><div><p><font style="font-size:small;font-family:tahoma,sans-serif" color="#000066"></font></p><div style="text-align:left"><font style="font-size:small;font-family:tahoma,sans-serif" color="#000066"><font color="#000066">E-mail: </font><a href="mailto:mpapin24@gmail.com" style="color:rgb(0,0,255)" target="_blank">mpapin24@gmail.com</a><span style="color:rgb(34,34,34)"> </span><font color="#ff0000">/ </font><span style="color:rgb(0,0,255)"><a href="mailto:coulibalya68@yahoo.com" target="_blank">coulibalya68@yahoo.com</a> </span></font></div><p></p></div><div><font face="verdana,sans-serif" size="2"><p><font color="#ff9900">"<i>The time is always right to do right": <b>Nelson Mandela</b></i></font></p><p><i><font color="#ff9900">"Character is like a tree and reputation like a shadow. The shadow is what we think of it; the tree is the real thing" : <b>Abraham Lincoln</b></font></i></p><p><i><font color="#ff9900">"Do what you can, with what you have, where you are" <b>Theodore Roosevelt</b></font></i></p></font><p><b><font size="2" color="#000066"><i> </i></font></b></p><p><b><font size="4" color="#000066"> </font></b></p><div> </div></div></div></div>
</div>