I'm looking at this question: Efficient thresholding filter of an array with numpy
I have a similar problem, but with a two dimensional array, where several coordinates and values are stored in rows of a NumPy array. How I can do a similar filtering like in the question above?
My data looks like this:
>>> A.shape
(4269862, 5)
>>> A[0]
array([ 2.27011719e+02, 0.00000000e+00, 2.88134766e+02,
2.00000000e+00, 7.69880000e+04], dtype=float32)
And these values correspond to X, Y, Z and value1 and value2. What I want is to efficiently get eg. all rows with X in 300--400, Y in 200--250 and Z in 200--300.