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
@@ -1,14 +1,19 @@
|
||||
#!/usr/bin/env Python3
|
||||
import numpy as np
|
||||
from pdb import set_trace
|
||||
import json
|
||||
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 *
|
||||
|
||||
'''
|
||||
Description: Script that compares the Maréchal criterion to the Strehl of the PSF experiencing
|
||||
a WFE with some RMS in the pupil. This script would form the basis for one of the
|
||||
SPIE 2020 results.
|
||||
'''
|
||||
|
||||
def saveVariableToTXT(variable, filename):
|
||||
variableFile = open(filename, 'w')
|
||||
|
||||
@@ -110,7 +115,6 @@ if __name__ == '__main__':
|
||||
Exyz_zern,xp,yp = fou.fresnel_propagation(U_in, x, y, dz=M1.f, show=False, outputCoordinates=oC)
|
||||
Strehl_zern = np.abs(psf.get_coupling(Exyz_og, Exyz_zern))**2
|
||||
|
||||
set_trace()
|
||||
StrehlList_zern.append(Strehl_zern)
|
||||
|
||||
####################################
|
||||
|
||||
Reference in new issue
Block a user