calcil.physics package

Submodules

calcil.physics.noise module

calcil.physics.wave_optics module

Implementation of common functions for wave optics in jax.

calcil.physics.wave_optics.cart2Pol(x, y)
calcil.physics.wave_optics.genGrid(size: int, dx: float, flag_shift: bool = False)

This function generates 1D Fourier grid, and is centered at the middle of the array

Parameters:
  • size (int) – length of the array

  • dx (float) – pixel size

  • flag_shift (bool) – flag indicating whether the final array is circularly shifted, meaning that the zero is at the center of the array when False (default), and at the beginning of the array when True. It should be False when computing real space coordinates, and True when computing Fourier coordinates.

Returns:

1D grid

Return type:

jnp.ndarray

calcil.physics.wave_optics.genGridNumpy(size, dx, flag_shift=False)

This function generates 1D Fourier grid.

calcil.physics.wave_optics.genPupil(shape, pixel_size, NA, wavelength, NA_in=0.0, fx_illu=0.0, fy_illu=0.0)
calcil.physics.wave_optics.genPupilNumpy(shape, pixel_size, NA, wavelength, NA_in=0.0, fx_illu=0.0, fy_illu=0.0)
calcil.physics.wave_optics.propKernel(dim_yx, prop_distances, pixel_size, wavelength, RI)
calcil.physics.wave_optics.propKernelNumpy(shape, pixel_size, wavelength, prop_distance, NA=None, RI=1.0, band_limited=True)
calcil.physics.wave_optics.zernikePolynomial(z_index, shape, pixel_size, NA, wavelength)

Module contents