Skip to content

odak.learn.wave.adjust_phase_only_slm_range

Definition for calculating the phase range of the Spatial Light Modulator (SLM) for a given wavelength. Here you prove maximum angle as the lower bound is typically zero. If the lower bound isn't zero in angles, you can use this very same definition for calculating lower angular bound as well.

Parameters:

Name Type Description Default
native_range float

Native range of the phase only SLM in radians (i.e. two pi).

required
working_wavelength float

Wavelength of the illumination source or some working wavelength.

required
native_wavelength float

Wavelength which the SLM is designed for.

required

Returns:

Type Description
float

Calculated phase range in radians.

Source code in odak/learn/wave/util.py
def adjust_phase_only_slm_range(native_range, working_wavelength, native_wavelength):
    """
    Definition for calculating the phase range of the Spatial Light Modulator (SLM) for a given wavelength. Here you prove maximum angle as the lower bound is typically zero. If the lower bound isn't zero in angles, you can use this very same definition for calculating lower angular bound as well.

    Parameters
    ----------
    native_range       : float
                         Native range of the phase only SLM in radians (i.e. two pi).
    working_wavelength : float
                         Wavelength of the illumination source or some working wavelength.
    native_wavelength  : float
                         Wavelength which the SLM is designed for.

    Returns
    -------
    new_range          : float
                         Calculated phase range in radians.
    """
    new_range = native_range/working_wavelength*native_wavelength
    return new_range

Notes

Regarding usage of this definition, you can find use cases in the engineering notes, specifically at Optimizing holograms using Odak.

See also