Skip to content

odak.learn.wave.linear_grating

i::: odak.learn.wave.linear_grating selection: docstring_style: numpy

Notes

Here is a short example on how to use this function:

from odak.learn.wave import wavenumber,quadratic_phase_function
wavelength                 = 0.5*pow(10,-6)
pixeltom                   = 6*pow(10,-6)
distance                   = 10.0
resolution                 = [1080,1920]
k                          = wavenumber(wavelength)
plane_field                = linear_grating(
                                            resolution[0],
                                            resolution[1],
                                            every=2,
                                            add=3.14,
                                            axis='x'
                                           )

See also