foucault_mask

lenstest.foucault.foucault_mask(RoC, x_offset, z_offset, conic, X, Y, phi=0, A1=0)[source]

Create Foucault knife edge image with specified points.

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

The Ronchi grating is located at RoC + offset and 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:
  • RoC – radius of curvature of mirror [mm]

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

  • offset – axial offset of grating from center of mirror’s RoC [mm]

  • conic – conic constant or Schwartzchild constant [-]

  • X, Y – grid of points to evaluate

Returns:

array of points blocked by knife edge