farhadnkm / Fringe.Py

A Python implementation of diffraction and coherent field propagation by angular spectrum method.
MIT License
28 stars 2 forks source link

The units in AngularSpectrumSolver #2

Closed HakuRemu closed 1 year ago

HakuRemu commented 1 year ago

Dear Farhadnkm,

What are the units used in AngularSpectrumSolver? I see you have used the wavenumber

k=2 * np.pi/500e-3

the pixel size

dr=1

and the axial coordinate

z=-1000

in the example https://github.com/farhadnkm/Fringe.Py/blob/master/examples/diffraction.ipynb. I think the units would be μm, am I right? Thank you for your support!

farhadnkm commented 1 year ago

That's correct. But you can use any value/unit for these parameters.