<div dir="ltr"><div>To me, the question is ambiguous. Are you looking for the subscripts and time/locations where _FillValue occur?<br><br><a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/ind.shtml">https://www.ncl.ucar.edu/Document/Functions/Built-in/ind.shtml</a><br><a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/ind_resolve.shtml">https://www.ncl.ucar.edu/Document/Functions/Built-in/ind_resolve.shtml</a><br><a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/ndtooned.shtml">https://www.ncl.ucar.edu/Document/Functions/Built-in/ndtooned.shtml</a><br><br></div>x(time,lat,lon) <br><div><br><pre>if (<a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/num.shtml"><strong>any</strong></a>(<b>ismissing</b>(x))) then<br> nmsg = num(ismissing(x))<br> print("nmsg="+nmsg)<br></pre><pre> x1D = <a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/ndtooned.shtml"><strong>ndtooned</strong></a>(x)
i1D = <a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/ind.shtml"><strong>ind</strong></a>(<b>ismissing</b>(x1D))
i = <strong>ind_resolve</strong>(i1D, <a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/dimsizes.shtml"><strong>dimsizes</strong></a>(x) ) <br> printVarSummary(i)<br><br> <a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/print.shtml"><strong> print</strong></a>(x&time(i(:,0)) +" "+ x&lat(i(:,1)) +" "+x&lon(i(:,2)) )
<a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/delete.shtml"><strong>delete</strong></a>([/ x1D, i1D/])) ; no longer needed<br>else<br></pre><pre> print("There are no _FillValue"))<br></pre><pre>end if</pre>--<br>Other possibly useful functions:<br><br><a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/where.shtml">https://www.ncl.ucar.edu/Document/Functions/Built-in/where.shtml</a><br><a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/ndtooned.shtml">https://www.ncl.ucar.edu/Document/Functions/Built-in/ndtooned.shtml</a><br>---<br><br></div><div>There is a very useful NCL tutorial at:<br><br><a href="https://www.ncl.ucar.edu/Document/Manuals/NCL_User_Guide/">https://www.ncl.ucar.edu/Document/Manuals/NCL_User_Guide/</a><br><br></div><div>Good luck<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 17, 2017 at 11:50 AM, Marston Johnston <span dir="ltr"><<a href="mailto:shejo284@gmail.com" target="_blank">shejo284@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="white" link="#0563C1" vlink="#954F72" lang="EN-GB"><div class="m_691837102526867555WordSection1"><p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri">Hi Nisha,<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri">It depends on what you mean by missing values. For example ncl “mask” can set a range or specific values to _FillValue and then NCl will ignore these values.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri">E.g: <u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri">a3d_FillValue = default_fillvalue("float")<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri">a3d = mask(a3d,a3d.eq.missing_value,<wbr>False) or a3d = mask(a3d,a3d.lt.value,False)<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri">printVarInfo(a3d,”a3d”) should give you the max and min excluding _FillValues.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri">This will mask out the 3d array for the range or value you dictate. <u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri">You can also use NCL where to do what you want.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri">Hope this helps,<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri">/M<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri"><u></u> <u></u></span></p><div><p class="MsoNormal"><span style="color:#0070c0">~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<u></u><u></u></span></p><p class="MsoNormal"><span style="color:#0070c0">Marston S. Johnston, PhD<u></u><u></u></span></p><p class="MsoNormal"><span style="color:#0070c0">Department of Earth Sciences<u></u><u></u></span></p><p class="MsoNormal"><span style="color:#0070c0">University of Gothenburg, Sweden<u></u><u></u></span></p><p class="MsoNormal"><span style="color:#0070c0">Email: <a href="mailto:marston.johnston@gu.se" target="_blank"><span style="color:#0070c0">marston.johnston@gu.se</span></a><u></u><u></u></span></p><p class="MsoNormal"><span style="color:#0070c0">SkypeID: marston.johnston <u></u><u></u></span></p><p class="MsoNormal"><span style="color:#0070c0">Phone: <a href="tel:+46%2031%20786%2049%2001" value="+46317864901" target="_blank">+46-31-7864901</a> <u></u><u></u></span></p><p class="MsoNormal"><span style="color:#0070c0">Only the fruitful thing is true!<u></u><u></u></span></p><p class="MsoNormal"><span style="color:#0070c0">~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<u></u><u></u></span></p></div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri"><u></u> <u></u></span></p><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="MsoNormal"><b><span style="font-family:Calibri;color:black">From: </span></b><span style="font-family:Calibri;color:black"><<a href="mailto:ncl-talk-bounces@ucar.edu" target="_blank">ncl-talk-bounces@ucar.edu</a>> on behalf of Manisha Ganeshan <<a href="mailto:manisha.ganeshan86@gmail.com" target="_blank">manisha.ganeshan86@gmail.com</a>><br><b>Date: </b>Wednesday, 17 May 2017 at 19:32<br><b>To: </b>NCL-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>><br><b>Subject: </b>[ncl-talk] missing values in multidimensional array<u></u><u></u></span></p></div><div><div class="h5"><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Hello NCLers,<u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Is there a function to find the missing values across a single dimension in a 3D array? I mean without going through a double do loop.<u></u><u></u></p></div><div><p class="MsoNormal"><br>Regards,<u></u><u></u></p></div><div><p class="MsoNormal">Nisha<br clear="all"><u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><p class="MsoNormal">-- <u></u><u></u></p><div><div><p class="MsoNormal">Dr. Manisha Ganeshan<u></u><u></u></p><div><p class="MsoNormal">Universities Space Research Association<u></u><u></u></p></div><div><p class="MsoNormal">Maryland, U.S.A.<u></u><u></u></p></div></div></div></div></div></div></div><p class="MsoNormal">______________________________<wbr>_________________ ncl-talk mailing list <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a> List instructions, subscriber options, unsubscribe: <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a> <u></u><u></u></p></div></div>
<br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>