I,m trying to calculate the shortest distance between a collection of points and a line segment. Everything goes well untill it has to calculate the distance using values from two sets of arrays one for the x distances and one for the y distances.
The line for calculating the distance is:
d = np.sqrt( dx**2 + dy**2 ).
It tells me that::
ValueError: operands could not be broadcast together with shapes (3312,) (0,)
I've used the script before with another set of values and it works perfectly. But now it does not any more. And I tried tot find the meaning of the error message but have not been successful so far. Can someone help?