A Deterministic Method To Detect Wave Directions From Surface Elevations