Text this: Array gain and phase calibration in the presence of multipath based on weighted spatial smoothing