def phases(self): """ dftvector.phases(): Return the accumulated phase (radians) of dftvector.vector. The phases are corrected to contain no discontinuities. The phase of the first vector component (0.0, 0.0) is _not_ returned. """ phases = umath.arctan2(self.vector.imag, self.vector.real) return smooth_phases(phases)
def vector_phase(vector): return umath.arctan2(vector[-1].imag, vector[-1].real)
def rzw_phase_model(przw, self): przw = przw * Numeric.array([1.0, 1.0, 4.0, 20.0]) corrvect = add_components(self.rotate(-self.rzw_phases(przw))) phases = umath.arctan2(corrvect.imag, corrvect.real) weights = self.timefract return weights * smooth_phases(phases)