Files
fourierOptics/demonstration scripts/generate_propagation_figures.py

21 lines
615 B
Python

import numpy as np
import sys
sys.path.insert(0, '/Users/joost/Dropbox/Werk/PhD/Documents/Published/FourierOptics GitHub release/')
from fourierOptics import *
import matplotlib.pyplot as plt
'''
Description:
This script generates the amplitude and phase information of all surfaces
in the MICADO paraxial model in a nicely presented form.
'''
if __name__ == '__main__':
plt.rc('font', family='serif')
plt.rc('axes', labelsize='large')
# Initiate MICADO paraxial model
mcd = ParaxialMICADO()
# Generate the PSF and plot it
E, x, y = mcd.propagate(l=1.35e-3,surface=-1, zoom=True, show=True, save='all')