mirror of
https://github.com/yosata/fourierOptics.git
synced 2026-10-29 20:51:10 +00:00
Added descriptions to all scripts, checked functioning
This commit is contained in:
1 parent
9ce4b7045f
commit
7cbaec6ff9
48 files changed
+262
-255
No files matched your search
@@ -16,9 +16,19 @@ import time
|
||||
from math import ceil
|
||||
import sys
|
||||
from mpl_toolkits import mplot3d
|
||||
sys.path.insert(0, '../../')
|
||||
# sys.path.insert(0, '../../')
|
||||
sys.path.insert(0, '/Users/joost/Dropbox/Werk/PhD/Documents/Published/FourierOptics GitHub release/')
|
||||
import fourierOptics as fouOpt
|
||||
|
||||
'''
|
||||
Description: Old script when I was trying to make propagation to off-axis parabolic mirrors
|
||||
work in 3D. This was based on papers by Matsushima (around 2004, I believe).
|
||||
The script is currently broken.
|
||||
If you get this to work, please do let me know!
|
||||
Contact: born@astron.nl
|
||||
'''
|
||||
|
||||
|
||||
|
||||
|
||||
class FourierOptics:
|
||||
@@ -384,8 +394,8 @@ if __name__ == '__main__':
|
||||
U_in = A
|
||||
|
||||
# sys.exit()
|
||||
Exyz,x4l,y4l = fouOpt_norm.plane_wave_propagation(A, dz=4*l, dpix=dpix, oversample=None, show=True)
|
||||
fou.coordinate_rotation(45,20)
|
||||
# Exyz,x4l,y4l = fouOpt_norm.plane_wave_propagation(A, dz=4*l, dpix=dpix, oversample=None, show=True)
|
||||
# fou.coordinate_rotation(45,20)
|
||||
# _E_res_abs = np.abs(A_at_z4l)/np.max(np.abs(A_at_z4l)) - np.abs(Exyz)/np.max(np.abs(Exyz))
|
||||
# _E_res_ang = np.angle(A_at_z4l)/np.max(np.angle(A_at_z4l)) - np.angle(Exyz)/np.max(np.angle(Exyz))
|
||||
|
||||
@@ -409,7 +419,7 @@ if __name__ == '__main__':
|
||||
# # plt.show()/
|
||||
# plt.close()
|
||||
|
||||
Erot2,x,y = fou.plane_wave_propagation_rotation(Exyz, dpix=dpix, Rx=45, Ry=20, oversample=None, show=True)#, save='p2p_gauss_Rx45_Ry45.png')
|
||||
Erot2,x,y = fou.plane_wave_propagation_rotation(A, dpix=dpix, Rx=45, Ry=20, oversample=None, show=True)#, save='p2p_gauss_Rx45_Ry45.png')
|
||||
|
||||
'''
|
||||
# Compare phase to gaussian analysis.
|
||||
|
||||
Reference in new issue
Block a user