In [2]:
%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 = "AI AF-S Zoom-Nikkor 80-200mm f/2.8D IF-ED (JP2000-019398 Example 1)"
columns = "type distance roc diameter material"
# number of surfaces = 33
lensdata = """
O 0.0 0.0 92.95 AIR
S 20 97.0939 71.5 1.80518/25.41
S 3.8 72.6165 71.2 1.49782/82.52
S 10.4 268.085 71.2 AIR
S 0.1 157.772 69.92 1.49782/82.52
S 5.3 894.956 69.92 AIR
S 17.085 50.7516 56 1.84666/23.82
S 2.2 44.4939 54.55 AIR
S 1.81 53.1452 54.55 1.48749/70.41
S 9 17654.6 54.55 AIR
S 1.99906 365.805 34.8 1.79668/45.37
S 1.5 33.8586 34.08 AIR
S 7.52 -51.2952 34.08 1.48749/70.41
S 1.8 45.0578 35.62 1.84666/23.82
S 6 -287.253 34.17 AIR
S 2.11 -60.5102 34.17 1.79668/45.37
S 1.8 8969.21 37.14 AIR
S 32.0553 165.989 36.8 1.49782/82.52
S 4.5 -106.804 38.68 AIR
S 0.2 772.175 38.68 1.49782/82.52
S 7.1 -40.2253 39.7 1.744/45
S 2 -100.148 39.7 AIR
A 3.43076 0 38.414 AIR
S 1 78.6671 40.48 1.78797/47.47
S 3.5 216.225 40.48 AIR
S 0.2 39.9627 39.2 1.49782/82.52
S 6 168.823 38.18 1.62004/36.27
S 4.4 38.2994 34.58 AIR
S 30.5 272.261 34.34 1.53172/48.97
S 5 -62.3609 34.34 AIR
S 14.8 -36.5028 34.08 1.80384/33.89
S 1.9 -160.609 36.12 AIR
S 0.2 137.343 37.92 1.77279/49.45
S 4.6 -111.871 37.92 AIR
I 57.0195 0 43.28 AIR
"""
s = ro.system_from_text(lensdata, columns.split(),
    description=description)
s.fields = 0, .7, 1.
s.object.angle = np.deg2rad(15.405000)
s.update()
print(s)
ro.Analysis(s)
Populating the interactive namespace from numpy and matplotlib
System: AI AF-S Zoom-Nikkor 80-200mm f/2.8D IF-ED (JP2000-019398 Example 1)
Scale: 1.0 mm
Wavelengths: 588, 656, 486 nm
Fields: 0, 0.7, 1
Object:
 Semi-Angle: 15.4 deg
 Pupil:
   Pupil Distance: 138.634
   Refractive Index: 1.00028
   Update Radius: True
   Radius: 14.4613
Image:
 Radius: 21.6
 Update Radius: True
 Pupil:
   Pupil Distance: -132.336
   Refractive Index: 1.00028
   Update Radius: True
   Radius: 23.466
Stop: 22
Elements:
 # T   Distance   Rad Curv   Diameter          Material       n      nd      Vd
 0 S          0        inf      92.95         basic/air   1.000   1.000   89.30
 1 S         20      97.09       71.5                 -   1.805   1.805   25.41
 2 S        3.8      72.62       71.2                 -   1.498   1.498   82.52
 3 S       10.4      268.1       71.2         basic/air   1.000   1.000   89.30
 4 S        0.1      157.8      69.92                 -   1.498   1.498   82.52
 5 S        5.3        895      69.92         basic/air   1.000   1.000   89.30
 6 S     17.085      50.75         56                 -   1.847   1.847   23.82
 7 S        2.2      44.49      54.55         basic/air   1.000   1.000   89.30
 8 S       1.81      53.15      54.55                 -   1.487   1.487   70.41
 9 S          9  1.765e+04      54.55         basic/air   1.000   1.000   89.30
10 S     1.9991      365.8       34.8                 -   1.797   1.797   45.37
11 S        1.5      33.86      34.08         basic/air   1.000   1.000   89.30
12 S       7.52      -51.3      34.08                 -   1.487   1.487   70.41
13 S        1.8      45.06      35.62                 -   1.847   1.847   23.82
14 S          6     -287.3      34.17         basic/air   1.000   1.000   89.30
15 S       2.11     -60.51      34.17                 -   1.797   1.797   45.37
16 S        1.8       8969      37.14         basic/air   1.000   1.000   89.30
17 S     32.055        166       36.8                 -   1.498   1.498   82.52
18 S        4.5     -106.8      38.68         basic/air   1.000   1.000   89.30
19 S        0.2      772.2      38.68                 -   1.498   1.498   82.52
20 S        7.1     -40.23       39.7                 -   1.744   1.744   45.00
21 S          2     -100.1       39.7         basic/air   1.000   1.000   89.30
22 S     3.4308        inf     38.414         basic/air   1.000   1.000   89.30
23 S          1      78.67      40.48                 -   1.788   1.788   47.47
24 S        3.5      216.2      40.48         basic/air   1.000   1.000   89.30
25 S        0.2      39.96       39.2                 -   1.498   1.498   82.52
26 S          6      168.8      38.18                 -   1.620   1.620   36.27
27 S        4.4       38.3      34.58         basic/air   1.000   1.000   89.30
28 S       30.5      272.3      34.34                 -   1.532   1.532   48.97
29 S          5     -62.36      34.34         basic/air   1.000   1.000   89.30
30 S       14.8      -36.5      34.08                 -   1.804   1.804   33.89
31 S        1.9     -160.6      36.12         basic/air   1.000   1.000   89.30
32 S        0.2      137.3      37.92                 -   1.773   1.773   49.45
33 S        4.6     -111.9      37.92         basic/air   1.000   1.000   89.30
34 S      57.02        inf      43.28         basic/air   1.000   1.000   89.30

System: AI AF-S Zoom-Nikkor 80-200mm f/2.8D IF-ED (JP2000-019398 Example 1)
Scale: 1.0 mm
Wavelengths: 588, 656, 486 nm
Fields: 0, 0.7, 1
Object:
 Semi-Angle: 15.4 deg
 Pupil:
   Pupil Distance: 138.634
   Refractive Index: 1.00028
   Update Radius: True
   Radius: 14.4613
Image:
 Radius: 21.6
 Update Radius: True
 Pupil:
   Pupil Distance: -132.336
   Refractive Index: 1.00028
   Update Radius: True
   Radius: 23.466
Stop: 22
Elements:
 # T   Distance   Rad Curv   Diameter          Material       n      nd      Vd
 0 S          0        inf      92.95         basic/air   1.000   1.000   89.30
 1 S         20      97.09       71.5                 -   1.805   1.805   25.41
 2 S        3.8      72.62       71.2                 -   1.498   1.498   82.52
 3 S       10.4      268.1       71.2         basic/air   1.000   1.000   89.30
 4 S        0.1      157.8      69.92                 -   1.498   1.498   82.52
 5 S        5.3        895      69.92         basic/air   1.000   1.000   89.30
 6 S     17.085      50.75         56                 -   1.847   1.847   23.82
 7 S        2.2      44.49      54.55         basic/air   1.000   1.000   89.30
 8 S       1.81      53.15      54.55                 -   1.487   1.487   70.41
 9 S          9  1.765e+04      54.55         basic/air   1.000   1.000   89.30
10 S     1.9991      365.8       34.8                 -   1.797   1.797   45.37
11 S        1.5      33.86      34.08         basic/air   1.000   1.000   89.30
12 S       7.52      -51.3      34.08                 -   1.487   1.487   70.41
13 S        1.8      45.06      35.62                 -   1.847   1.847   23.82
14 S          6     -287.3      34.17         basic/air   1.000   1.000   89.30
15 S       2.11     -60.51      34.17                 -   1.797   1.797   45.37
16 S        1.8       8969      37.14         basic/air   1.000   1.000   89.30
17 S     32.055        166       36.8                 -   1.498   1.498   82.52
18 S        4.5     -106.8      38.68         basic/air   1.000   1.000   89.30
19 S        0.2      772.2      38.68                 -   1.498   1.498   82.52
20 S        7.1     -40.23       39.7                 -   1.744   1.744   45.00
21 S          2     -100.1       39.7         basic/air   1.000   1.000   89.30
22 S     3.4308        inf     38.414         basic/air   1.000   1.000   89.30
23 S          1      78.67      40.48                 -   1.788   1.788   47.47
24 S        3.5      216.2      40.48         basic/air   1.000   1.000   89.30
25 S        0.2      39.96       39.2                 -   1.498   1.498   82.52
26 S          6      168.8      38.18                 -   1.620   1.620   36.27
27 S        4.4       38.3      34.58         basic/air   1.000   1.000   89.30
28 S       30.5      272.3      34.34                 -   1.532   1.532   48.97
29 S          5     -62.36      34.34         basic/air   1.000   1.000   89.30
30 S       14.8      -36.5      34.08                 -   1.804   1.804   33.89
31 S        1.9     -160.6      36.12         basic/air   1.000   1.000   89.30
32 S        0.2      137.3      37.92                 -   1.773   1.773   49.45
33 S        4.6     -111.9      37.92         basic/air   1.000   1.000   89.30
34 S     57.097        inf      43.28         basic/air   1.000   1.000   89.30

lagrange: -4.0379
track length: 193.81
object, image height: [38.6993 22.7656]
front, back focal length (from PP): [-81.6594  81.6594]
entry, exit pupil height: [14.4613 23.466 ]
entry, exit pupil distance: [118.6343 -75.3168]
front, back focal distance: [68.2915 57.1744]
front, back principal distance: [149.9509 -24.485 ]
front, back nodal distance: [149.9509 -24.485 ]
front, back numerical aperture: [0.     0.1744]
front, back f number: [2.8234 1.74  ]
front, back working f number: [   inf 2.8673]
front, back airy radius: [   inf 0.0021]
transverse, angular magnification: [-0.      0.6163]

 # T      path         n   axial y  axial nu   chief y  chief nu
 0 S         0         1     14.46         0     -38.7    0.2792
 1 S        20     1.805     14.46   -0.1199    -33.12    0.5538
 2 S      23.8     1.498     14.21  -0.05974    -31.95    0.4185
 3 S      34.2         1     13.79  -0.03414    -29.04    0.3646
 4 S      34.3     1.498     13.79  -0.07763    -29.01    0.4561
 5 S      39.6         1     13.52  -0.07012    -27.39    0.4409
 6 S     56.69     1.847     12.32   -0.2756    -19.86    0.7721
 7 S     58.89         1     11.99  -0.04747    -18.94    0.4118
 8 S      60.7     1.487      11.9   -0.1566     -18.2    0.5786
 9 S      69.7         1     10.96   -0.1563     -14.7    0.5782
10 S     71.69     1.797     10.64   -0.1795    -13.54    0.6077
11 S     73.19         1     10.49   0.06737    -13.04    0.3011
12 S     80.71     1.487        11    0.1719    -10.77    0.1988
13 S     82.51     1.847     11.21   0.08251    -10.53    0.2827
14 S     88.51         1     11.48    0.0487    -9.613     0.311
15 S     90.62     1.797     11.58    0.2011    -8.957    0.1932
16 S     92.42         1     11.78    0.2021    -8.763    0.1924
17 S     124.5     1.498     18.26    0.1474    -2.598    0.2002
18 S       129         1      18.7   0.06029    -1.997    0.2095
19 S     129.2     1.498     18.71   0.04823    -1.955    0.2107
20 S     136.3     1.744     18.94    0.1642    -0.956    0.2049
21 S     138.3         1     19.13   0.02209   -0.7211    0.2102
22 S     141.7         1     19.21   0.02209-1.297e-15    0.2102
23 S     142.7     1.788     19.23   -0.1704    0.2102    0.2081
24 S     146.2         1      18.9   -0.1016    0.6176    0.2104
25 S     146.4     1.498     18.88   -0.3366    0.6597    0.2022
26 S     152.4      1.62     17.53   -0.3493     1.469    0.2011
27 S     156.8         1     16.58  -0.08103     2.016    0.2337
28 S     187.3     1.532     14.11   -0.1086     9.142    0.2159
29 S     192.3         1     13.75   -0.2258     9.847     0.132
30 S     207.1     1.804     10.41   0.00344      11.8    0.3917
31 S       209         1     10.42  -0.04867     12.21    0.3306
32 S     209.2     1.773     10.41   -0.1072     12.28    0.2615
33 S     213.8         1     10.13   -0.1771     12.96    0.1721
34 S     270.8         1   0.03024   -0.1771     22.77    0.1721

 # T       SA3      CMA3      AST3      PTZ3      DIS3     TACHC      TCHC
 0 S         0         0         0         0         0         0         0
 1 S  -0.03329   0.01384 -0.005755    -0.211   0.09013   -0.2132   0.08866
 2 S   0.02216  -0.02284   0.02354   0.07195  -0.09843    0.2528   -0.2606
 3 S-8.748e-05 -0.001294  -0.01913   0.05694    0.5591  0.005423    0.0802
 4 S-5.309e-05  -0.00018-0.0006104  -0.09675   -0.3301  -0.01668  -0.05654
 5 S  -0.00409    0.0305   -0.2275   0.01706     1.569  -0.01687    0.1258
 6 S   -0.0111 -0.003174-0.0009072    -0.415   -0.1189   -0.2308  -0.06597
 7 S   0.05561 -0.003536 0.0002248    0.4733  -0.03011    0.2889  -0.01837
 8 S  -0.02442 -0.009573 -0.003753   -0.2832   -0.1125  -0.05513  -0.02161
 9 S  -0.06395    0.2372   -0.8797 0.0008525     3.259  -0.04473    0.1659
10 S   0.04884   -0.2078    0.8842  -0.05568    -3.525   0.07458   -0.3173
11 S     0.518   -0.1153   0.02567    0.6016   -0.1396    0.2182  -0.04857
12 S  0.006942  -0.02411   0.08376    0.2934     -1.31   0.04245   -0.1475
13 S   -0.4962    0.1364  -0.03747   -0.1334   0.04695   -0.4998    0.1373
14 S 6.034e-05  0.002381   0.09397  -0.07332    0.8153   0.01087     0.429
15 S  0.009063  -0.02915   0.09378    0.3366    -1.384   0.09104   -0.2928
16 S    0.1921    0.1807      0.17  0.002271    0.1621     0.132    0.1242
17 S   -0.6839   -0.3871   -0.2191  -0.09196   -0.1761   -0.1293  -0.07322
18 S -0.003791  0.007531  -0.01496   -0.1429    0.3136  -0.04874   0.09683
19 S  -0.01461  -0.03577  -0.08756  -0.01977   -0.2627   -0.0359  -0.08787
20 S    0.7488   -0.2807    0.1052    0.1077  -0.07981    0.3827   -0.1434
21 S  -0.04912    0.0632  -0.08132   -0.1957    0.3564   -0.1727    0.2223
22 S        -0         0        -0         0         0         0         0
23 S   -0.2905    -0.232   -0.1853   -0.2573   -0.3535   -0.2682   -0.2142
24 S-0.0005182  0.007781   -0.1168   0.09362    0.3485  -0.01404    0.2108
25 S   -0.3548   -0.2171   -0.1328   -0.3819   -0.3149   -0.1588  -0.09717
26 S   0.02747  -0.03264   0.03879  -0.01371  -0.02979    0.1168   -0.1387
27 S    0.3016    0.2454    0.1997     0.459    0.5359     0.347    0.2824
28 S  0.001177  -0.01078   0.09864  -0.05856   -0.3669   0.01646   -0.1506
29 S    -1.386  -0.08066 -0.004696   -0.2557  -0.01516   -0.2452  -0.01428
30 S     1.738    0.6508    0.2437    0.5608    0.3012    0.3944    0.1477
31 S  -0.01881   0.04218  -0.09456   -0.1275    0.4977  -0.08765    0.1965
32 S 0.0003135  0.004856   0.07522   -0.1458    -1.093  -0.01402   -0.2172
33 S   -0.2924   0.06142   -0.0129    -0.179    0.0403   -0.1347   0.02829
34 S         0        -0         0         0         0        -0         0
      -0.05679 -0.009505   0.01156    -0.063   -0.8455  -0.01296  -0.03015

Out[2]:
<rayopt.analysis.Analysis at 0x1be9b1b5160>
In [3]:
description = "AI AF-S Zoom-Nikkor 80-200mm f/2.8D IF-ED (JP2000-019398 Example 1)"
columns = "type distance roc diameter material"
# number of surfaces = 33
lensdata = """
O 0.0 0.0 92.95 AIR
S 20 97.0939 71.5 1.80518/25.41
S 3.8 72.6165 71.2 1.49782/82.52
S 10.4 268.085 71.2 AIR
S 0.1 157.772 69.92 1.49782/82.52
S 5.3 894.956 69.92 AIR
S 17.085 50.7516 56 1.84666/23.82
S 2.2 44.4939 54.55 AIR
S 1.81 53.1452 54.55 1.48749/70.41
S 9 17654.6 54.55 AIR
S 16.0498 365.805 34.8 1.79668/45.37
S 1.5 33.8586 34.08 AIR
S 7.52 -51.2952 34.08 1.48749/70.41
S 1.8 45.0578 35.62 1.84666/23.82
S 6 -287.253 34.17 AIR
S 2.11 -60.5102 34.17 1.79668/45.37
S 1.8 8969.21 37.14 AIR
S 18.136 165.989 36.8 1.49782/82.52
S 4.5 -106.804 38.68 AIR
S 0.2 772.175 38.68 1.49782/82.52
S 7.1 -40.2253 39.7 1.744/45
S 2 -100.148 39.7 AIR
A 3.29935 0 38.432 AIR
S 1 78.6671 40.48 1.78797/47.47
S 3.5 216.225 40.48 AIR
S 0.2 39.9627 39.2 1.49782/82.52
S 6 168.823 38.18 1.62004/36.27
S 4.4 38.2994 34.58 AIR
S 30.5 272.261 34.34 1.53172/48.97
S 5 -62.3609 34.34 AIR
S 14.8 -36.5028 34.08 1.80384/33.89
S 1.9 -160.609 36.12 AIR
S 0.2 137.343 37.92 1.77279/49.45
S 4.6 -111.871 37.92 AIR
I 57.0195 0 43.28 AIR
"""
s = ro.system_from_text(lensdata, columns.split(),
    description=description)
s.fields = 0, .7, 1.
s.object.angle = np.deg2rad(9.080000)
s.update()
print(s)
ro.Analysis(s)
System: AI AF-S Zoom-Nikkor 80-200mm f/2.8D IF-ED (JP2000-019398 Example 1)
Scale: 1.0 mm
Wavelengths: 588, 656, 486 nm
Fields: 0, 0.7, 1
Object:
 Semi-Angle: 9.08 deg
 Pupil:
   Pupil Distance: 210.369
   Refractive Index: 1.00028
   Update Radius: True
   Radius: 23.9348
Image:
 Radius: 21.6
 Update Radius: True
 Pupil:
   Pupil Distance: -132.336
   Refractive Index: 1.00028
   Update Radius: True
   Radius: 23.477
Stop: 22
Elements:
 # T   Distance   Rad Curv   Diameter          Material       n      nd      Vd
 0 S          0        inf      92.95         basic/air   1.000   1.000   89.30
 1 S         20      97.09       71.5                 -   1.805   1.805   25.41
 2 S        3.8      72.62       71.2                 -   1.498   1.498   82.52
 3 S       10.4      268.1       71.2         basic/air   1.000   1.000   89.30
 4 S        0.1      157.8      69.92                 -   1.498   1.498   82.52
 5 S        5.3        895      69.92         basic/air   1.000   1.000   89.30
 6 S     17.085      50.75         56                 -   1.847   1.847   23.82
 7 S        2.2      44.49      54.55         basic/air   1.000   1.000   89.30
 8 S       1.81      53.15      54.55                 -   1.487   1.487   70.41
 9 S          9  1.765e+04      54.55         basic/air   1.000   1.000   89.30
10 S      16.05      365.8       34.8                 -   1.797   1.797   45.37
11 S        1.5      33.86      34.08         basic/air   1.000   1.000   89.30
12 S       7.52      -51.3      34.08                 -   1.487   1.487   70.41
13 S        1.8      45.06      35.62                 -   1.847   1.847   23.82
14 S          6     -287.3      34.17         basic/air   1.000   1.000   89.30
15 S       2.11     -60.51      34.17                 -   1.797   1.797   45.37
16 S        1.8       8969      37.14         basic/air   1.000   1.000   89.30
17 S     18.136        166       36.8                 -   1.498   1.498   82.52
18 S        4.5     -106.8      38.68         basic/air   1.000   1.000   89.30
19 S        0.2      772.2      38.68                 -   1.498   1.498   82.52
20 S        7.1     -40.23       39.7                 -   1.744   1.744   45.00
21 S          2     -100.1       39.7         basic/air   1.000   1.000   89.30
22 S     3.2994        inf     38.432         basic/air   1.000   1.000   89.30
23 S          1      78.67      40.48                 -   1.788   1.788   47.47
24 S        3.5      216.2      40.48         basic/air   1.000   1.000   89.30
25 S        0.2      39.96       39.2                 -   1.498   1.498   82.52
26 S          6      168.8      38.18                 -   1.620   1.620   36.27
27 S        4.4       38.3      34.58         basic/air   1.000   1.000   89.30
28 S       30.5      272.3      34.34                 -   1.532   1.532   48.97
29 S          5     -62.36      34.34         basic/air   1.000   1.000   89.30
30 S       14.8      -36.5      34.08                 -   1.804   1.804   33.89
31 S        1.9     -160.6      36.12         basic/air   1.000   1.000   89.30
32 S        0.2      137.3      37.92                 -   1.773   1.773   49.45
33 S        4.6     -111.9      37.92         basic/air   1.000   1.000   89.30
34 S      57.02        inf      43.28         basic/air   1.000   1.000   89.30

System: AI AF-S Zoom-Nikkor 80-200mm f/2.8D IF-ED (JP2000-019398 Example 1)
Scale: 1.0 mm
Wavelengths: 588, 656, 486 nm
Fields: 0, 0.7, 1
Object:
 Semi-Angle: 9.08 deg
 Pupil:
   Pupil Distance: 210.369
   Refractive Index: 1.00028
   Update Radius: True
   Radius: 23.9348
Image:
 Radius: 21.6
 Update Radius: True
 Pupil:
   Pupil Distance: -132.336
   Refractive Index: 1.00028
   Update Radius: True
   Radius: 23.477
Stop: 22
Elements:
 # T   Distance   Rad Curv   Diameter          Material       n      nd      Vd
 0 S          0        inf      92.95         basic/air   1.000   1.000   89.30
 1 S         20      97.09       71.5                 -   1.805   1.805   25.41
 2 S        3.8      72.62       71.2                 -   1.498   1.498   82.52
 3 S       10.4      268.1       71.2         basic/air   1.000   1.000   89.30
 4 S        0.1      157.8      69.92                 -   1.498   1.498   82.52
 5 S        5.3        895      69.92         basic/air   1.000   1.000   89.30
 6 S     17.085      50.75         56                 -   1.847   1.847   23.82
 7 S        2.2      44.49      54.55         basic/air   1.000   1.000   89.30
 8 S       1.81      53.15      54.55                 -   1.487   1.487   70.41
 9 S          9  1.765e+04      54.55         basic/air   1.000   1.000   89.30
10 S      16.05      365.8       34.8                 -   1.797   1.797   45.37
11 S        1.5      33.86      34.08         basic/air   1.000   1.000   89.30
12 S       7.52      -51.3      34.08                 -   1.487   1.487   70.41
13 S        1.8      45.06      35.62                 -   1.847   1.847   23.82
14 S          6     -287.3      34.17         basic/air   1.000   1.000   89.30
15 S       2.11     -60.51      34.17                 -   1.797   1.797   45.37
16 S        1.8       8969      37.14         basic/air   1.000   1.000   89.30
17 S     18.136        166       36.8                 -   1.498   1.498   82.52
18 S        4.5     -106.8      38.68         basic/air   1.000   1.000   89.30
19 S        0.2      772.2      38.68                 -   1.498   1.498   82.52
20 S        7.1     -40.23       39.7                 -   1.744   1.744   45.00
21 S          2     -100.1       39.7         basic/air   1.000   1.000   89.30
22 S     3.2994        inf     38.432         basic/air   1.000   1.000   89.30
23 S          1      78.67      40.48                 -   1.788   1.788   47.47
24 S        3.5      216.2      40.48         basic/air   1.000   1.000   89.30
25 S        0.2      39.96       39.2                 -   1.498   1.498   82.52
26 S          6      168.8      38.18                 -   1.620   1.620   36.27
27 S        4.4       38.3      34.58         basic/air   1.000   1.000   89.30
28 S       30.5      272.3      34.34                 -   1.532   1.532   48.97
29 S          5     -62.36      34.34         basic/air   1.000   1.000   89.30
30 S       14.8      -36.5      34.08                 -   1.804   1.804   33.89
31 S        1.9     -160.6      36.12         basic/air   1.000   1.000   89.30
32 S        0.2      137.3      37.92                 -   1.773   1.773   49.45
33 S        4.6     -111.9      37.92         basic/air   1.000   1.000   89.30
34 S     57.284        inf      43.28         basic/air   1.000   1.000   89.30

lagrange: -3.8427
track length: 193.81
object, image height: [33.7651 21.6547]
front, back focal length (from PP): [-135.1319  135.1319]
entry, exit pupil height: [23.9348 23.477 ]
entry, exit pupil distance: [190.3691 -75.3168]
front, back focal distance: [52.5873 57.2145]
front, back principal distance: [187.7192 -77.9174]
front, back nodal distance: [187.7192 -77.9174]
front, back numerical aperture: [0.     0.1745]
front, back f number: [2.8229 2.878 ]
front, back working f number: [   inf 2.8669]
front, back airy radius: [   inf 0.0021]
transverse, angular magnification: [-0.      1.0195]

 # T      path         n   axial y  axial nu   chief y  chief nu
 0 S         0         1     23.93         0    -33.77    0.1605
 1 S        20     1.805     23.93   -0.1984    -30.56    0.4138
 2 S      23.8     1.498     23.52  -0.09888    -29.68    0.2882
 3 S      34.2         1     22.83  -0.05651    -27.68    0.2368
 4 S      34.3     1.498     22.82   -0.1285    -27.66    0.3241
 5 S      39.6         1     22.37   -0.1161    -26.51    0.3093
 6 S     56.69     1.847     20.39   -0.4561    -21.23    0.6634
 7 S     58.89         1     19.84  -0.07857    -20.44    0.2746
 8 S      60.7     1.487      19.7   -0.2592    -19.94    0.4574
 9 S      69.7         1     18.13   -0.2587    -17.17    0.4569
10 S     85.74     1.797     13.98   -0.2891    -9.844    0.4783
11 S     87.24         1     13.74    0.0341    -9.444    0.2562
12 S     94.76     1.487        14    0.1671    -7.518    0.1848
13 S     96.56     1.847      14.2   0.05387    -7.295    0.2429
14 S     102.6         1     14.38   0.01151    -6.505    0.2621
15 S     104.7     1.797      14.4     0.201    -5.952    0.1838
16 S     106.5         1      14.6    0.2023    -5.768    0.1832
17 S     124.6     1.498     18.27    0.1476    -2.446    0.1906
18 S     129.1         1     18.71   0.06039    -1.873    0.1993
19 S     129.3     1.498     18.73   0.04833    -1.834    0.2005
20 S     136.4     1.744     18.95    0.1643   -0.8833    0.1951
21 S     138.4         1     19.14   0.02217   -0.6596       0.2
22 S     141.7         1     19.22   0.02217-1.427e-14       0.2
23 S     142.7     1.788     19.24   -0.1705    0.1999     0.198
24 S     146.2         1      18.9   -0.1016    0.5875    0.2001
25 S     146.4     1.498     18.88   -0.3367    0.6275    0.1923
26 S     152.4      1.62     17.54   -0.3494     1.398    0.1913
27 S     156.8         1     16.59    -0.081     1.917    0.2223
28 S     187.3     1.532     14.12   -0.1086     8.696    0.2053
29 S     192.3         1     13.76   -0.2258     9.366    0.1255
30 S     207.1     1.804     10.42  0.003564     11.22    0.3726
31 S       209         1     10.42  -0.04859     11.62    0.3145
32 S     209.2     1.773     10.41   -0.1072     11.68    0.2488
33 S     213.8         1     10.14   -0.1772     12.32    0.1637
34 S     270.8         1   0.03734   -0.1772     21.65    0.1637

 # T       SA3      CMA3      AST3      PTZ3      DIS3     TACHC      TCHC
 0 S         0         0         0         0         0         0         0
 1 S   -0.2497    0.1562  -0.09768    -0.191    0.1806   -0.5838    0.3652
 2 S    0.1662   -0.1394     0.117   0.06513   -0.1528    0.6923   -0.5809
 3 S-0.0006561 -0.003055  -0.01423   0.05154    0.1737   0.01485   0.06915
 4 S-0.0003982-0.0002775-0.0001934  -0.08758  -0.06117  -0.04566  -0.03182
 5 S  -0.03068   0.09424   -0.2895   0.01544    0.8418  -0.04619    0.1419
 6 S  -0.08328   0.03179  -0.01214   -0.3756     0.148   -0.6319    0.2412
 7 S    0.4171   -0.2099    0.1056    0.4285   -0.2687    0.7911    -0.398
 8 S   -0.1831   0.06315  -0.02178   -0.2564   0.09591   -0.1509   0.05205
 9 S   -0.4797    0.8488    -1.502 0.0007717     2.656   -0.1225    0.2167
10 S    0.3236   -0.6311     1.231   -0.0504    -2.303    0.1697   -0.3311
11 S    0.9273  -0.04808  0.002493    0.5445  -0.02836     0.333  -0.01727
12 S   0.09323   -0.1572    0.2651    0.2656   -0.8948   0.08765   -0.1478
13 S    -0.966   0.08513 -0.007502   -0.1207    0.0113   -0.7426   0.06544
14 S-0.0002585   0.00191   -0.0141  -0.06637    0.5944   -0.0601    0.4439
15 S    0.1057   -0.1682    0.2677    0.3047   -0.9109    0.1796   -0.2858
16 S    0.2395    0.2144     0.192  0.002056    0.1737     0.164    0.1468
17 S   -0.6856   -0.3698   -0.1994  -0.08324   -0.1524   -0.1295  -0.06982
18 S -0.003769  0.007116  -0.01343   -0.1294    0.2696  -0.04875   0.09203
19 S  -0.01468  -0.03414  -0.07942  -0.01789   -0.2264  -0.03595  -0.08363
20 S      0.75   -0.2662   0.09449   0.09748  -0.06814    0.3829   -0.1359
21 S  -0.04912   0.06002  -0.07335   -0.1771    0.3061   -0.1728    0.2112
22 S        -0         0        -0         0         0         0         0
23 S   -0.2912   -0.2211   -0.1678   -0.2329   -0.3042   -0.2684   -0.2038
24 S-0.0005136  0.007367   -0.1057   0.08475    0.2999  -0.01398    0.2005
25 S   -0.3557   -0.2069   -0.1203   -0.3457   -0.2711   -0.1589  -0.09243
26 S   0.02748  -0.03106    0.0351  -0.01241  -0.02564    0.1168    -0.132
27 S    0.3025    0.2339    0.1809    0.4155    0.4613    0.3473    0.2686
28 S  0.001171  -0.01022   0.08919  -0.05301   -0.3158   0.01642   -0.1433
29 S    -1.388  -0.07681 -0.004251   -0.2314  -0.01304   -0.2454  -0.01358
30 S     1.742    0.6199    0.2207    0.5076    0.2592    0.3948    0.1405
31 S   -0.0188   0.04009  -0.08552   -0.1154    0.4285  -0.08767     0.187
32 S 0.0003154  0.004623   0.06776    -0.132   -0.9412   -0.0141   -0.2066
33 S   -0.2929   0.05849  -0.01168    -0.162   0.03469   -0.1348   0.02692
34 S         0        -0         0         0         0        -0         0
      0.001892  -0.04621   0.04908  -0.05703 -0.002392 -0.003661 -0.004594

Out[3]:
<rayopt.analysis.Analysis at 0x1be9d7ab828>
In [4]:
description = "AI AF-S Zoom-Nikkor 80-200mm f/2.8D IF-ED (JP2000-019398 Example 1)"
columns = "type distance roc diameter material"
# number of surfaces = 33
lensdata = """
O 0.0 0.0 92.95 AIR
S 20 97.0939 71.5 1.80518/25.41
S 3.8 72.6165 71.2 1.49782/82.52
S 10.4 268.085 71.2 AIR
S 0.1 157.772 69.92 1.49782/82.52
S 5.3 894.956 69.92 AIR
S 17.085 50.7516 56 1.84666/23.82
S 2.2 44.4939 54.55 AIR
S 1.81 53.1452 54.55 1.48749/70.41
S 9 17654.6 54.55 AIR
S 22.8715 365.805 34.8 1.79668/45.37
S 1.5 33.8586 34.08 AIR
S 7.52 -51.2952 34.08 1.48749/70.41
S 1.8 45.0578 35.62 1.84666/23.82
S 6 -287.253 34.17 AIR
S 2.11 -60.5102 34.17 1.79668/45.37
S 1.8 8969.21 37.14 AIR
S 1.61457 165.989 36.8 1.49782/82.52
S 4.5 -106.804 38.68 AIR
S 0.2 772.175 38.68 1.49782/82.52
S 7.1 -40.2253 39.7 1.744/45
S 2 -100.148 39.7 AIR
A 12.999 0 38.032 AIR
S 1 78.6671 40.48 1.78797/47.47
S 3.5 216.225 40.48 AIR
S 0.2 39.9627 39.2 1.49782/82.52
S 6 168.823 38.18 1.62004/36.27
S 4.4 38.2994 34.58 AIR
S 30.5 272.261 34.34 1.53172/48.97
S 5 -62.3609 34.34 AIR
S 14.8 -36.5028 34.08 1.80384/33.89
S 1.9 -160.609 36.12 AIR
S 0.2 137.343 37.92 1.77279/49.45
S 4.6 -111.871 37.92 AIR
I 57.0195 0 43.28 AIR
"""
s = ro.system_from_text(lensdata, columns.split(),
    description=description)
s.fields = 0, .7, 1.
s.object.angle = np.deg2rad(6.205000)
s.update()
print(s)
ro.Analysis(s)
System: AI AF-S Zoom-Nikkor 80-200mm f/2.8D IF-ED (JP2000-019398 Example 1)
Scale: 1.0 mm
Wavelengths: 588, 656, 486 nm
Fields: 0, 0.7, 1
Object:
 Semi-Angle: 6.21 deg
 Pupil:
   Pupil Distance: 272.359
   Refractive Index: 1.00028
   Update Radius: True
   Radius: 34.3668
Image:
 Radius: 21.6
 Update Radius: True
 Pupil:
   Pupil Distance: -132.336
   Refractive Index: 1.00028
   Update Radius: True
   Radius: 23.2327
Stop: 22
Elements:
 # T   Distance   Rad Curv   Diameter          Material       n      nd      Vd
 0 S          0        inf      92.95         basic/air   1.000   1.000   89.30
 1 S         20      97.09       71.5                 -   1.805   1.805   25.41
 2 S        3.8      72.62       71.2                 -   1.498   1.498   82.52
 3 S       10.4      268.1       71.2         basic/air   1.000   1.000   89.30
 4 S        0.1      157.8      69.92                 -   1.498   1.498   82.52
 5 S        5.3        895      69.92         basic/air   1.000   1.000   89.30
 6 S     17.085      50.75         56                 -   1.847   1.847   23.82
 7 S        2.2      44.49      54.55         basic/air   1.000   1.000   89.30
 8 S       1.81      53.15      54.55                 -   1.487   1.487   70.41
 9 S          9  1.765e+04      54.55         basic/air   1.000   1.000   89.30
10 S     22.872      365.8       34.8                 -   1.797   1.797   45.37
11 S        1.5      33.86      34.08         basic/air   1.000   1.000   89.30
12 S       7.52      -51.3      34.08                 -   1.487   1.487   70.41
13 S        1.8      45.06      35.62                 -   1.847   1.847   23.82
14 S          6     -287.3      34.17         basic/air   1.000   1.000   89.30
15 S       2.11     -60.51      34.17                 -   1.797   1.797   45.37
16 S        1.8       8969      37.14         basic/air   1.000   1.000   89.30
17 S     1.6146        166       36.8                 -   1.498   1.498   82.52
18 S        4.5     -106.8      38.68         basic/air   1.000   1.000   89.30
19 S        0.2      772.2      38.68                 -   1.498   1.498   82.52
20 S        7.1     -40.23       39.7                 -   1.744   1.744   45.00
21 S          2     -100.1       39.7         basic/air   1.000   1.000   89.30
22 S     12.999        inf     38.032         basic/air   1.000   1.000   89.30
23 S          1      78.67      40.48                 -   1.788   1.788   47.47
24 S        3.5      216.2      40.48         basic/air   1.000   1.000   89.30
25 S        0.2      39.96       39.2                 -   1.498   1.498   82.52
26 S          6      168.8      38.18                 -   1.620   1.620   36.27
27 S        4.4       38.3      34.58         basic/air   1.000   1.000   89.30
28 S       30.5      272.3      34.34                 -   1.532   1.532   48.97
29 S          5     -62.36      34.34         basic/air   1.000   1.000   89.30
30 S       14.8      -36.5      34.08                 -   1.804   1.804   33.89
31 S        1.9     -160.6      36.12         basic/air   1.000   1.000   89.30
32 S        0.2      137.3      37.92                 -   1.773   1.773   49.45
33 S        4.6     -111.9      37.92         basic/air   1.000   1.000   89.30
34 S      57.02        inf      43.28         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: AI AF-S Zoom-Nikkor 80-200mm f/2.8D IF-ED (JP2000-019398 Example 1)
Scale: 1.0 mm
Wavelengths: 588, 656, 486 nm
Fields: 0, 0.7, 1
Object:
 Semi-Angle: 6.21 deg
 Pupil:
   Pupil Distance: 272.359
   Refractive Index: 1.00028
   Update Radius: True
   Radius: 34.3668
Image:
 Radius: 21.6
 Update Radius: True
 Pupil:
   Pupil Distance: -132.336
   Refractive Index: 1.00028
   Update Radius: True
   Radius: 23.2327
Stop: 22
Elements:
 # T   Distance   Rad Curv   Diameter          Material       n      nd      Vd
 0 S          0        inf      92.95         basic/air   1.000   1.000   89.30
 1 S         20      97.09       71.5                 -   1.805   1.805   25.41
 2 S        3.8      72.62       71.2                 -   1.498   1.498   82.52
 3 S       10.4      268.1       71.2         basic/air   1.000   1.000   89.30
 4 S        0.1      157.8      69.92                 -   1.498   1.498   82.52
 5 S        5.3        895      69.92         basic/air   1.000   1.000   89.30
 6 S     17.085      50.75         56                 -   1.847   1.847   23.82
 7 S        2.2      44.49      54.55         basic/air   1.000   1.000   89.30
 8 S       1.81      53.15      54.55                 -   1.487   1.487   70.41
 9 S          9  1.765e+04      54.55         basic/air   1.000   1.000   89.30
10 S     22.872      365.8       34.8                 -   1.797   1.797   45.37
11 S        1.5      33.86      34.08         basic/air   1.000   1.000   89.30
12 S       7.52      -51.3      34.08                 -   1.487   1.487   70.41
13 S        1.8      45.06      35.62                 -   1.847   1.847   23.82
14 S          6     -287.3      34.17         basic/air   1.000   1.000   89.30
15 S       2.11     -60.51      34.17                 -   1.797   1.797   45.37
16 S        1.8       8969      37.14         basic/air   1.000   1.000   89.30
17 S     1.6146        166       36.8                 -   1.498   1.498   82.52
18 S        4.5     -106.8      38.68         basic/air   1.000   1.000   89.30
19 S        0.2      772.2      38.68                 -   1.498   1.498   82.52
20 S        7.1     -40.23       39.7                 -   1.744   1.744   45.00
21 S          2     -100.1       39.7         basic/air   1.000   1.000   89.30
22 S     12.999        inf     38.032         basic/air   1.000   1.000   89.30
23 S          1      78.67      40.48                 -   1.788   1.788   47.47
24 S        3.5      216.2      40.48         basic/air   1.000   1.000   89.30
25 S        0.2      39.96       39.2                 -   1.498   1.498   82.52
26 S          6      168.8      38.18                 -   1.620   1.620   36.27
27 S        4.4       38.3      34.58         basic/air   1.000   1.000   89.30
28 S       30.5      272.3      34.34                 -   1.532   1.532   48.97
29 S          5     -62.36      34.34         basic/air   1.000   1.000   89.30
30 S       14.8      -36.5      34.08                 -   1.804   1.804   33.89
31 S        1.9     -160.6      36.12         basic/air   1.000   1.000   89.30
32 S        0.2      137.3      37.92                 -   1.773   1.773   49.45
33 S        4.6     -111.9      37.92         basic/air   1.000   1.000   89.30
34 S      57.35        inf      43.28         basic/air   1.000   1.000   89.30

lagrange: -3.7449
track length: 193.81
object, image height: [29.6704 21.3256]
front, back focal length (from PP): [-196.1998  196.1998]
entry, exit pupil height: [34.3668 23.2327]
entry, exit pupil distance: [252.3595 -75.3168]
front, back focal distance: [-37.8579  57.3023]
front, back principal distance: [ 158.3419 -138.8975]
front, back nodal distance: [ 158.3419 -138.8975]
front, back numerical aperture: [0.     0.1726]
front, back f number: [2.8545 4.2225]
front, back working f number: [  inf 2.898]
front, back airy radius: [   inf 0.0021]
transverse, angular magnification: [-0.      1.4792]

 # T      path         n   axial y  axial nu   chief y  chief nu
 0 S         0         1     34.37         0    -29.67     0.109
 1 S        20     1.805     34.37   -0.2849    -27.49    0.3369
 2 S      23.8     1.498     33.77    -0.142    -26.78    0.2235
 3 S      34.2         1     32.78  -0.08114    -25.23    0.1767
 4 S      34.3     1.498     32.77   -0.1845    -25.21    0.2562
 5 S      39.6         1     32.12   -0.1666    -24.31    0.2427
 6 S     56.69     1.847     29.27   -0.6548    -20.16    0.5789
 7 S     58.89         1     28.49   -0.1128    -19.47    0.2085
 8 S      60.7     1.487     28.29   -0.3722    -19.09    0.3836
 9 S      69.7         1     26.04   -0.3714    -16.77    0.3831
10 S     92.57     1.797     17.55   -0.4096    -8.014    0.4005
11 S     94.07         1      17.2 -0.004994    -7.679    0.2199
12 S     101.6     1.487     17.17     0.158    -6.026    0.1627
13 S     103.4     1.847     17.36   0.01969    -5.829    0.2091
14 S     109.4         1     17.42  -0.03164     -5.15    0.2243
15 S     111.5     1.797     17.35    0.1968    -4.677    0.1628
16 S     113.3         1     17.55    0.1983    -4.514    0.1624
17 S     114.9     1.498     17.87    0.1448    -4.251    0.1751
18 S     119.4         1     18.31   0.05948    -3.725    0.1925
19 S     119.6     1.498     18.32   0.04767    -3.687    0.1948
20 S     126.7     1.744     18.54    0.1612    -2.763    0.1779
21 S     128.7         1     18.73   0.02208    -2.559    0.1969
22 S     141.7         1     19.02   0.02208-1.314e-14    0.1969
23 S     142.7     1.788     19.04   -0.1685    0.1969     0.195
24 S     146.2         1     18.71   -0.1004    0.5785    0.1971
25 S     146.4     1.498     18.69   -0.3331    0.6179    0.1894
26 S     152.4      1.62     17.35   -0.3456     1.377    0.1884
27 S     156.8         1     16.42     -0.08     1.888    0.2189
28 S     187.3     1.532     13.98   -0.1073     8.564    0.2022
29 S     192.3         1     13.63   -0.2234     9.224    0.1236
30 S     207.1     1.804     10.32  0.003791     11.05    0.3669
31 S       209         1     10.32  -0.04786     11.44    0.3097
32 S     209.2     1.773     10.31   -0.1059      11.5     0.245
33 S     213.8         1     10.04   -0.1752     12.14    0.1612
34 S     270.8         1   0.05232   -0.1752     21.33    0.1612

 # T       SA3      CMA3      AST3      PTZ3      DIS3     TACHC      TCHC
 0 S         0         0         0         0         0         0         0
 1 S    -1.072    0.5278   -0.2598   -0.1833    0.2181    -1.216    0.5986
 2 S    0.7138   -0.4234    0.2511   0.06251    -0.186     1.442   -0.8555
 3 S -0.002818 -0.005649  -0.01132   0.04946   0.07645   0.03094   0.06202
 4 S  -0.00171-0.0002274-3.023e-05  -0.08405  -0.01118  -0.09512  -0.01265
 5 S   -0.1318    0.2172   -0.3581   0.01482     0.566  -0.09624    0.1586
 6 S   -0.3577    0.1348  -0.05083   -0.3605    0.1551    -1.316    0.4962
 7 S     1.792   -0.7782     0.338    0.4112   -0.3254     1.648   -0.7158
 8 S   -0.7866    0.2828   -0.1017    -0.246     0.125   -0.3145    0.1131
 9 S     -2.06     2.128    -2.198 0.0007406      2.27   -0.2552    0.2636
10 S     1.277    -1.426     1.592  -0.04837    -1.724    0.3158   -0.3526
11 S     1.512  -0.02091 0.0002891    0.5226  -0.00723    0.4817  -0.00666
12 S    0.4311   -0.4282    0.4253    0.2549   -0.6756    0.1545   -0.1534
13 S    -1.734   0.07061 -0.002875   -0.1159  0.004835    -1.054   0.04293
14 S   -0.0158   0.04148   -0.1089   -0.0637    0.4529   -0.1762    0.4625
15 S    0.4641   -0.4395    0.4162    0.2924    -0.671    0.3075   -0.2912
16 S    0.2752    0.2224    0.1797  0.001973    0.1468    0.1956    0.1581
17 S   -0.6371   -0.2847   -0.1272  -0.07989  -0.09254   -0.1253  -0.05601
18 S -0.003319  0.006739  -0.01368   -0.1242    0.2799  -0.04698   0.09539
19 S  -0.01379  -0.03111  -0.07018  -0.01717    -0.197  -0.03493   -0.0788
20 S    0.6925   -0.3207    0.1485   0.09355   -0.1121    0.3701   -0.1714
21 S  -0.04488   0.06053  -0.08163     -0.17    0.3393   -0.1668    0.2249
22 S        -0         0        -0         0         0         0         0
23 S   -0.2829   -0.2136   -0.1613   -0.2236   -0.2905   -0.2658   -0.2007
24 S-0.0004866  0.007017   -0.1012   0.08134    0.2865  -0.01369    0.1975
25 S   -0.3456   -0.1999   -0.1157   -0.3318   -0.2589   -0.1573  -0.09103
26 S   0.02658  -0.02991   0.03367  -0.01191  -0.02449    0.1155     -0.13
27 S    0.2941    0.2262     0.174    0.3987    0.4406    0.3439    0.2645
28 S  0.001118 -0.009772    0.0854  -0.05087   -0.3018   0.01616   -0.1412
29 S    -1.345   -0.0741 -0.004081   -0.2221  -0.01246    -0.243  -0.01338
30 S      1.69    0.5985    0.2119    0.4872    0.2476    0.3911    0.1385
31 S  -0.01812   0.03853   -0.0819   -0.1107    0.4095  -0.08669    0.1843
32 S 0.0003087  0.004456   0.06432   -0.1267   -0.8998  -0.01411   -0.2037
33 S   -0.2839   0.05642  -0.01122   -0.1555   0.03314   -0.1335   0.02654
34 S         0        -0         0         0         0        -0         0
       0.03083  -0.06216   0.06103  -0.05473    0.2614 0.0004694   0.01328

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