Add sense to distance calculation: before "if len(np.shape(WD_il)) == 1" was...
Add sense to distance calculation: before "if len(np.shape(WD_il)) == 1" was used to see if dst_idx depended on wind direction, which makes no sense and only worked due to inconsistent call