Skip to content

Add Airy disk in SpotDiagram #46

@drpaprika

Description

@drpaprika

Description

Add a plot_airy boolean option to analysis.SpotDiagram.view() to overlay the Airy disk on top of the spot diagram figure.
Add a plot_pixel boolean option to analysis.SpotDiagram.view() to overlay the pixel square on top of the spot diagram figure.
This allows the user for a quick visual assessment of the image quality when looking at the spot diagram.
Note that the Airy disk is not necessarily a circle, it can be oval if the focal lengths are not equal in X and Y directions.

Requirements

  • Compute the Airy disk diameter as $r = 1.22 \cdot \lambda \cdot N$ in both directions, using a real ray trace (not paraxial quantities)
  • Plot the airy disk as a dashed black line, centered on the (x,y) coordinates of the chief ray in the image plane
  • Add a pixel_pitch optionnal argument to optic.Optic() to specify the pixel size in mm
  • Plot the pixel as a dashed black line, centered on the (x,y) coordinates of the chief ray in the image plane
  • Add documentation
  • Add unit tests.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions