Are aspherics supported now?
dibyendumajumdar opened this issue · comments
If so is there an example I can look at?
Hi, I saw there that asphere fitting is still pending? But I saw some code for aspherics hence my question. Also wasn't clear if there is an example with aspherics
I don't quite follow. I would like to setup a lens configuration for example: https://nbviewer.jupyter.org/github/cameragossip/cameragossip.github.io/blob/master/lensdesigns/Nikkor-Z-Noct-58mm-f0.95.ipynb
Can I do this in opticspy? I could not find any example that uses the asphere surface.
Hi, thanks for the response. That example does use aspheric surfaces. In rayopt they are specified as follows:
## Aspheric data
s[1].conic = 0.0
s[1].aspherics = [0, -3.82177E-07, -6.06486E-11, -3.80172E-15, -1.32266E-18]
s[20].conic = 0.0
s[20].aspherics = [0, -1.15028E-06, -4.51771E-10, 2.72670E-13, -7.66812E-17]
s[28].conic = 0.0
s[28].aspherics = [0, 3.18645E-06, -1.14718E-08, 7.74567E-11, -2.24225E-13, 3.34790E-16, -1.70470E-19]
These days almost all photo lenses have aspheric surfaces, only older generation lenses are pure spherical surfaces.
I see, then you may want to try Rayopt.
I already use Rayopt but I was looking for alternatives. I have a hobby of converting patent data into something more helpful - but I am not an optical expert and some of the data produced by rayopt doesn't match other tools.
What tools you use? I know some tools or program packages may help.
Apart from rayopt, I use GNU Optical, and also another package called KDP.
Also there is a resource maintained by Bill Claff at https://www.photonstophotos.net/GeneralTopics/Lenses/OpticalBench/OpticalBenchHub.htm.
But the difficulty is I cannot get results that agree between these ... and I am interested in working out something that can be used to measure objectively the difference between various lens designs.
Also planning to try https://github.com/mjhoptics/ray-optics
CodeV and Zemax are so expensive I could not justify getting license - I can buy lenses instead with that money!