Commit c1452b4d authored by Leon Merten Lohse's avatar Leon Merten Lohse
Browse files

add mask again

parent d9372cd1
Pipeline #181966 passed with stages
in 1 minute and 44 seconds
...@@ -24,13 +24,13 @@ def rayleighSommerfeldTF(shape, dperp, k, dz): ...@@ -24,13 +24,13 @@ def rayleighSommerfeldTF(shape, dperp, k, dz):
f = fftfreqn(shape, dperp) # spatial frequencies f = fftfreqn(shape, dperp) # spatial frequencies
f2 = squaresum(f) f2 = squaresum(f)
# mask = f2 < 1 / wl mask = f2 < 1 / wl
# phasechirp = np.sqrt(1 - wl ** 2 * (mask * f2)) phasechirp = np.sqrt(1 - wl ** 2 * (mask * f2))
phasechirp = np.sqrt(1 - wl ** 2 * f2) # phasechirp = np.sqrt(1 - wl ** 2 * f2)
# TF = mask * np.exp(1j * k * dz * phasechirp) TF = mask * np.exp(1j * k * dz * phasechirp)
TF = np.exp(1j * k * dz * phasechirp) # TF = np.exp(1j * k * dz * phasechirp)
return TF return TF
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment