In [1]:
%pylab inline
import warnings
import numpy as np
import matplotlib.pyplot as plt
import rayopt as ro
warnings.simplefilter("ignore", FutureWarning)
np.seterr(divide="ignore", invalid="ignore")
np.set_printoptions(precision=4)
description = "US 2019/0353880 Example 1 (Nikon AF-P Nikkor 70-300mm f/4.5-5.6E ED VR)"
columns = "type distance roc diameter material"
# number of surfaces = 33
lensdata = """
O 0.0 0.0 70.486 AIR
S 20 109.487 54.22 1.48749/70.31
S 4.6 0 54.22 AIR
S 0.2 101.18 50.98 1.62004/36.4
S 1.8 49.811 49.44 1.497/81.61
S 7.2 385.817 49.44 AIR
S 6.204 176.019 33.9 1.6968/55.52
S 1.7 31.368 33.9 AIR
S 5.15 32.609 29.12 1.78472/25.64
S 5.5 -129.763 29.12 AIR
S 1.447 -415.411 25.54 1.7725/49.62
S 1.3 34.308 25.54 AIR
S 4.3 -33.15 24.18 1.85026/32.35
S 1.2 -203.564 24.18 AIR
S 30 70.904 25.88 1.801/34.92
S 1.2 30.279 25.88 1.64/60.2
S 5.9 -70.14 25.88 AIR
S 1.5 34.089 26.22 1.48749/70.31
S 6 -42.611 25.72 1.8061/40.97
S 1.3 401.256 25.72 AIR
A 2.7 0 23.219 AIR
S 14.11 350 24.52 1.834/37.18
S 1.2 30.159 24.52 1.5168/63.88
S 4.8 -94.991 24.52 AIR
S 0.2 66.324 24.68 1.801/34.92
S 2.8 -132.512 24.68 AIR
S 2.18 -92.1 22.48 1.80518/25.45
S 2.2 -44.009 22.48 AIR
S 6.5 -36.97 19.78 1.7725/49.62
S 1 68.335 19.78 AIR
S 21.418 -24.5 26.34 1.62004/36.4
S 1.4 -41.152 28.18 AIR
S 0.2 106 33.16 1.67003/47.14
S 3.8 -106 33.16 AIR
I 39.12 0 43.2 AIR
"""
s = ro.system_from_text(lensdata, columns.split(),
    description=description)
s.fields = 0, .7, 1.
s.object.angle = np.deg2rad(16.980000)
s.update()
print(s)
ro.Analysis(s)
Populating the interactive namespace from numpy and matplotlib
System: US 2019/0353880 Example 1 (Nikon AF-P Nikkor 70-300mm f/4.5-5.6E ED VR)
Scale: 1.0 mm
Wavelengths: 588, 656, 486 nm
Fields: 0, 0.7, 1
Object:
 Semi-Angle: 17 deg
 Pupil:
   Pupil Distance: 87.2779
   Refractive Index: 1.00028
   Update Radius: True
   Radius: 8.32579
Image:
 Radius: 21.6
 Update Radius: True
 Pupil:
   Pupil Distance: -94.7547
   Refractive Index: 1.00028
   Update Radius: True
   Radius: 10.9421
Stop: 20
Elements:
 # T   Distance   Rad Curv   Diameter          Material       n      nd      Vd
 0 S          0        inf     70.486         basic/air   1.000   1.000   89.30
 1 S         20      109.5      54.22                 -   1.487   1.487   70.31
 2 S        4.6        inf      54.22         basic/air   1.000   1.000   89.30
 3 S        0.2      101.2      50.98                 -   1.620   1.620   36.40
 4 S        1.8      49.81      49.44                 -   1.497   1.497   81.61
 5 S        7.2      385.8      49.44         basic/air   1.000   1.000   89.30
 6 S      6.204        176       33.9                 -   1.697   1.697   55.52
 7 S        1.7      31.37       33.9         basic/air   1.000   1.000   89.30
 8 S       5.15      32.61      29.12                 -   1.785   1.785   25.64
 9 S        5.5     -129.8      29.12         basic/air   1.000   1.000   89.30
10 S      1.447     -415.4      25.54                 -   1.772   1.772   49.62
11 S        1.3      34.31      25.54         basic/air   1.000   1.000   89.30
12 S        4.3     -33.15      24.18                 -   1.850   1.850   32.35
13 S        1.2     -203.6      24.18         basic/air   1.000   1.000   89.30
14 S         30       70.9      25.88                 -   1.801   1.801   34.92
15 S        1.2      30.28      25.88                 -   1.640   1.640   60.20
16 S        5.9     -70.14      25.88         basic/air   1.000   1.000   89.30
17 S        1.5      34.09      26.22                 -   1.487   1.487   70.31
18 S          6     -42.61      25.72                 -   1.806   1.806   40.97
19 S        1.3      401.3      25.72         basic/air   1.000   1.000   89.30
20 S        2.7        inf     23.219         basic/air   1.000   1.000   89.30
21 S      14.11        350      24.52                 -   1.834   1.834   37.18
22 S        1.2      30.16      24.52                 -   1.517   1.517   63.88
23 S        4.8     -94.99      24.52         basic/air   1.000   1.000   89.30
24 S        0.2      66.32      24.68                 -   1.801   1.801   34.92
25 S        2.8     -132.5      24.68         basic/air   1.000   1.000   89.30
26 S       2.18      -92.1      22.48                 -   1.805   1.805   25.45
27 S        2.2     -44.01      22.48         basic/air   1.000   1.000   89.30
28 S        6.5     -36.97      19.78                 -   1.772   1.772   49.62
29 S          1      68.33      19.78         basic/air   1.000   1.000   89.30
30 S     21.418      -24.5      26.34                 -   1.620   1.620   36.40
31 S        1.4     -41.15      28.18         basic/air   1.000   1.000   89.30
32 S        0.2        106      33.16                 -   1.670   1.670   47.14
33 S        3.8       -106      33.16         basic/air   1.000   1.000   89.30
34 S      39.12        inf       43.2         basic/air   1.000   1.000   89.30

System: US 2019/0353880 Example 1 (Nikon AF-P Nikkor 70-300mm f/4.5-5.6E ED VR)
Scale: 1.0 mm
Wavelengths: 588, 656, 486 nm
Fields: 0, 0.7, 1
Object:
 Semi-Angle: 17 deg
 Pupil:
   Pupil Distance: 87.2779
   Refractive Index: 1.00028
   Update Radius: True
   Radius: 8.32579
Image:
 Radius: 21.6
 Update Radius: True
 Pupil:
   Pupil Distance: -94.7547
   Refractive Index: 1.00028
   Update Radius: True
   Radius: 10.9421
Stop: 20
Elements:
 # T   Distance   Rad Curv   Diameter          Material       n      nd      Vd
 0 S          0        inf     70.486         basic/air   1.000   1.000   89.30
 1 S         20      109.5      54.22                 -   1.487   1.487   70.31
 2 S        4.6        inf      54.22         basic/air   1.000   1.000   89.30
 3 S        0.2      101.2      50.98                 -   1.620   1.620   36.40
 4 S        1.8      49.81      49.44                 -   1.497   1.497   81.61
 5 S        7.2      385.8      49.44         basic/air   1.000   1.000   89.30
 6 S      6.204        176       33.9                 -   1.697   1.697   55.52
 7 S        1.7      31.37       33.9         basic/air   1.000   1.000   89.30
 8 S       5.15      32.61      29.12                 -   1.785   1.785   25.64
 9 S        5.5     -129.8      29.12         basic/air   1.000   1.000   89.30
10 S      1.447     -415.4      25.54                 -   1.772   1.772   49.62
11 S        1.3      34.31      25.54         basic/air   1.000   1.000   89.30
12 S        4.3     -33.15      24.18                 -   1.850   1.850   32.35
13 S        1.2     -203.6      24.18         basic/air   1.000   1.000   89.30
14 S         30       70.9      25.88                 -   1.801   1.801   34.92
15 S        1.2      30.28      25.88                 -   1.640   1.640   60.20
16 S        5.9     -70.14      25.88         basic/air   1.000   1.000   89.30
17 S        1.5      34.09      26.22                 -   1.487   1.487   70.31
18 S          6     -42.61      25.72                 -   1.806   1.806   40.97
19 S        1.3      401.3      25.72         basic/air   1.000   1.000   89.30
20 S        2.7        inf     23.219         basic/air   1.000   1.000   89.30
21 S      14.11        350      24.52                 -   1.834   1.834   37.18
22 S        1.2      30.16      24.52                 -   1.517   1.517   63.88
23 S        4.8     -94.99      24.52         basic/air   1.000   1.000   89.30
24 S        0.2      66.32      24.68                 -   1.801   1.801   34.92
25 S        2.8     -132.5      24.68         basic/air   1.000   1.000   89.30
26 S       2.18      -92.1      22.48                 -   1.805   1.805   25.45
27 S        2.2     -44.01      22.48         basic/air   1.000   1.000   89.30
28 S        6.5     -36.97      19.78                 -   1.772   1.772   49.62
29 S          1      68.33      19.78         basic/air   1.000   1.000   89.30
30 S     21.418      -24.5      26.34                 -   1.620   1.620   36.40
31 S        1.4     -41.15      28.18         basic/air   1.000   1.000   89.30
32 S        0.2        106      33.16                 -   1.670   1.670   47.14
33 S        3.8       -106      33.16         basic/air   1.000   1.000   89.30
34 S      39.28        inf       43.2         basic/air   1.000   1.000   89.30

lagrange: -2.5842
track length: 151.01
object, image height: [27.082  22.3718]
front, back focal length (from PP): [-72.313  72.313]
entry, exit pupil height: [ 8.3258 10.9421]
entry, exit pupil distance: [ 67.2779 -55.6347]
front, back focal distance: [12.2519 39.3912]
front, back principal distance: [ 84.5649 -32.9218]
front, back nodal distance: [ 84.5649 -32.9218]
front, back numerical aperture: [0.     0.1144]
front, back f number: [4.3427 3.3043]
front, back working f number: [   inf 4.3714]
front, back airy radius: [   inf 0.0031]
transverse, angular magnification: [-0.      0.7609]

 # T      path         n   axial y  axial nu   chief y  chief nu
 0 S         0         1     8.326         0    -27.08    0.3104
 1 S        20     1.487     8.326  -0.03705    -20.88    0.4033
 2 S      24.6         1     8.211  -0.03705    -19.63    0.4033
 3 S      24.8      1.62     8.204   -0.0873    -19.55     0.523
 4 S      26.6     1.497     8.107  -0.06728    -18.97    0.4762
 5 S      33.8         1     7.783  -0.05726    -16.68    0.4547
 6 S        40     1.697     7.428  -0.08665    -13.86    0.5095
 7 S      41.7         1     7.341   0.07636    -13.35    0.2132
 8 S     46.85     1.785     7.734   -0.1097    -12.25    0.5078
 9 S     52.35         1     7.396   -0.1544    -10.68    0.5724
10 S      53.8     1.772     7.173   -0.1411    -9.856    0.5541
11 S      55.1         1      7.07   0.01805    -9.449    0.3414
12 S      59.4      1.85     7.147    0.2013    -7.982    0.1368
13 S      60.6         1     7.278    0.1709    -7.893    0.1697
14 S      90.6     1.801      12.4   0.03084    -2.803    0.2014
15 S      91.8      1.64     12.42   0.09691    -2.669    0.1872
16 S      97.7         1     12.77  -0.01959    -1.996    0.2054
17 S      99.2     1.487     12.74   -0.2017    -1.688    0.2295
18 S     105.2     1.806     11.93   -0.1125   -0.7619    0.2238
19 S     106.5         1     11.85  -0.08873   -0.6008    0.2226
20 S     109.2         1     11.61  -0.08873 1.991e-14    0.2226
21 S     123.3     1.834     10.36   -0.1134      3.14    0.2151
22 S     124.5     1.517     10.28 -0.005247     3.281    0.2496
23 S     129.3         1     10.27  -0.06108     4.071    0.2275
24 S     129.5     1.801     10.25   -0.1849     4.116    0.1778
25 S     132.3         1     9.967   -0.2451     4.392    0.1512
26 S     134.5     1.805     9.433   -0.1627     4.722    0.1925
27 S     136.7         1     9.235   -0.3316     4.957    0.1019
28 S     143.2     1.772      7.08   -0.1837     5.619    0.2192
29 S     144.2         1     6.977   -0.1048     5.742    0.2841
30 S     165.6      1.62     4.732   0.01486     11.83    0.5833
31 S       167         1     4.745   -0.0566     12.33    0.3976
32 S     167.2      1.67     4.733   -0.0865     12.41    0.3192
33 S       171         1     4.537   -0.1152     13.14    0.2362
34 S     210.1         1   0.03248   -0.1152     22.37    0.2362

 # T       SA3      CMA3      AST3      PTZ3      DIS3     TACHC      TCHC
 0 S         0         0         0         0         0         0         0
 1 S -0.003492 -0.005493  -0.00864  -0.08645   -0.1496  -0.02556   -0.0402
 2 S-0.0009896   0.01077   -0.1173         0     1.276  -0.01227    0.1335
 3 S 0.0002595  0.001237  0.005898   -0.1093   -0.4928  -0.03289   -0.1568
 4 S   0.00354 -0.001884  0.001003   0.02944   -0.0162   0.07979  -0.04247
 5 S  -0.00126   0.01398   -0.1552   0.02485     1.446  -0.01016    0.1127
 6 S 0.0001974 -0.004933    0.1233  -0.06739    -1.397  0.007152   -0.1787
 7 S     0.326    -0.223    0.1526    0.3782   -0.3631    0.1459  -0.09981
 8 S   -0.3647     0.189  -0.09799   -0.3895    0.2527     -0.36    0.1866
 9 S   -0.1716    0.5314    -1.646  -0.09788     5.399   -0.2321    0.7189
10 S    0.1001   -0.3477     1.207   0.03031    -4.298   0.09361    -0.325
11 S    0.0968   0.02846  0.008366     0.367    0.1103    0.1205   0.03541
12 S   0.04924   -0.1451    0.4275    0.4005     -2.44    0.1736   -0.5117
13 S   0.06447   0.09945    0.1534  -0.06522     0.136    0.1209    0.1866
14 S    -1.036     -0.39   -0.1467   -0.1812   -0.1234    -0.473    -0.178
15 S    0.8453   0.04679   0.00259   0.05204  0.003024    0.5179   0.02867
16 S   -0.1252    0.1451   -0.1681   -0.1607    0.3811   -0.1446    0.1675
17 S   -0.4959   -0.2181  -0.09593   -0.2777   -0.1643   -0.1821  -0.08009
18 S     1.118   -0.4634    0.1919   0.08045   -0.1128    0.3979   -0.1649
19 S -0.009739   0.03637   -0.1359   0.03213    0.3874  -0.06613     0.247
20 S         0        -0         0         0         0        -0         0
21 S  0.008617  -0.03375    0.1322  -0.03753   -0.3705   0.06484   -0.2539
22 S    0.3668     0.297    0.2405    0.1093    0.2833    0.3144    0.2546
23 S  -0.07475   0.08157  -0.08901   -0.1036    0.2102  -0.08016   0.08747
24 S  0.001572  0.004863   0.01505   -0.1937   -0.5528   -0.1058   -0.3273
25 S   -0.8323    0.3068   -0.1131  -0.09696   0.07743    -0.352    0.1298
26 S    0.9621   -0.2767   0.07959    0.1399  -0.06313    0.4974    -0.143
27 S    -3.299   -0.0658 -0.001313   -0.2928 -0.005866   -0.7586  -0.01513
28 S     2.289    0.2195   0.02105    0.3405   0.03467    0.2815     0.027
29 S-1.031e-05  0.001398   -0.1896    0.1842     0.726  -0.00144    0.1952
30 S    0.2009     0.134   0.08932    0.4512    0.3604    0.1283   0.08556
31 S  -0.03778    0.0215  -0.01224   -0.2686    0.1599  -0.07423   0.04226
32 S 7.448e-05 -0.003214    0.1387   -0.1093    -1.265  0.004159   -0.1794
33 S  -0.04121   0.02927  -0.02079   -0.1093   0.09243  -0.05279    0.0375
34 S         0        -0         0         0         0        -0         0
      -0.06038   0.01936 -0.006939  -0.02716   -0.4775  -0.01587  -0.02022

Out[1]:
<rayopt.analysis.Analysis at 0x1a2da1d4438>
In [3]:
description = "US 2019/0353880 Example 1 (Nikon AF-P Nikkor 70-300mm f/4.5-5.6E ED VR)"
columns = "type distance roc diameter material"
# number of surfaces = 33
lensdata = """
O 0.0 0.0 70.486 AIR
S 20 109.487 54.22 1.48749/70.31
S 4.6 0 54.22 AIR
S 0.2 101.18 50.98 1.62004/36.4
S 1.8 49.811 49.44 1.497/81.61
S 7.2 385.817 49.44 AIR
S 21.15 176.019 33.9 1.6968/55.52
S 1.7 31.368 33.9 AIR
S 5.15 32.609 29.12 1.78472/25.64
S 5.5 -129.763 29.12 AIR
S 1.447 -415.411 25.54 1.7725/49.62
S 1.3 34.308 25.54 AIR
S 4.3 -33.15 24.18 1.85026/32.35
S 1.2 -203.564 24.18 AIR
S 22.666 70.904 25.88 1.801/34.92
S 1.2 30.279 25.88 1.64/60.2
S 5.9 -70.14 25.88 AIR
S 1.5 34.089 26.22 1.48749/70.31
S 6 -42.611 25.72 1.8061/40.97
S 1.3 401.256 25.72 AIR
A 2.7 0 23.219 AIR
S 14.11 350 24.52 1.834/37.18
S 1.2 30.159 24.52 1.5168/63.88
S 4.8 -94.991 24.52 AIR
S 0.2 66.324 24.68 1.801/34.92
S 2.8 -132.512 24.68 AIR
S 3.742 -92.1 22.48 1.80518/25.45
S 2.2 -44.009 22.48 AIR
S 6.5 -36.97 19.78 1.7725/49.62
S 1 68.335 19.78 AIR
S 19.856 -24.5 26.34 1.62004/36.4
S 1.4 -41.152 28.18 AIR
S 0.2 106 33.16 1.67003/47.14
S 3.8 -106 33.16 AIR
I 46.45 0 43.2 AIR
"""
s = ro.system_from_text(lensdata, columns.split(),
    description=description)
s.fields = 0, .7, 1.
s.object.angle = np.deg2rad(12.240000)
s.update()
print(s)
ro.Analysis(s)
System: US 2019/0353880 Example 1 (Nikon AF-P Nikkor 70-300mm f/4.5-5.6E ED VR)
Scale: 1.0 mm
Wavelengths: 588, 656, 486 nm
Fields: 0, 0.7, 1
Object:
 Semi-Angle: 12.2 deg
 Pupil:
   Pupil Distance: 121.733
   Refractive Index: 1.00028
   Update Radius: True
   Radius: 10.6589
Image:
 Radius: 21.6
 Update Radius: True
 Pupil:
   Pupil Distance: -100.461
   Refractive Index: 1.00028
   Update Radius: True
   Radius: 10.7113
Stop: 20
Elements:
 # T   Distance   Rad Curv   Diameter          Material       n      nd      Vd
 0 S          0        inf     70.486         basic/air   1.000   1.000   89.30
 1 S         20      109.5      54.22                 -   1.487   1.487   70.31
 2 S        4.6        inf      54.22         basic/air   1.000   1.000   89.30
 3 S        0.2      101.2      50.98                 -   1.620   1.620   36.40
 4 S        1.8      49.81      49.44                 -   1.497   1.497   81.61
 5 S        7.2      385.8      49.44         basic/air   1.000   1.000   89.30
 6 S      21.15        176       33.9                 -   1.697   1.697   55.52
 7 S        1.7      31.37       33.9         basic/air   1.000   1.000   89.30
 8 S       5.15      32.61      29.12                 -   1.785   1.785   25.64
 9 S        5.5     -129.8      29.12         basic/air   1.000   1.000   89.30
10 S      1.447     -415.4      25.54                 -   1.772   1.772   49.62
11 S        1.3      34.31      25.54         basic/air   1.000   1.000   89.30
12 S        4.3     -33.15      24.18                 -   1.850   1.850   32.35
13 S        1.2     -203.6      24.18         basic/air   1.000   1.000   89.30
14 S     22.666       70.9      25.88                 -   1.801   1.801   34.92
15 S        1.2      30.28      25.88                 -   1.640   1.640   60.20
16 S        5.9     -70.14      25.88         basic/air   1.000   1.000   89.30
17 S        1.5      34.09      26.22                 -   1.487   1.487   70.31
18 S          6     -42.61      25.72                 -   1.806   1.806   40.97
19 S        1.3      401.3      25.72         basic/air   1.000   1.000   89.30
20 S        2.7        inf     23.219         basic/air   1.000   1.000   89.30
21 S      14.11        350      24.52                 -   1.834   1.834   37.18
22 S        1.2      30.16      24.52                 -   1.517   1.517   63.88
23 S        4.8     -94.99      24.52         basic/air   1.000   1.000   89.30
24 S        0.2      66.32      24.68                 -   1.801   1.801   34.92
25 S        2.8     -132.5      24.68         basic/air   1.000   1.000   89.30
26 S      3.742      -92.1      22.48                 -   1.805   1.805   25.45
27 S        2.2     -44.01      22.48         basic/air   1.000   1.000   89.30
28 S        6.5     -36.97      19.78                 -   1.772   1.772   49.62
29 S          1      68.33      19.78         basic/air   1.000   1.000   89.30
30 S     19.856      -24.5      26.34                 -   1.620   1.620   36.40
31 S        1.4     -41.15      28.18         basic/air   1.000   1.000   89.30
32 S        0.2        106      33.16                 -   1.670   1.670   47.14
33 S        3.8       -106      33.16         basic/air   1.000   1.000   89.30
34 S      46.45        inf       43.2         basic/air   1.000   1.000   89.30

System: US 2019/0353880 Example 1 (Nikon AF-P Nikkor 70-300mm f/4.5-5.6E ED VR)
Scale: 1.0 mm
Wavelengths: 588, 656, 486 nm
Fields: 0, 0.7, 1
Object:
 Semi-Angle: 12.2 deg
 Pupil:
   Pupil Distance: 121.733
   Refractive Index: 1.00028
   Update Radius: True
   Radius: 10.6589
Image:
 Radius: 21.6
 Update Radius: True
 Pupil:
   Pupil Distance: -100.461
   Refractive Index: 1.00028
   Update Radius: True
   Radius: 10.7113
Stop: 20
Elements:
 # T   Distance   Rad Curv   Diameter          Material       n      nd      Vd
 0 S          0        inf     70.486         basic/air   1.000   1.000   89.30
 1 S         20      109.5      54.22                 -   1.487   1.487   70.31
 2 S        4.6        inf      54.22         basic/air   1.000   1.000   89.30
 3 S        0.2      101.2      50.98                 -   1.620   1.620   36.40
 4 S        1.8      49.81      49.44                 -   1.497   1.497   81.61
 5 S        7.2      385.8      49.44         basic/air   1.000   1.000   89.30
 6 S      21.15        176       33.9                 -   1.697   1.697   55.52
 7 S        1.7      31.37       33.9         basic/air   1.000   1.000   89.30
 8 S       5.15      32.61      29.12                 -   1.785   1.785   25.64
 9 S        5.5     -129.8      29.12         basic/air   1.000   1.000   89.30
10 S      1.447     -415.4      25.54                 -   1.772   1.772   49.62
11 S        1.3      34.31      25.54         basic/air   1.000   1.000   89.30
12 S        4.3     -33.15      24.18                 -   1.850   1.850   32.35
13 S        1.2     -203.6      24.18         basic/air   1.000   1.000   89.30
14 S     22.666       70.9      25.88                 -   1.801   1.801   34.92
15 S        1.2      30.28      25.88                 -   1.640   1.640   60.20
16 S        5.9     -70.14      25.88         basic/air   1.000   1.000   89.30
17 S        1.5      34.09      26.22                 -   1.487   1.487   70.31
18 S          6     -42.61      25.72                 -   1.806   1.806   40.97
19 S        1.3      401.3      25.72         basic/air   1.000   1.000   89.30
20 S        2.7        inf     23.219         basic/air   1.000   1.000   89.30
21 S      14.11        350      24.52                 -   1.834   1.834   37.18
22 S        1.2      30.16      24.52                 -   1.517   1.517   63.88
23 S        4.8     -94.99      24.52         basic/air   1.000   1.000   89.30
24 S        0.2      66.32      24.68                 -   1.801   1.801   34.92
25 S        2.8     -132.5      24.68         basic/air   1.000   1.000   89.30
26 S      3.742      -92.1      22.48                 -   1.805   1.805   25.45
27 S        2.2     -44.01      22.48         basic/air   1.000   1.000   89.30
28 S        6.5     -36.97      19.78                 -   1.772   1.772   49.62
29 S          1      68.33      19.78         basic/air   1.000   1.000   89.30
30 S     19.856      -24.5      26.34                 -   1.620   1.620   36.40
31 S        1.4     -41.15      28.18         basic/air   1.000   1.000   89.30
32 S        0.2        106      33.16                 -   1.670   1.670   47.14
33 S        3.8       -106      33.16         basic/air   1.000   1.000   89.30
34 S      46.72        inf       43.2         basic/air   1.000   1.000   89.30

lagrange: -2.3315
track length: 158.62
object, image height: [26.6202 21.861 ]
front, back focal length (from PP): [-100.3066  100.3066]
entry, exit pupil height: [10.6589 10.7113]
entry, exit pupil distance: [101.7331 -54.0106]
front, back focal distance: [ 1.9163 46.7757]
front, back principal distance: [102.2229 -53.5309]
front, back nodal distance: [102.2229 -53.5309]
front, back numerical aperture: [0.     0.1057]
front, back f number: [4.7053 4.6823]
front, back working f number: [   inf 4.7318]
front, back airy radius: [   inf 0.0034]
transverse, angular magnification: [-0.      0.9951]

 # T      path         n   axial y  axial nu   chief y  chief nu
 0 S         0         1     10.66         0    -26.62    0.2187
 1 S        20     1.487     10.66  -0.04743    -22.25    0.3177
 2 S      24.6         1     10.51  -0.04743    -21.26    0.3177
 3 S      24.8      1.62      10.5   -0.1118     -21.2    0.4476
 4 S      26.6     1.497     10.38  -0.08613     -20.7    0.3965
 5 S      33.8         1     9.964   -0.0733     -18.8    0.3723
 6 S     54.95     1.697     8.414   -0.1066    -10.93    0.4155
 7 S     56.65         1     8.308   0.07787    -10.51    0.1821
 8 S      61.8     1.785     8.709   -0.1316    -9.571    0.4124
 9 S      67.3         1     8.303   -0.1818    -8.301    0.4626
10 S     68.75     1.772      8.04   -0.1669    -7.631    0.4484
11 S     70.05         1     7.918   0.01135    -7.303     0.284
12 S     74.35      1.85     7.966    0.2156    -6.082    0.1281
13 S     75.55         1     8.106    0.1818    -5.999    0.1531
14 S     98.21     1.801     12.22    0.0437    -2.529    0.1817
15 S     99.41      1.64     12.25    0.1089    -2.408    0.1689
16 S     105.3         1     12.65 -0.006475      -1.8    0.1853
17 S     106.8     1.487     12.64   -0.1871    -1.523    0.2071
18 S     112.8     1.806     11.88  -0.09823   -0.6874    0.2019
19 S     114.1         1     11.81  -0.07451   -0.5421    0.2008
20 S     116.8         1     11.61  -0.07451 8.475e-15    0.2008
21 S     130.9     1.834     10.56  -0.09967     2.833    0.1941
22 S     132.1     1.517     10.49    0.0107      2.96    0.2252
23 S     136.9         1     10.53  -0.04654     3.673    0.2052
24 S     137.1     1.801     10.52   -0.1735     3.714    0.1604
25 S     139.9         1     10.25   -0.2354     3.963    0.1365
26 S     143.7     1.805     9.367   -0.1536     4.473    0.1756
27 S     145.9         1      9.18   -0.3215     4.687   0.08982
28 S     152.4     1.772     7.091   -0.1734     5.271    0.1999
29 S     153.4         1     6.993  -0.09434     5.384    0.2608
30 S     173.2      1.62      5.12   0.03519     10.56    0.5279
31 S     174.6         1     5.151  -0.04239     11.02     0.362
32 S     174.8      1.67     5.142  -0.07488     11.09    0.2919
33 S     178.6         1     4.972   -0.1063     11.75    0.2177
34 S     225.1         1   0.03599   -0.1063     21.86    0.2177

 # T       SA3      CMA3      AST3      PTZ3      DIS3     TACHC      TCHC
 0 S         0         0         0         0         0         0         0
 1 S  -0.01016 -0.001616-0.0002571  -0.07622  -0.01217  -0.04536 -0.007216
 2 S -0.002879   0.01929   -0.1292         0    0.8655  -0.02178    0.1459
 3 S 0.0007551  0.001448  0.002776  -0.09633   -0.1794  -0.05838   -0.1119
 4 S    0.0103   -0.0103    0.0103   0.02596  -0.03625    0.1416   -0.1416
 5 S -0.003665   0.02498   -0.1703   0.02191     1.011  -0.01803    0.1229
 6 S 0.0009282   -0.0113    0.1375  -0.05942   -0.9507   0.01486   -0.1809
 7 S    0.5257   -0.2346    0.1047    0.3334   -0.1955    0.1974  -0.08811
 8 S   -0.5791    0.1871  -0.06045   -0.3434    0.1305    -0.483    0.1561
 9 S   -0.3302    0.7073    -1.515   -0.0863      3.43   -0.3281    0.7028
10 S    0.1962    -0.469     1.121   0.02672    -2.744    0.1332   -0.3183
11 S    0.1403   0.04119   0.01209    0.3235   0.09852    0.1579   0.04634
12 S    0.1012   -0.2065    0.4215    0.3531    -1.581     0.243    -0.496
13 S   0.09085    0.1169    0.1504   -0.0575    0.1195    0.1532    0.1971
14 S    -1.209    -0.401   -0.1329   -0.1598  -0.09704    -0.517   -0.1714
15 S    0.9259   0.04608  0.002293   0.04588  0.002397    0.5551   0.02763
16 S  -0.09713    0.1097   -0.1239   -0.1417    0.2999   -0.1435    0.1621
17 S   -0.6138   -0.2369  -0.09145   -0.2448   -0.1298   -0.2011   -0.0776
18 S     1.098   -0.4216    0.1619   0.07093  -0.08937    0.4179   -0.1604
19 S  -0.00499   0.02208  -0.09773   0.02833    0.3072  -0.05436    0.2406
20 S         0        -0         0         0         0        -0         0
21 S  0.004364  -0.02056   0.09689  -0.03309   -0.3006   0.05367   -0.2529
22 S    0.4889    0.3397     0.236   0.09635    0.2309    0.3654    0.2538
23 S  -0.06256   0.06621  -0.07006  -0.09133    0.1708  -0.08282   0.08764
24 S -0.004323  -0.01008  -0.02349   -0.1708   -0.4528   -0.1407   -0.3281
25 S   -0.8547    0.2911  -0.09916  -0.08548   0.06289   -0.3827    0.1304
26 S    0.9396   -0.2449   0.06381    0.1233  -0.04878    0.5189   -0.1352
27 S    -3.316   -0.1046 -0.003297   -0.2581 -0.008243   -0.7996  -0.02521
28 S     2.331    0.2398   0.02466    0.3002   0.03341    0.2997   0.03082
29 S-8.251e-05 -0.003493   -0.1478    0.1624    0.6173  0.004619    0.1955
30 S     0.238    0.1336   0.07505    0.3978    0.2656    0.1531   0.08599
31 S  -0.03782   0.02126  -0.01195   -0.2368    0.1399  -0.08508   0.04783
32 S  1.41e-05  0.001072   0.08145  -0.09639    -1.136 -0.002518   -0.1914
33 S  -0.04344   0.03027  -0.02109  -0.09639   0.08186  -0.06077   0.04234
34 S         0        -0         0         0         0        -0         0
      -0.07823   0.02268  0.004254  -0.02395  -0.09419  -0.01533  -0.01069

Out[3]:
<rayopt.analysis.Analysis at 0x1a2e2a1d7b8>
In [4]:
description = "US 2019/0353880 Example 1 (Nikon AF-P Nikkor 70-300mm f/4.5-5.6E ED VR)"
columns = "type distance roc diameter material"
# number of surfaces = 33
lensdata = """
O 0.0 0.0 70.486 AIR
S 20 109.487 54.22 1.48749/70.31
S 4.6 0 54.22 AIR
S 0.2 101.18 50.98 1.62004/36.4
S 1.8 49.811 49.44 1.497/81.61
S 7.2 385.817 49.44 AIR
S 61.895 176.019 33.9 1.6968/55.52
S 1.7 31.368 33.9 AIR
S 5.15 32.609 29.12 1.78472/25.64
S 5.5 -129.763 29.12 AIR
S 1.447 -415.411 25.54 1.7725/49.62
S 1.3 34.308 25.54 AIR
S 4.3 -33.15 24.18 1.85026/32.35
S 1.2 -203.564 24.18 AIR
S 2 70.904 25.88 1.801/34.92
S 1.2 30.279 25.88 1.64/60.2
S 5.9 -70.14 25.88 AIR
S 1.5 34.089 26.22 1.48749/70.31
S 6 -42.611 25.72 1.8061/40.97
S 1.3 401.256 25.72 AIR
A 2.7 0 23.219 AIR
S 14.11 350 24.52 1.834/37.18
S 1.2 30.159 24.52 1.5168/63.88
S 4.8 -94.991 24.52 AIR
S 0.2 66.324 24.68 1.801/34.92
S 2.8 -132.512 24.68 AIR
S 3.895 -92.1 22.48 1.80518/25.45
S 2.2 -44.009 22.48 AIR
S 6.5 -36.97 19.78 1.7725/49.62
S 1 68.335 19.78 AIR
S 19.703 -24.5 26.34 1.62004/36.4
S 1.4 -41.152 28.18 AIR
S 0.2 106 33.16 1.67003/47.14
S 3.8 -106 33.16 AIR
I 67.12 0 43.2 AIR
"""
s = ro.system_from_text(lensdata, columns.split(),
    description=description)
s.fields = 0, .7, 1.
s.object.angle = np.deg2rad(4.220000)
s.update()
print(s)
ro.Analysis(s)
System: US 2019/0353880 Example 1 (Nikon AF-P Nikkor 70-300mm f/4.5-5.6E ED VR)
Scale: 1.0 mm
Wavelengths: 588, 656, 486 nm
Fields: 0, 0.7, 1
Object:
 Semi-Angle: 4.22 deg
 Pupil:
   Pupil Distance: 300.475
   Refractive Index: 1.00028
   Update Radius: True
   Radius: 25.7627
Image:
 Radius: 21.6
 Update Radius: True
 Pupil:
   Pupil Distance: -120.971
   Refractive Index: 1.00028
   Update Radius: True
   Radius: 10.6891
Stop: 20
Elements:
 # T   Distance   Rad Curv   Diameter          Material       n      nd      Vd
 0 S          0        inf     70.486         basic/air   1.000   1.000   89.30
 1 S         20      109.5      54.22                 -   1.487   1.487   70.31
 2 S        4.6        inf      54.22         basic/air   1.000   1.000   89.30
 3 S        0.2      101.2      50.98                 -   1.620   1.620   36.40
 4 S        1.8      49.81      49.44                 -   1.497   1.497   81.61
 5 S        7.2      385.8      49.44         basic/air   1.000   1.000   89.30
 6 S     61.895        176       33.9                 -   1.697   1.697   55.52
 7 S        1.7      31.37       33.9         basic/air   1.000   1.000   89.30
 8 S       5.15      32.61      29.12                 -   1.785   1.785   25.64
 9 S        5.5     -129.8      29.12         basic/air   1.000   1.000   89.30
10 S      1.447     -415.4      25.54                 -   1.772   1.772   49.62
11 S        1.3      34.31      25.54         basic/air   1.000   1.000   89.30
12 S        4.3     -33.15      24.18                 -   1.850   1.850   32.35
13 S        1.2     -203.6      24.18         basic/air   1.000   1.000   89.30
14 S          2       70.9      25.88                 -   1.801   1.801   34.92
15 S        1.2      30.28      25.88                 -   1.640   1.640   60.20
16 S        5.9     -70.14      25.88         basic/air   1.000   1.000   89.30
17 S        1.5      34.09      26.22                 -   1.487   1.487   70.31
18 S          6     -42.61      25.72                 -   1.806   1.806   40.97
19 S        1.3      401.3      25.72         basic/air   1.000   1.000   89.30
20 S        2.7        inf     23.219         basic/air   1.000   1.000   89.30
21 S      14.11        350      24.52                 -   1.834   1.834   37.18
22 S        1.2      30.16      24.52                 -   1.517   1.517   63.88
23 S        4.8     -94.99      24.52         basic/air   1.000   1.000   89.30
24 S        0.2      66.32      24.68                 -   1.801   1.801   34.92
25 S        2.8     -132.5      24.68         basic/air   1.000   1.000   89.30
26 S      3.895      -92.1      22.48                 -   1.805   1.805   25.45
27 S        2.2     -44.01      22.48         basic/air   1.000   1.000   89.30
28 S        6.5     -36.97      19.78                 -   1.772   1.772   49.62
29 S          1      68.33      19.78         basic/air   1.000   1.000   89.30
30 S     19.703      -24.5      26.34                 -   1.620   1.620   36.40
31 S        1.4     -41.15      28.18         basic/air   1.000   1.000   89.30
32 S        0.2        106      33.16                 -   1.670   1.670   47.14
33 S        3.8       -106      33.16         basic/air   1.000   1.000   89.30
34 S      67.12        inf       43.2         basic/air   1.000   1.000   89.30

c:\software\python37\lib\site-packages\rayopt\analysis.py:316: UserWarning: No contour levels were found within the data range.
  axo.contour(x, y, o, v, cmap=plt.cm.RdBu_r)
System: US 2019/0353880 Example 1 (Nikon AF-P Nikkor 70-300mm f/4.5-5.6E ED VR)
Scale: 1.0 mm
Wavelengths: 588, 656, 486 nm
Fields: 0, 0.7, 1
Object:
 Semi-Angle: 4.22 deg
 Pupil:
   Pupil Distance: 300.475
   Refractive Index: 1.00028
   Update Radius: True
   Radius: 25.7627
Image:
 Radius: 21.6
 Update Radius: True
 Pupil:
   Pupil Distance: -120.971
   Refractive Index: 1.00028
   Update Radius: True
   Radius: 10.6891
Stop: 20
Elements:
 # T   Distance   Rad Curv   Diameter          Material       n      nd      Vd
 0 S          0        inf     70.486         basic/air   1.000   1.000   89.30
 1 S         20      109.5      54.22                 -   1.487   1.487   70.31
 2 S        4.6        inf      54.22         basic/air   1.000   1.000   89.30
 3 S        0.2      101.2      50.98                 -   1.620   1.620   36.40
 4 S        1.8      49.81      49.44                 -   1.497   1.497   81.61
 5 S        7.2      385.8      49.44         basic/air   1.000   1.000   89.30
 6 S     61.895        176       33.9                 -   1.697   1.697   55.52
 7 S        1.7      31.37       33.9         basic/air   1.000   1.000   89.30
 8 S       5.15      32.61      29.12                 -   1.785   1.785   25.64
 9 S        5.5     -129.8      29.12         basic/air   1.000   1.000   89.30
10 S      1.447     -415.4      25.54                 -   1.772   1.772   49.62
11 S        1.3      34.31      25.54         basic/air   1.000   1.000   89.30
12 S        4.3     -33.15      24.18                 -   1.850   1.850   32.35
13 S        1.2     -203.6      24.18         basic/air   1.000   1.000   89.30
14 S          2       70.9      25.88                 -   1.801   1.801   34.92
15 S        1.2      30.28      25.88                 -   1.640   1.640   60.20
16 S        5.9     -70.14      25.88         basic/air   1.000   1.000   89.30
17 S        1.5      34.09      26.22                 -   1.487   1.487   70.31
18 S          6     -42.61      25.72                 -   1.806   1.806   40.97
19 S        1.3      401.3      25.72         basic/air   1.000   1.000   89.30
20 S        2.7        inf     23.219         basic/air   1.000   1.000   89.30
21 S      14.11        350      24.52                 -   1.834   1.834   37.18
22 S        1.2      30.16      24.52                 -   1.517   1.517   63.88
23 S        4.8     -94.99      24.52         basic/air   1.000   1.000   89.30
24 S        0.2      66.32      24.68                 -   1.801   1.801   34.92
25 S        2.8     -132.5      24.68         basic/air   1.000   1.000   89.30
26 S      3.895      -92.1      22.48                 -   1.805   1.805   25.45
27 S        2.2     -44.01      22.48         basic/air   1.000   1.000   89.30
28 S        6.5     -36.97      19.78                 -   1.772   1.772   49.62
29 S          1      68.33      19.78         basic/air   1.000   1.000   89.30
30 S     19.703      -24.5      26.34                 -   1.620   1.620   36.40
31 S        1.4     -41.15      28.18         basic/air   1.000   1.000   89.30
32 S        0.2        106      33.16                 -   1.670   1.670   47.14
33 S        3.8       -106      33.16         basic/air   1.000   1.000   89.30
34 S     67.859        inf       43.2         basic/air   1.000   1.000   89.30

lagrange: -1.9032
track length: 178.7
object, image height: [22.1911 21.533 ]
front, back focal length (from PP): [-293.3901  293.3901]
entry, exit pupil height: [25.7627 10.6891]
entry, exit pupil distance: [280.4746 -53.8511]
front, back focal distance: [-426.5328   67.8591]
front, back principal distance: [-133.1427 -225.5309]
front, back nodal distance: [-133.1427 -225.5309]
front, back numerical aperture: [0.     0.0875]
front, back f number: [ 5.6941 13.7238]
front, back working f number: [  inf 5.716]
front, back airy radius: [   inf 0.0041]
transverse, angular magnification: [-0.      2.4102]

 # T      path         n   axial y  axial nu   chief y  chief nu
 0 S         0         1     25.76         0    -22.19   0.07387
 1 S        20     1.487     25.76   -0.1146    -20.71    0.1661
 2 S      24.6         1     25.41   -0.1146     -20.2    0.1661
 3 S      24.8      1.62     25.39   -0.2701    -20.17    0.2896
 4 S      26.6     1.497     25.09   -0.2082    -19.85    0.2406
 5 S      33.8         1     24.08   -0.1772    -18.69    0.2165
 6 S      95.7     1.697     13.12   -0.2291    -5.292    0.2374
 7 S      97.4         1     12.89   0.05717    -5.054    0.1252
 8 S     102.5     1.785     13.19     -0.26    -4.409    0.2313
 9 S       108         1     12.38   -0.3349    -3.697    0.2536
10 S     109.5     1.772      11.9   -0.3128     -3.33    0.2474
11 S     110.8         1     11.67  -0.05009    -3.148    0.1766
12 S     115.1      1.85     11.46    0.2436    -2.389    0.1153
13 S     116.3         1     11.61    0.1951    -2.314     0.125
14 S     118.3     1.801        12   0.05959    -2.064    0.1483
15 S     119.5      1.64     12.04    0.1236    -1.966    0.1378
16 S     125.4         1     12.49  0.009726     -1.47    0.1513
17 S     126.9     1.487      12.5    -0.169    -1.243     0.169
18 S     132.9     1.806     11.82  -0.08058   -0.5611    0.1648
19 S     134.2         1     11.76  -0.05696   -0.4425    0.1639
20 S     136.9         1     11.61  -0.05696 2.753e-15    0.1639
21 S       151     1.834     10.81   -0.0827     2.312    0.1584
22 S     152.2     1.517     10.75   0.03039     2.416    0.1838
23 S       157         1     10.85   -0.0286     2.998    0.1675
24 S     157.2     1.801     10.84   -0.1595     3.031    0.1309
25 S       160         1     10.59   -0.2235     3.235    0.1114
26 S     163.9     1.805     9.724   -0.1385     3.669    0.1435
27 S     166.1         1     9.555   -0.3133     3.844   0.07316
28 S     172.6     1.772     7.519   -0.1562     4.319    0.1634
29 S     173.6         1     7.431  -0.07225     4.411    0.2132
30 S     193.3      1.62     6.008   0.07973     8.611     0.431
31 S     194.7         1     6.077  -0.01179     8.983    0.2958
32 S     194.9      1.67     6.075  -0.05017     9.043    0.2386
33 S     198.7         1      5.96  -0.08783     9.586    0.1781
34 S     265.8         1   0.06656  -0.08783     21.53    0.1781

 # T       SA3      CMA3      AST3      PTZ3      DIS3     TACHC      TCHC
 0 S         0         0         0         0         0         0         0
 1 S   -0.4183    0.2051   -0.1005  -0.06128   0.07931   -0.3198    0.1567
 2 S   -0.1186    0.1717   -0.2488         0    0.3603   -0.1535    0.2224
 3 S   0.03109 -0.007602  0.001858  -0.07745   0.01848   -0.4115    0.1006
 4 S    0.4241   -0.2766    0.1803   0.02087   -0.1312    0.9985   -0.6511
 5 S   -0.1509    0.2211   -0.3239   0.01762    0.4486   -0.1271    0.1861
 6 S   0.07619   -0.1384    0.2515  -0.04777   -0.3702    0.1126   -0.2046
 7 S     2.186   -0.1678   0.01289    0.2681  -0.02157     0.505  -0.03877
 8 S    -2.206   0.04799 -0.001044   -0.2761  0.006029    -1.181   0.02569
 9 S    -3.284     2.153    -1.411  -0.06939    0.9707    -1.034    0.6778
10 S     2.092    -1.506     1.084   0.02148   -0.7955    0.4298   -0.3093
11 S    0.2752   0.08041    0.0235    0.2601   0.08288    0.3364   0.09831
12 S      1.23   -0.7731    0.4858    0.2839   -0.4836    0.7285   -0.4577
13 S    0.1552    0.1532    0.1513  -0.04623    0.1038    0.2577    0.2545
14 S    -1.594   -0.4192   -0.1102   -0.1285  -0.06278   -0.6303   -0.1658
15 S     1.132   0.04578  0.001852   0.03689  0.001567    0.6612   0.02675
16 S  -0.07259   0.07424  -0.07594   -0.1139    0.1942   -0.1541    0.1577
17 S   -0.8635   -0.2632  -0.08022   -0.1968  -0.08444   -0.2481  -0.07563
18 S     1.169    -0.379    0.1229   0.05703  -0.05835    0.4848   -0.1572
19 S -0.001637  0.009647  -0.05685   0.02278    0.2008  -0.04005     0.236
20 S         0        -0         0         0         0        -0         0
21 S  0.001344  -0.00879    0.0575  -0.02661   -0.2021   0.03898    -0.255
22 S    0.7499    0.4009    0.2143   0.07747     0.156    0.4792    0.2562
23 S  -0.05232   0.04981  -0.04741  -0.07344     0.115  -0.09345   0.08896
24 S  -0.02299  -0.03634  -0.05743   -0.1373   -0.3078   -0.2108   -0.3331
25 S   -0.9617    0.2756  -0.07898  -0.06873   0.04233   -0.4632    0.1327
26 S     1.078   -0.2343   0.05093   0.09917  -0.03263    0.6345   -0.1379
27 S    -4.116   -0.1102 -0.002951   -0.2075 -0.005636    -1.005  -0.02691
28 S     2.992     0.253   0.02139    0.2414   0.02222     0.386   0.03264
29 S -0.001261 -0.009591  -0.07295    0.1306    0.4385   0.02696    0.2051
30 S    0.3516    0.1532   0.06674    0.3199    0.1684    0.2269   0.09885
31 S  -0.03688   0.01789 -0.008682   -0.1904   0.09661   -0.1153   0.05593
32 S-0.0004419 -0.003699  -0.03096   -0.0775   -0.9078  -0.02662   -0.2228
33 S  -0.04885    0.0297  -0.01806   -0.0775    0.0581  -0.08267   0.05026
34 S         0        -0         0         0         0        -0         0
     -0.006669  0.008389 0.0005267  -0.01925    0.1002   0.01074   0.02727

Out[4]:
<rayopt.analysis.Analysis at 0x1a2e3c46a58>