<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="">Dinuka, <div class="">don’t start new topic if the problem is always the same. People will get confused when they search for answers. </div><div class=""><br class=""></div><div class="">Did you check that your latitude and longitude are 2-D arrays? </div><div class="">The error is exactly telling you where the problem is.</div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">Il giorno 30 ago 2017, alle ore 07:30, Dinuka Silva <<a href="mailto:dinu.kera@gmail.com" class="">dinu.kera@gmail.com</a>> ha scritto:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div dir="ltr" class=""><span style="font-size:12.8px" class="">Hi all,</span><br class=""><div style="font-size:12.8px" class=""><span style="font-size:12.8px" class=""><br class=""></span></div><div style="font-size:12.8px" 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. SST data has 3 dimensions. I used mask function but I got error message. </span></div><div style="font-size:12.8px" class=""><span style="font-size:12.8px" class=""><br class=""></span></div><div class=""><div class=""><span style="font-size:12.8px" class="">x = fin2->sst(:,:,:)</span></div><div class=""><span style="font-size:12.8px" class=""><br class=""></span></div><div class=""><span style="font-size:12.8px" class=""> x@lat2d = fin2->latitude</span></div><div class=""><span style="font-size:12.8px" class=""> x@lon2d = fin2->longitude</span></div><div class=""><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=""> latMin = 03</span></div><div class=""><span style="font-size:12.8px" class=""> latMax = 12</span></div><div class=""><span style="font-size:12.8px" class=""> lonMin = 90</span></div><div class=""><span style="font-size:12.8px" class=""> lonMax = 140</span></div><div class=""><span style="font-size:12.8px" class=""><br class=""></span></div><div class=""><span style="font-size:12.8px" class=""> x = mask (x, conform(x, (<a href="mailto:x@lat2d.ge.latMin" class="">x@lat2d.ge.latMin</a> .<a href="mailto:and.x@lat2d.le.latMax" class="">and.x@lat2d.le.latMax</a> .<a href="mailto:and.x@lon2d.ge.lonMin" class="">and.x@lon2d.ge.lonMin</a> .<a href="mailto:and.x@lon2d.le.lonMax" class="">and.x@lon2d.le.lonMax</a>), (/1,2/)), True)</span></div><div class=""><span style="font-size:12.8px" class="">printVarSummary(x)</span></div><div class=""><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: inherit; font-family: 'Times New Roman';" class="">The error message : </span><font face="Times New Roman" size="3" class="">Dimension size, for dimension number 0, of operands does not match, can't continue</font><br class=""></div></div><div style="font-size:12.8px" class=""><span style="font-size:12.8px" class=""><br class=""></span></div><div style="font-size:12.8px" class=""><span style="font-size:12.8px" class=""><br class=""></span></div><div style="font-size:12.8px" class=""><span style="font-size:12.8px" class="">Thanks for your help.</span></div><div style="font-size:12.8px" class=""><span style="font-size:12.8px" class="">Dinuka</span><br class=""></div><div style="font-size:12.8px" class=""><span style="font-size:12.8px" class=""><br class=""></span></div></div></div><div id="DAB4FAD8-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="" width="46" height="29" style="width: 46px; height: 29px;" 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" target="_blank" style="color:#4453ea" class="">www.avast.com</a>
</td>
</tr>
</tbody></table><a href="x-msg://26/#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1" class=""></a></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>