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

+9 -1
View File
@@ -6,9 +6,17 @@ from matplotlib.ticker import FormatStrFormatter
from matplotlib.colors import LogNorm
import time
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 *
'''
2022-08-02: I don't understand the relation between the name of this script
and what happens within. It does seem to simulate a broadband PSF. And there's
also a phaseTilt function defined. Probably, I was testing out small phase tilts
to shift the PSF off-axis.
'''
def phaseTilt(x,y,tx,ty):
phaseTilt = x * np.tan(np.deg2rad(tx)) + y * np.tan(np.deg2rad(ty))
return phaseTilt