More debugging. Temporarily disabled phase shifting

This commit is contained in:
Guilhem Lavaux 2014-06-03 12:35:58 +02:00
parent 7662ea98d4
commit 8f582707da
4 changed files with 51 additions and 17 deletions

View file

@ -9,6 +9,7 @@ def fourier_analysis(borg_vol):
def half_pixel_shift(borg):
dhat,L,N = fourier_analysis(borg)
return dhat, L
ik = np.fft.fftfreq(N,d=L/N)*2*np.pi
phi = 0.5*L/N*(ik[:,None,None]+ik[None,:,None]+ik[None,None,:(N/2+1)])