Skip to content

Instantly share code, notes, and snippets.

@winter-muted
Created July 11, 2019 13:53
Show Gist options
  • Save winter-muted/e88436b4c95d438bc2e81c8c232b157c to your computer and use it in GitHub Desktop.
Save winter-muted/e88436b4c95d438bc2e81c8c232b157c to your computer and use it in GitHub Desktop.
osys = poppy.OpticalSystem()
osys.add_pupil( poppy.CircularAperture(radius=3)) # pupil radius in meters
osys.add_detector(pixelscale=0.010, fov_arcsec=5.0) # image plane coordinates in arcseconds
psf = osys.calc_psf(2e-6) # wavelength in microns
poppy.display_PSF(psf, title='The Airy Function')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment