ronchigram

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

Create Ronchigram for points on a grid or randomly selected.

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

The Ronchi grating is displaced from the center of the mirror by z_offset. The Ronchi rulings are oriented so lines are perpendicular to the x-axis

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 [-]

  • N – number of points to generate

  • invert – boolean to draw dark or light areas

  • random – if False generate points on a grid

Returns:

x, y – masked listed of points to plot