<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:16px"><div style="font-family: Calibri, Arial, Helvetica, sans-serif; margin: 0.1em 0px; padding: 0px;" id="yui_3_16_0_ym19_1_1480605433017_29234"><font face="HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif" size="2" id="yui_3_16_0_ym19_1_1480605433017_29235"><span style="font-size: 16px;" id="yui_3_16_0_ym19_1_1480605433017_29236">Dear NCL Group. </span></font></div><div style="font-family: Calibri, Arial, Helvetica, sans-serif; margin: 0.1em 0px; padding: 0px;" id="yui_3_16_0_ym19_1_1480605433017_29234"><font face="HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif" size="2"><span style="font-size: 16px;"><br></span></font></div><div style="font-family: Calibri, Arial, Helvetica, sans-serif; margin: 0.1em 0px; padding: 0px;" id="yui_3_16_0_ym19_1_1480605433017_29234"><font face="HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif" size="2" id="yui_3_16_0_ym19_1_1480605433017_29295"><span style="font-size: 16px;" id="yui_3_16_0_ym19_1_1480605433017_29294">my purpose is to find out connected pixels and name them as TS1. </span></font></div><div style="font-family: Calibri, Arial, Helvetica, sans-serif; margin: 0.1em 0px; padding: 0px;" id="yui_3_16_0_ym19_1_1480605433017_29237"><font face="HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif" size="2" id="yui_3_16_0_ym19_1_1480605433017_29238"><span style="font-size: 16px;" id="yui_3_16_0_ym19_1_1480605433017_29239">name another set of pixels as TS2 and so on. the details are here as below</span></font></div><div style="font-family: Calibri, Arial, Helvetica, sans-serif; margin: 0.1em 0px; padding: 0px;" id="yui_3_16_0_ym19_1_1480605433017_29240"><font face="HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif" size="2" id="yui_3_16_0_ym19_1_1480605433017_29241"><span style="font-size: 16px;" id="yui_3_16_0_ym19_1_1480605433017_29242"><br id="yui_3_16_0_ym19_1_1480605433017_29243"></span></font></div><div style="font-family: Calibri, Arial, Helvetica, sans-serif; margin: 0.1em 0px; padding: 0px;" id="yui_3_16_0_ym19_1_1480605433017_29244"><font face="HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif" size="2" id="yui_3_16_0_ym19_1_1480605433017_29245"><span style="font-size: 16px;" id="yui_3_16_0_ym19_1_1480605433017_29246">I have reflectivity data (3dim) which has been converted to 2 dim by taking the maxima in the vertical. then this data is again filtered based on another criterion and the final variable is maxZ_Conv which refers to the only convective pixels. This maxZ_Conv variable is a swath data with dimensions (9248x49). Now I have to find out the pixels which are connected. and name the group as TS1 or 1 or a. That means all the pixels which are connected/adjacent/or in the neighbourhood should be numbered as 1. </span></font></div><div style="font-family: Calibri, Arial, Helvetica, sans-serif; margin: 0.1em 0px; padding: 0px;" id="yui_3_16_0_ym19_1_1480605433017_29244"><font face="HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif" size="2"><span style="font-size: 16px;"><br></span></font></div><div style="font-family: Calibri, Arial, Helvetica, sans-serif; margin: 0.1em 0px; padding: 0px;" id="yui_3_16_0_ym19_1_1480605433017_29244" dir="ltr"><font face="HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif" size="2" id="yui_3_16_0_ym19_1_1480605433017_29350"><span style="font-size: 16px;" id="yui_3_16_0_ym19_1_1480605433017_29349">similarly for the 2nd group, all the pixels in group2 shhould be numberd as 2. </span></font></div><div style="font-family: Calibri, Arial, Helvetica, sans-serif; margin: 0.1em 0px; padding: 0px;" id="yui_3_16_0_ym19_1_1480605433017_29247"><font face="HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif" size="2" id="yui_3_16_0_ym19_1_1480605433017_29248"><span style="font-size: 16px;" id="yui_3_16_0_ym19_1_1480605433017_29249"><br id="yui_3_16_0_ym19_1_1480605433017_29250"></span></font></div><div style="font-family: Calibri, Arial, Helvetica, sans-serif; margin: 0.1em 0px; padding: 0px;" id="yui_3_16_0_ym19_1_1480605433017_29251"><font face="HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif" size="2" id="yui_3_16_0_ym19_1_1480605433017_29252"><span style="font-size: 16px;" id="yui_3_16_0_ym19_1_1480605433017_29253">The criterion for connectivity is as follows:</span></font></div><div style="font-family: Calibri, Arial, Helvetica, sans-serif; margin: 0.1em 0px; padding: 0px;" id="yui_3_16_0_ym19_1_1480605433017_29254"><font face="HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif" size="2" id="yui_3_16_0_ym19_1_1480605433017_29255"><span style="font-size: 16px;" id="yui_3_16_0_ym19_1_1480605433017_29256">I have to search for 8 points around the reference and see if they are adjacent/or in the neighbourhood, I am calling them as connected. Similarly I have to do for all the pixels. </span></font></div><div style="font-family: Calibri, Arial, Helvetica, sans-serif; margin: 0.1em 0px; padding: 0px;" id="yui_3_16_0_ym19_1_1480605433017_29257"><font face="HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif" size="2" id="yui_3_16_0_ym19_1_1480605433017_29258"><span style="font-size: 16px;" id="yui_3_16_0_ym19_1_1480605433017_29259"><br id="yui_3_16_0_ym19_1_1480605433017_29260"></span></font></div><div style="font-family: Calibri, Arial, Helvetica, sans-serif; margin: 0.1em 0px; padding: 0px;" id="yui_3_16_0_ym19_1_1480605433017_29261"><font face="HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif" size="2" id="yui_3_16_0_ym19_1_1480605433017_29262"><span style="font-size: 16px;" id="yui_3_16_0_ym19_1_1480605433017_29263">I have converted the maxZ_Conv to binary (variable name is maxZ_Convb) but because of the FillValue, the code is not working.. </span></font></div><div style="font-family: Calibri, Arial, Helvetica, sans-serif; margin: 0.1em 0px; padding: 0px;" id="yui_3_16_0_ym19_1_1480605433017_29261"><font face="HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif" size="2"><span style="font-size: 16px;"><br></span></font></div><div style="font-family: Calibri, Arial, Helvetica, sans-serif; margin: 0.1em 0px; padding: 0px;" id="yui_3_16_0_ym19_1_1480605433017_29261"><font face="HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif" size="2" id="yui_3_16_0_ym19_1_1480605433017_29361"><span style="font-size: 16px;" id="yui_3_16_0_ym19_1_1480605433017_29360">Kindly suggest if i am correct logically and I have attatched my code. </span></font></div><div style="margin: 0.1em 0px; padding: 0px;" id="yui_3_16_0_ym19_1_1480605433017_29261"><font face="HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif" id="yui_3_16_0_ym19_1_1480605433017_34238"><div style="margin: 0.1em 0px; padding: 0px;" id="yui_3_16_0_ym19_1_1480605433017_34194">(0)<span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1480605433017_34195">        </span>PT4 2939 29 9.969209968386869e+36</div><div style="margin: 0.1em 0px; padding: 0px;" id="yui_3_16_0_ym19_1_1480605433017_34196">(0)<span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1480605433017_34197">        </span>PT5 2940 29 9.969209968386869e+36</div><div style="margin: 0.1em 0px; padding: 0px;" id="yui_3_16_0_ym19_1_1480605433017_34198">(0)<span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1480605433017_34199">        </span>PT6 2941 29 1</div><div style="margin: 0.1em 0px; padding: 0px;" id="yui_3_16_0_ym19_1_1480605433017_34200">(0)<span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1480605433017_34201">        </span>PT7 2939 30 9.969209968386869e+36</div><div style="margin: 0.1em 0px; padding: 0px;" id="yui_3_16_0_ym19_1_1480605433017_34202">(0)<span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1480605433017_34203">        </span>PT8 2940 30 1</div><div style="margin: 0.1em 0px; padding: 0px;" id="yui_3_16_0_ym19_1_1480605433017_34204">(0)<span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1480605433017_34205">        </span>PT9 2941 30 9.969209968386869e+36</div><div style="margin: 0.1em 0px; padding: 0px;" id="yui_3_16_0_ym19_1_1480605433017_34206">(0)<span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1480605433017_34207">        </span>PT1 2939 29 9.969209968386869e+36</div><div style="margin: 0.1em 0px; padding: 0px;" id="yui_3_16_0_ym19_1_1480605433017_34208">(0)<span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1480605433017_34209">        </span>PT2 2940 29 9.969209968386869e+36</div><div style="margin: 0.1em 0px; padding: 0px;" id="yui_3_16_0_ym19_1_1480605433017_34210">(0)<span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1480605433017_34211">        </span>PT3 2941 29 1</div><div style="margin: 0.1em 0px; padding: 0px;" id="yui_3_16_0_ym19_1_1480605433017_34212">(0)<span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1480605433017_34213">        </span>PT4 2939 30 9.969209968386869e+36</div><div style="margin: 0.1em 0px; padding: 0px;" id="yui_3_16_0_ym19_1_1480605433017_34214">(0)<span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1480605433017_34215">        </span>PT5 2940 30 1</div><div style="margin: 0.1em 0px; padding: 0px;" id="yui_3_16_0_ym19_1_1480605433017_34216">(0)<span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1480605433017_34217">        </span>PT6 2941 30 9.969209968386869e+36</div><div style="margin: 0.1em 0px; padding: 0px;" id="yui_3_16_0_ym19_1_1480605433017_34218">(0)<span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1480605433017_34219">        </span>PT7 2939 31 9.969209968386869e+36</div><div style="margin: 0.1em 0px; padding: 0px;" id="yui_3_16_0_ym19_1_1480605433017_34220">(0)<span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1480605433017_34221">        </span>PT8 2940 31 9.969209968386869e+36</div><div style="margin: 0.1em 0px; padding: 0px;" id="yui_3_16_0_ym19_1_1480605433017_34222">(0)<span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1480605433017_34223">        </span>PT9 2941 31 9.969209968386869e+36</div><div style="margin: 0.1em 0px; padding: 0px;" id="yui_3_16_0_ym19_1_1480605433017_34224">fatal:The result of the conditional expression yields a missing value. NCL can not determine branch, see ismissing function</div><div style="margin: 0.1em 0px; padding: 0px;" id="yui_3_16_0_ym19_1_1480605433017_34225">fatal:["Execute.c":8578]:Execute: Error occurred at or near line 127 in file 2a25.080324.pix.count.ncl</div><div style="margin: 0.1em 0px; padding: 0px;" id="yui_3_16_0_ym19_1_1480605433017_34225"><br></div><div style="margin: 0.1em 0px; padding: 0px;" id="yui_3_16_0_ym19_1_1480605433017_34225" dir="ltr">I am also attaching the picture of the data interpreted by me. Kindly suggest how I should go about doing it. </div><div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; margin: 0.1em 0px; padding: 0px;" dir="ltr" id="yui_3_16_0_ym19_1_1480605433017_34226"><br id="yui_3_16_0_ym19_1_1480605433017_34227"></div></font></div><div dir="ltr" id="yui_3_16_0_ym19_1_1480605433017_29264"><br></div></div></body></html>