<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Always include ncl-talk when you reply.<div class=""><br class=""></div><div class="">You can alternatively use the mask function, Example #6 on this page (<a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/mask.shtml" class="">https://www.ncl.ucar.edu/Document/Functions/Built-in/mask.shtml</a>) shows the case for 3-D or 4-D arrays.</div><div class=""><br class=""></div><div class="">Good luck <br class=""><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 29. Aug 2017, at 12:43, Dinuka Silva <<a href="mailto:dinu.kera@gmail.com" class="">dinu.kera@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class=""><div class="">Hi Guido,<br class=""></div>Thank you for your help. But how can I use the where function for three dimensional data because my SST data has three dimensions time, lat and lon. <br class=""><br class=""></div>Dinuka<br class=""> <br class=""></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Tue, Aug 29, 2017 at 5:06 PM, Guido Cioni <span dir="ltr" class=""><<a href="mailto:guidocioni@gmail.com" target="_blank" class="">guidocioni@gmail.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="">Hi,<div class="">if you have a _FillValue correctly set I would advise you to replace the data of SST in that box with missing values. It will keep the dimensionality but prevent you from using those data when computing the correlation.</div><div class="">You can use the where function (<a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/where.shtml" target="_blank" class="">https://www.ncl.ucar.edu/<wbr class="">Document/Functions/Built-in/<wbr class="">where.shtml</a>). Look at Example #3</div><div class=""><br class=""></div><div class="">Cheers</div><div class=""><br class=""><div class=""><div class=""><blockquote type="cite" class=""><div class=""><div class="h5"><div class="">On 29. Aug 2017, at 10:01, Dinuka Silva <<a href="mailto:dinu.kera@gmail.com" target="_blank" class="">dinu.kera@gmail.com</a>> wrote:</div><br class="m_3185813996508542849Apple-interchange-newline"></div></div><div class=""><div class=""><div class="h5"><div dir="ltr" class=""><span style="font-size:12.8px" class="">Hi all,</span><br class=""><div class=""><span style="font-size:12.8px" class=""><br class=""></span></div><div class=""><span style="font-size:12.8px" class="">I want to remove SST data of one box ({03N - 12N}, {90E- 140E}) and then find the correlation between remaining SST data and rainfall index. I want to know how can I remove the SST data of that box.</span></div><div class=""><span style="font-size:12.8px" class=""><br class=""></span></div><div class=""><span style="font-size:12.8px" class="">Thank you .</span><span style="font-size:12.8px" class=""><br class=""></span></div><div class=""><span style="font-size:12.8px" class=""><br class=""></span></div><div class=""><span style="font-size:12.8px" class="">Dinuka</span></div></div><div id="m_3185813996508542849DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" class=""><br class="">
<table style="border-top:1px solid #d3d4de" class="">
<tbody class=""><tr class="">
<td style="width:55px;padding-top:13px" class=""><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon" target="_blank" class=""><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" alt="" style="width:46px;height:29px" height="29" width="46" class=""></a></td>
<td style="width:470px;padding-top:12px;color:#41424e;font-size:13px;font-family:Arial,Helvetica,sans-serif;line-height:18px" class="">Virus-free. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link" style="color:#4453ea" target="_blank" class="">www.avast.com</a>
</td>
</tr>
</tbody></table><a width="1" height="1" class=""></a></div></div></div>
______________________________<wbr class="">_________________<br class="">ncl-talk mailing list<br class=""><a href="mailto:ncl-talk@ucar.edu" target="_blank" class="">ncl-talk@ucar.edu</a><br class="">List instructions, subscriber options, unsubscribe:<br class=""><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank" class="">http://mailman.ucar.edu/<wbr class="">mailman/listinfo/ncl-talk</a><span class="HOEnZb"><font color="#888888" class=""><br class=""></font></span></div></blockquote></div><span class="HOEnZb"><font color="#888888" class=""><br class=""><div class="">
<div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class=""><br class="m_3185813996508542849Apple-interchange-newline">Guido Cioni</div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class=""><a href="http://guidocioni.altervista/" target="_blank" class="">http://guidocioni.altervista</a>.<wbr class="">org</div>
</div>
<br class=""></font></span></div></div></div></blockquote></div><br class=""></div>
</div></blockquote></div><br class=""><div class="">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class="Apple-interchange-newline">Guido Cioni</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="http://guidocioni.altervista" class="">http://guidocioni.altervista</a>.org</div>
</div>
<br class=""></div></div></body></html>