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 4,113,357 Example 1 (Nikkor 600mm f/5.6 IF-ED)"
columns = "type distance roc diameter material"
# number of surfaces = 13
lensdata = """
O 0.0 0.0 139.308 AIR
S 20 218.196 107.16 1.50032/81.9
S 13.5 -545.646 107.16 AIR
S 0.3 189.294 103.14 1.50032/81.9
S 14.52 -336.972 103.14 1.7495/35
S 3 766.92 101.3 AIR
S 105.108 -264.576 53.3 1.69895/30
S 6 -80.07 53.3 1.6425/58.1
S 1.998 226.56 53.3 AIR
S 4.998 2142.29 53.3 1.6968/55.6
S 1.998 145.896 53.3 AIR
A 13.662 0 48.488 AIR
S 3 -366.348 53.3 1.50032/81.9
S 4.998 -98.397 53.3 AIR
I 0 0 43.2 AIR
"""
s = ro.system_from_text(lensdata, columns.split(),
    description=description)
s.fields = 0, .7, 1.
s.object.angle = np.deg2rad(2.060000)
s.update()
print(s)
ro.Analysis(s)
Populating the interactive namespace from numpy and matplotlib
System: US 4,113,357 Example 1 (Nikkor 600mm f/5.6 IF-ED)
Scale: 1.0 mm
Wavelengths: 588, 656, 486 nm
Fields: 0, 0.7, 1
Object:
 Semi-Angle: 2.06 deg
 Pupil:
   Pupil Distance: 406.526
   Refractive Index: 1.00028
   Update Radius: True
   Radius: 54.3755
Image:
 Radius: 21.6
 Update Radius: True
 Pupil:
   Pupil Distance: -6.52964
   Refractive Index: 1.00028
   Update Radius: True
   Radius: 24.9461
Stop: 11
Elements:
 # T   Distance   Rad Curv   Diameter          Material       n      nd      Vd
 0 S          0        inf     139.31         basic/air   1.000   1.000   89.30
 1 S         20      218.2     107.16                 -   1.500   1.500   81.90
 2 S       13.5     -545.6     107.16         basic/air   1.000   1.000   89.30
 3 S        0.3      189.3     103.14                 -   1.500   1.500   81.90
 4 S      14.52       -337     103.14                 -   1.750   1.750   35.00
 5 S          3      766.9      101.3         basic/air   1.000   1.000   89.30
 6 S     105.11     -264.6       53.3                 -   1.699   1.699   30.00
 7 S          6     -80.07       53.3                 -   1.643   1.643   58.10
 8 S      1.998      226.6       53.3         basic/air   1.000   1.000   89.30
 9 S      4.998       2142       53.3                 -   1.697   1.697   55.60
10 S      1.998      145.9       53.3         basic/air   1.000   1.000   89.30
11 S     13.662        inf     48.488         basic/air   1.000   1.000   89.30
12 S          3     -366.3       53.3                 -   1.500   1.500   81.90
13 S      4.998      -98.4       53.3         basic/air   1.000   1.000   89.30
14 S          0        inf       43.2         basic/air   1.000   1.000   89.30

System: US 4,113,357 Example 1 (Nikkor 600mm f/5.6 IF-ED)
Scale: 1.0 mm
Wavelengths: 588, 656, 486 nm
Fields: 0, 0.7, 1
Object:
 Semi-Angle: 2.06 deg
 Pupil:
   Pupil Distance: 406.526
   Refractive Index: 1.00028
   Update Radius: True
   Radius: 54.3755
Image:
 Radius: 21.6
 Update Radius: True
 Pupil:
   Pupil Distance: -6.52964
   Refractive Index: 1.00028
   Update Radius: True
   Radius: 24.9461
Stop: 11
Elements:
 # T   Distance   Rad Curv   Diameter          Material       n      nd      Vd
 0 S          0        inf     139.31         basic/air   1.000   1.000   89.30
 1 S         20      218.2     107.16                 -   1.500   1.500   81.90
 2 S       13.5     -545.6     107.16         basic/air   1.000   1.000   89.30
 3 S        0.3      189.3     103.14                 -   1.500   1.500   81.90
 4 S      14.52       -337     103.14                 -   1.750   1.750   35.00
 5 S          3      766.9      101.3         basic/air   1.000   1.000   89.30
 6 S     105.11     -264.6       53.3                 -   1.699   1.699   30.00
 7 S          6     -80.07       53.3                 -   1.643   1.643   58.10
 8 S      1.998      226.6       53.3         basic/air   1.000   1.000   89.30
 9 S      4.998       2142       53.3                 -   1.697   1.697   55.60
10 S      1.998      145.9       53.3         basic/air   1.000   1.000   89.30
11 S     13.662        inf     48.488         basic/air   1.000   1.000   89.30
12 S          3     -366.3       53.3                 -   1.500   1.500   81.90
13 S      4.998      -98.4       53.3         basic/air   1.000   1.000   89.30
14 S      269.3        inf       43.2         basic/air   1.000   1.000   89.30

lagrange: -1.9568
track length: 173.08
object, image height: [14.6256  0.5121]
front, back focal length (from PP): [-601.4433  601.4433]
entry, exit pupil height: [54.3755 24.9461]
entry, exit pupil distance: [386.5263  -6.5296]
front, back focal distance: [-924.1927  269.3232]
front, back principal distance: [-322.7493 -332.1201]
front, back nodal distance: [-322.7493 -332.1201]
front, back numerical aperture: [0.     0.0901]
front, back f number: [ 5.5305 12.0548]
front, back working f number: [  inf 5.553]
front, back airy radius: [  inf 0.004]
transverse, angular magnification: [-0.      2.1797]

 # T      path         n   axial y  axial nu   chief y  chief nu
 0 S         0         1     54.38         0    -14.63   0.03599
 1 S        20       1.5     54.38   -0.1246    -13.91   0.06786
 2 S      33.5         1     53.25   -0.1734     -13.3   0.08004
 3 S      33.8       1.5      53.2    -0.314    -13.27    0.1151
 4 S     48.32      1.75     50.16   -0.2769    -12.16    0.1061
 5 S     51.32         1     49.69   -0.2283    -11.98   0.09441
 6 S     156.4     1.699      25.7   -0.1605    -2.055   0.08898
 7 S     162.4     1.643     25.13   -0.1782    -1.741   0.09021
 8 S     164.4         1     24.91   -0.1076    -1.631   0.08558
 9 S     169.4     1.697     24.38   -0.1155    -1.204   0.08598
10 S     171.4         1     24.24 0.0002476    -1.102   0.08071
11 S     185.1         1     24.24 0.0002476 1.908e-16   0.08071
12 S     188.1       1.5     24.24   0.03334    0.2421   0.08104
13 S     193.1         1     24.36  -0.09043    0.5121   0.07844
14 S     193.1         1     24.36  -0.09043    0.5121   0.07844

 # T       SA3      CMA3      AST3      PTZ3      DIS3     TACHC      TCHC
 0 S         0         0         0         0         0         0         0
 1 S  -0.02447  0.002726-0.0003036 -0.000765  0.000119  -0.01444  0.001608
 2 S  -0.06038   0.02326 -0.008961-0.0003059   0.00357  -0.01537   0.00592
 3 S  0.002733 0.0002515 2.314e-05-0.0008819  -7.9e-05 -0.006101-0.0005613
 4 S   0.09289  -0.02926  0.009214 0.0001411 -0.002947   0.05761  -0.01815
 5 S  -0.02394   0.01154 -0.005559 0.0002797  0.002544  -0.02602   0.01254
 6 S   0.06148   -0.0193  0.006059 0.0007785 -0.002147   0.03001  -0.00942
 7 S  -0.01654  0.003003-0.0005451-0.0001266 0.0001219  -0.03184  0.005781
 8 S-8.063e-07-2.587e-05-0.0008301 0.0008644    0.0011 0.0001072  0.003439
 9 S  0.001988 -0.001757  0.001554-9.597e-05 -0.001289  0.004529 -0.004004
10 S  0.003546  0.001558  0.000685  0.001409 0.0009204  0.007795  0.003426
11 S        -0        -0        -0         0         0         0         0
12 S 0.0002009-0.0002439 0.0002961 0.0004557-0.0009125  0.001702 -0.002066
13 S   -0.0383  0.008299 -0.001798 -0.001697 0.0007571 -0.008765  0.001899
14 S         0        -0         0         0         0        -0         0
    -0.0008111 5.183e-05-0.0001653 5.669e-05  0.001759 -0.000785 0.0004118

Out[1]:
<rayopt.analysis.Analysis at 0x258a4beaf98>
In [ ]: