pysrw.lib.srwlib.srwl_opt_setup_mask

pysrw.lib.srwlib.srwl_opt_setup_mask#

pysrw.lib.srwlib.srwl_opt_setup_mask(_delta, _atten_len, _thick, _hx, _hy, _pitch_x, _pitch_y, _mask_Nx, _mask_Ny, _grid_nx, _grid_ny, _grid_sh, _grid_dx, _grid_dy=0, _grid_angle=0, _mask_x0=0, _mask_y0=0)[source]#

Setup Transmission type Optical Element which simulates a mask array for at-wavelength metrology.

Parameters:
  • _delta – refractive index decrement (can be one number of array vs photon energy)

  • _atten_len – attenuation length [m] (can be one number of array vs photon energy)

  • _thick – thickness of mask [m]

  • _hx – sampling interval in x-direction [m]

  • _hy – sampling interval in y-direction [m]

  • _pitch_x – grid pitch in x-direction [m]

  • _pitch_y – grid pitch in y-direction [m]

  • _mask_Nx – number of pixels in x-direction [1]

  • _mask_Ny – number of pixels in y-direction [1]

  • _grid_nx – number of grids in x-direction

  • _grid_ny – number of grids in y-direction

  • _grid_sh – grid shape (0: Circular grids case. 1: Rectangular grids case. 2: 2-D phase grating)

  • _grid_dx – grid dimension in x-direction, width for rectangular or elliptical grids [m]

  • _grid_dy – grid dimension in y-direction, height for rectangular or elliptical grids [m]

  • _grid_angle – tilt angle of the grid [rad]

  • _mask_x0 – horizontal coordinate of the mask [m]

  • _mask_y0 – vertical coordinate of the mask [m]

Returns:

transmission (SRWLOptT) type optical element which simulates the PMA