gram

lenstest.ronchi.gram(D, RoC, lpm, z_offset, conic=0, phi=0, N=100000, invert=False, on_grid=False, mask=False)[source]

Create points that pass through a Ronchi ruling.

When plotted these points will be a Ronchigram.

This assumes that the point source of light is located at the center of the mirror madius of curvature, RoC.

The conic section is specified by conic:

conic = ∞ for surface that is flat conic > 0 for surface that is an oblate spheroid conic = 0 for surface that is a sphere 0<conic<-1 for surface that is a prolate spheroid conic = -1 for surface that is a paraboloid conic < -1 for surface that is a hyperboloid

Parameters:
  • D – diameter of mirror [mm]

  • RoC – radius of curvature of mirror [mm]

  • lpm – line pairs per mm [1/mm]

  • z_offset – axial z_offset of grating from true focus [mm]

  • conic – conic constant or Schwartzchild constant [-]

  • phi – CCW rotation of Ronchi ruling from vertical

  • N – number of points to generate

  • invert – boolean to draw dark or light areas

  • on_grid – if False generate points on a grid

  • mask – show Ronchi ruling without lens/mirror effects

Returns:

x, y – masked listed of points to plot