[SciPy-User] filtering object

Giuseppe Falcone falcone.giuseppe at gmail.com
Mon Oct 2 09:26:26 EDT 2017


Hi to all,

I'm new to this list and to scipy!
I have a question for you....

I use pdal to elaborate las files (lidar data).
As result of elaboration I have a ndarray like this:

[( 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),....]

the name of dimensions are:
 (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')

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.


There is an efficient way to do this?
Thanks.

Giuseppe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-user/attachments/20171002/b0558243/attachment.html>


More information about the SciPy-User mailing list