コード例 #1
0
ファイル: pea.py プロジェクト: FacundoGFlores/golsoft
 def phase_corrected(self):
     """
     Try to ammend the spherical wave front curvature.
     """
     if self.phase_correct:
         print("Double phase correcting")
         phase = (self.phase - get_fitted_paraboloid(self.phase)) % tau
         phase = (phase - get_fitted_paraboloid(phase)) % tau
         wrapped, phase = align_phase(phase)
         return phase
     else:
         return self.phase
コード例 #2
0
ファイル: pea.py プロジェクト: FacundoGFlores/golsoft
 def phase_corrected(self):
     """
     Try to ammend the spherical wave front curvature.
     """
     if self.phase_correct:
         print("Double phase correcting")
         phase = (self.phase - get_fitted_paraboloid(self.phase)) % tau
         phase = (phase - get_fitted_paraboloid(phase)) % tau
         wrapped, phase = align_phase(phase)
         return phase
     else:
         return self.phase
コード例 #3
0
ファイル: dft.py プロジェクト: FacundoGFlores/golsoft
 def get_partial_phase(max_value):
     mask = spectrum >= max_value
     masked = spectrum * mask
     phase = get_phase(get_shifted_idft(masked))
     paraboloid = get_fitted_paraboloid(phase)
     phase -= paraboloid
     return paraboloid, phase % tau
コード例 #4
0
ファイル: dft.py プロジェクト: FacundoGFlores/golsoft
 def get_partial_phase(max_value):
     mask = spectrum >= max_value
     masked = spectrum * mask
     phase = get_phase(get_shifted_idft(masked))
     paraboloid = get_fitted_paraboloid(phase)
     phase -= paraboloid
     return paraboloid, phase % tau