A practical method for determining ocean currents