<div dir="ltr"><span style="color:rgb(80,0,80);font-size:12.8px">Hi to all,</span><div><font color="#500050"><span style="font-size:12.8px"><br></span></font></div><div><font color="#500050"><span style="font-size:12.8px">I'm new to this list and to scipy!</span></font></div><div><font color="#500050"><span style="font-size:12.8px">I have a question for you....<br></span></font><div style="color:rgb(80,0,80);font-size:12.8px"><br></div><div style="color:rgb(80,0,80);font-size:12.8px">I use pdal to elaborate las files (lidar data).</div><div style="color:rgb(80,0,80);font-size:12.8px">As result of elaboration I have a ndarray like this:<br></div><div style="color:rgb(80,0,80);font-size:12.8px"><br></div><div><font color="#500050"><span style="font-size:12.8px">[( 626708.60087012,  4481781.14910498,  7.478, 0, 2, 2, 1, 0, 4, -11., 0, 0,  0.,  7.478),( 626708.34087012,  4481780.92910498,  5.418, 0, 2, 3, 1, 0, 4, -11., 0, 0,  0.,  5.418)</span></font><span style="font-size:12.8px;color:rgb(80,0,80)">,....]</span></div><div><font color="#500050"><span style="font-size:12.8px"><br></span></font></div><div><font color="#500050"><span style="font-size:12.8px">the name of dimensions are:</span></font></div><div style="color:rgb(80,0,80);font-size:12.8px"><div style="font-size:12.8px"> (u'X', u'Y', u'Z', u'Intensity', u'ReturnNumber', u'NumberOfReturns', u'ScanDirectionFlag', u'EdgeOfFlightLine', u'Classification', u'ScanAngleRank', u'UserData', u'PointSourceId', u'GpsTime', u'HeightAboveGround')</div><div><br></div></div><div style="color:rgb(80,0,80);font-size:12.8px">I want to split this array in two subarray: the first with element that have ReturnNumber (fifth value) dimension = 1 and the second with all others elements.</div><div style="color:rgb(80,0,80);font-size:12.8px"><br></div><div style="color:rgb(80,0,80);font-size:12.8px"><br></div><div style="color:rgb(80,0,80);font-size:12.8px">There is an efficient way to do this?</div><div style="color:rgb(80,0,80);font-size:12.8px">Thanks.</div><div><br></div><div>Giuseppe</div><span class="gmail-m_2109313061099817907HOEnZb" style="color:rgb(80,0,80);font-size:12.8px"><font color="#888888"></font></span></div></div>