Lets say I have an array of data, and 3 other arrays corresponding to the x,y, and z location of each data point in space
data = np.random.random(10000)
x = np.random.random(10000)
y = np.random.random(10000)
z = np.random.random(10000)
Now, I want to get a subset of the data points which meet some criteria.
Specifically, I want the subset of data points which
a) have a value greater than some threshold t1
b) are greater than distance d
away from data points which have a value greater than t2
What is an efficient way of going about doing this?