<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Based on that print out of Z it looks like the fill values have been truncated in some way, so NCL is no longer recognising them as missing.&nbsp;<div class=""><br class=""></div><div class="">Heres how fill values look to me when I print.&nbsp;</div><div class=""><br class=""></div><div class=""><div class="">Variable: x</div><div class="">Type: float</div><div class="">Total Size: 40 bytes</div><div class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 10 values</div><div class="">Number of Dimensions: 1</div><div class="">Dimensions and sizes:<span class="Apple-tab-span" style="white-space:pre">        </span>[10]</div><div class="">Coordinates:</div></div><div class=""><div class="">&nbsp; _FillValue :<span class="Apple-tab-span" style="white-space:pre">        </span>9.96921e+36</div><div class="">(0)<span class="Apple-tab-span" style="white-space:pre">        </span>9.96921e+36</div><div class="">(1)<span class="Apple-tab-span" style="white-space:pre">        </span>9.96921e+36</div><div class="">(2)<span class="Apple-tab-span" style="white-space:pre">        </span>9.96921e+36</div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">To fix the problem, you could do something along the lines of:</div><div class="">z = where( z .gt. 1e+35, z@_FillValue, z) &nbsp; &nbsp;; &nbsp;set anything greater than a ridiculously large number to FillValue.&nbsp;</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Why you have the problem is a different question and requires more investigation as to where the data came from and what you have done to it that may had caused this. &nbsp;</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Good luck,&nbsp;</div><div class=""><span class="Apple-tab-span" style="white-space:pre">        </span>Alan Brammer.&nbsp;</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 18 Nov 2015, at 01:40, Amadou Coulibaly &lt;<a href="mailto:mpapin24@gmail.com" class="">mpapin24@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="gmail_default" style="font-family:courier new,monospace;font-size:large">Dear NCL users,<br class=""><br class=""></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 class=""><br class="">Variable: z<br class="">Type: float<br class="">Total Size: 112 bytes<br class="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 28 values<br class="">Number of Dimensions: 1<br class="">Dimensions and sizes:&nbsp;&nbsp;&nbsp; [28]<br class="">Coordinates: <br class="">Number Of Attributes: 1<br class="">&nbsp; _FillValue :&nbsp;&nbsp;&nbsp; 9.96921e+36<br class="">(0)&nbsp;&nbsp;&nbsp; 900<br class="">(1)&nbsp;&nbsp;&nbsp; 900<br class="">(2)&nbsp;&nbsp;&nbsp; 900<br class="">(3)&nbsp;&nbsp;&nbsp; 900<br class="">(4)&nbsp;&nbsp;&nbsp; 9.97e+36<br class="">(5)&nbsp;&nbsp;&nbsp; 900<br class="">(6)&nbsp;&nbsp;&nbsp; 900<br class="">(7)&nbsp;&nbsp;&nbsp; 900<br class="">(8)&nbsp;&nbsp;&nbsp; 9.97e+36<br class="">(9)&nbsp;&nbsp;&nbsp; 900<br class="">(10)&nbsp;&nbsp;&nbsp; 9.97e+36<br class="">(11)&nbsp;&nbsp;&nbsp; 900<br class="">(12)&nbsp;&nbsp;&nbsp; 9.97e+36<br class="">(13)&nbsp;&nbsp;&nbsp; 9.97e+36<br class="">(14)&nbsp;&nbsp;&nbsp; 9.97e+36<br class="">(15)&nbsp;&nbsp;&nbsp; 9.97e+36<br class="">(16)&nbsp;&nbsp;&nbsp; 9.97e+36<br class="">(17)&nbsp;&nbsp;&nbsp; 900<br class="">(18)&nbsp;&nbsp;&nbsp; 9.97e+36<br class="">(19)&nbsp;&nbsp;&nbsp; 9.97e+36<br class="">(20)&nbsp;&nbsp;&nbsp; 900<br class="">(21)&nbsp;&nbsp;&nbsp; 900<br class="">(22)&nbsp;&nbsp;&nbsp; 900<br class="">(23)&nbsp;&nbsp;&nbsp; 9.97e+36<br class="">(24)&nbsp;&nbsp;&nbsp; 9.97e+36<br class="">(25)&nbsp;&nbsp;&nbsp; 9.97e+36<br class="">(26)&nbsp;&nbsp;&nbsp; 9.97e+36<br class="">(27)&nbsp;&nbsp;&nbsp; 9.97e+36<br class=""><br clear="all" class=""></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 class=""><br class="">Variable: ind0<br class="">Type: integer<br class="">Total Size: 112 bytes<br class="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 28 values<br class="">Number of Dimensions: 1<br class="">Dimensions and sizes:&nbsp;&nbsp;&nbsp; [28]<br class="">Coordinates: <br class="">(0)&nbsp;&nbsp;&nbsp; 0<br class="">(1)&nbsp;&nbsp;&nbsp; 1<br class="">(2)&nbsp;&nbsp;&nbsp; 2<br class="">(3)&nbsp;&nbsp;&nbsp; 3<br class="">(4)&nbsp;&nbsp;&nbsp; 4<br class="">(5)&nbsp;&nbsp;&nbsp; 5<br class="">(6)&nbsp;&nbsp;&nbsp; 6<br class="">(7)&nbsp;&nbsp;&nbsp; 7<br class="">(8)&nbsp;&nbsp;&nbsp; 8<br class="">(9)&nbsp;&nbsp;&nbsp; 9<br class="">(10)&nbsp;&nbsp;&nbsp; 10<br class="">(11)&nbsp;&nbsp;&nbsp; 11<br class="">(12)&nbsp;&nbsp;&nbsp; 12<br class="">(13)&nbsp;&nbsp;&nbsp; 13<br class="">(14)&nbsp;&nbsp;&nbsp; 14<br class="">(15)&nbsp;&nbsp;&nbsp; 15<br class="">(16)&nbsp;&nbsp;&nbsp; 16<br class="">(17)&nbsp;&nbsp;&nbsp; 17<br class="">(18)&nbsp;&nbsp;&nbsp; 18<br class="">(19)&nbsp;&nbsp;&nbsp; 19<br class="">(20)&nbsp;&nbsp;&nbsp; 20<br class="">(21)&nbsp;&nbsp;&nbsp; 21<br class="">(22)&nbsp;&nbsp;&nbsp; 22<br class="">(23)&nbsp;&nbsp;&nbsp; 23<br class="">(24)&nbsp;&nbsp;&nbsp; 24<br class="">(25)&nbsp;&nbsp;&nbsp; 25<br class="">(26)&nbsp;&nbsp;&nbsp; 26<br class="">(27)&nbsp;&nbsp;&nbsp; 27<br class=""><br class=""></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 class=""><br class=""></div><div class="gmail_default" style="font-family:courier new,monospace;font-size:large">What's wrong with this?<br class=""></div><br class="">-- <br class=""><div class="gmail_signature"><div dir="ltr" class=""><b style="font-size:small;font-family:tahoma,sans-serif" class=""><font color="#000066" class="">&nbsp;</font><font color="#000066" class="">COULIBALY &nbsp;&nbsp;</font><font color="#000066" class="">AMADOU &nbsp;&nbsp;</font></b><br class=""><span style="color:rgb(0,0,102);font-family:tahoma,sans-serif;font-size:small" class="">PhD&nbsp; Student &nbsp;on&nbsp; West&nbsp; African&nbsp; Climate&nbsp; System (WACS)</span><br class=""><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">FUTA</font><font style="font-size:small;font-family:tahoma,sans-serif" color="#000066" class=""> -&nbsp;</font><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">F</font><font style="font-size:small;font-family:tahoma,sans-serif" color="#000066" class="">ederal&nbsp; </font><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">U</font><font style="font-size:small;font-family:tahoma,sans-serif" color="#000066" class="">niversity&nbsp; of&nbsp; </font><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">T</font><font style="font-size:small;font-family:tahoma,sans-serif" color="#000066" class="">echnology of&nbsp;</font><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">A</font><font style="font-size:small;font-family:tahoma,sans-serif" color="#000066" class="">kure, Nigeria</font><div class=""><font face="tahoma, sans-serif" size="2" color="#000066" class=""><br class=""></font><div class=""><span style="color:rgb(76,17,48)" class=""><span style="font-family:arial,helvetica,sans-serif" class=""><i style="font-weight:bold" class="">Visiting Student - </i></span><i style="font-weight:bold" class=""><span style="font-family:arial,helvetica,sans-serif" class=""><i class=""><font size="1" class=""><span style="font-size:13px" class="">University of Cologne, Germany</span></font></i></span><br class=""></i><i class=""><span style="font-family:arial,helvetica,sans-serif" class="">Institute of Geophysics and Meteorology</span></i><span style="font-family:arial,helvetica,sans-serif" class=""><br class=""></span></span><div style="letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px" class=""><span style="color:rgb(76,17,48)" class=""><span style="font-family:arial,helvetica,sans-serif" class=""><font size="1" class="">Pohligstr. 3 / Office 3.102</font></span></span></div><div style="letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px" class=""><span style="color:rgb(76,17,48)" class=""><span style="font-family:arial,helvetica,sans-serif" class=""><font size="1" class="">D-50969 Köln</font></span></span></div></div></div><div style="color:rgb(80,0,80)" class=""><i style="color:rgb(34,34,34);font-family:&quot;bookman old style&quot;,&quot;new york&quot;,times,serif" class=""><font size="1" class=""><span style="color:rgb(0,0,127)" class=""><span style="font-size:13px" class=""><br class=""></span></span></font></i></div><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)" class=""><u class="">Project</u>: </span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">WASCAL</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)" class=""> (</span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">W</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)" class="">est </span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">A</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)" class="">frican </span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">S</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)" class="">cience </span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">S</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)" class="">ervice </span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">C</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)" class="">entre on </span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">C</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)" class="">limate </span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">C</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)" class="">hange and </span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">A</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)" class="">dapted </span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">L</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)" class="">and Use)&nbsp;</span><br class=""><font style="font-family:tahoma,sans-serif;font-size:small;color:rgb(0,0,102)" color="#000066" class="">Phone:(+234) 810 795 2836&nbsp;</font><font style="font-family:tahoma,sans-serif;font-size:small" color="#ff0000" class="">/</font><font style="font-family:tahoma,sans-serif;font-size:small;color:rgb(0,0,102)" color="#000066" class="">(+223) 65 67 27 57&nbsp;</font><font style="font-family:tahoma,sans-serif;font-size:small" color="#ff0000" class="">/</font><font style="font-family:tahoma,sans-serif;font-size:small;color:rgb(0,0,102)" color="#000066" class="">(+226) 64 57 37 27 </font><font style="font-size:small;font-family:tahoma,sans-serif" color="#000066" class=""><span style="color:rgb(34,34,34)" class=""></span><font color="#ff0000" class="">/</font></font><font style="font-family:tahoma,sans-serif;font-size:small;color:rgb(0,0,102)" color="#000066" class="">+49 15218352574<br class=""></font><div class=""><div class=""><font style="font-size:small;font-family:tahoma,sans-serif" color="#000066" class=""></font><br class="webkit-block-placeholder"></div><div style="text-align:left" class=""><font style="font-size:small;font-family:tahoma,sans-serif" color="#000066" class=""><font color="#000066" class="">E-mail:&nbsp;</font><a href="mailto:mpapin24@gmail.com" style="color:rgb(0,0,255)" target="_blank" class="">mpapin24@gmail.com</a><span style="color:rgb(34,34,34)" class="">&nbsp;</span><font color="#ff0000" class="">/&nbsp;</font><span style="color:rgb(0,0,255)" class=""><a href="mailto:coulibalya68@yahoo.com" target="_blank" class="">coulibalya68@yahoo.com</a>&nbsp;</span></font></div><div class=""><br class="webkit-block-placeholder"></div></div><div class=""><font face="verdana,sans-serif" size="2" class=""><p class=""><font color="#ff9900" class="">"<i class="">The time is always right to do right": <b class="">Nelson Mandela</b></i></font></p><p class=""><i class=""><font color="#ff9900" class="">"Character is like a tree and reputation like a shadow.&nbsp; The shadow is what we think of it; the tree is the real thing" : <b class="">Abraham Lincoln</b></font></i></p><p class=""><i class=""><font color="#ff9900" class="">"Do what you can, with what you have, where you are" <b class="">Theodore Roosevelt</b></font></i></p></font><p class=""><b class=""><font size="2" color="#000066" class=""><i class="">&nbsp;</i></font></b></p><p class=""><b class=""><font size="4" color="#000066" class="">&nbsp;</font></b></p><div class="">&nbsp;</div></div></div></div>
</div>
_______________________________________________<br class="">ncl-talk mailing list<br class=""><a href="mailto:ncl-talk@ucar.edu" class="">ncl-talk@ucar.edu</a><br class="">List instructions, subscriber options, unsubscribe:<br class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk<br class=""></div></blockquote></div><br class=""></div></body></html>