Added descriptions to all scripts, checked functioning

This commit is contained in:
yosata committed 2022-08-02 20:01:24 +02:00
1 parent 9ce4b7045f
commit 7cbaec6ff9
48 files changed
+262 -255

No files matched your search

+5 -3
View File
@@ -5,13 +5,15 @@ import matplotlib.pyplot as plt
from matplotlib.ticker import FormatStrFormatter
from matplotlib.colors import LogNorm
import sys
sys.path.insert(0, '/Users/joost/Dropbox/Werk/PhD/Analyses/Python/Analytical/Fourier Optics')
sys.path.insert(0, '/Users/joost/Dropbox/Werk/PhD/Documents/Published/FourierOptics GitHub release/')
from fourierOptics import *
'''
@ Author: Joost van den Born
@ Desc.: Importing a grid sag file and scaling it appropriately
2022-08-02: Old script. Currently broken.
'''
class surface:
@@ -80,7 +82,7 @@ if __name__ == '__main__':
oC = [x.min(), x.max(), y.min(), y.max()]
# Add PSD wavefront error to the lens
wfe = WavefrontError()
wfe = WavefrontError(n,m)
h_data = wfe.generate_height_map(1e-2, 2, 1, n, m)
PSDSurface = surface(h_data)
@@ -151,7 +153,7 @@ if __name__ == '__main__':
r_moffat = np.sqrt(x0_moffat**2+y0_moffat**2)
r_err_moffat = np.sqrt( (x0_moffat**2*x0_moffat_err**2+y0_moffat**2*y0_moffat_err**2) / (x0_moffat**2+y0_moffat**2))
set_trace()
# set_trace()
fig = plt.figure()
ax1 = fig.add_subplot(121)