#!/usr/bin/python


ir1b1="""\
@ NAME             %06s "OFFSET"
@ TYPE             %06s "OFFSET"
@ REFERENCE        %10s "E.DS.L1.B1"
@ DATE             %08s "09/08/08"
@ TIME             %08s "16:22:18"
* NAME                        S_IP         X_OFF        DX_OFF       DDX_OFF         Y_OFF        DY_OFF       DDY_OFF
$ %s                           %le           %le           %le           %le           %le           %le           %le
 "E.DS.L1.B1"          -268.904000      0.000000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VSSJ.4L1.A.B1"       -163.204844      D2_VAL_1      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBRD.4L1.B1"         -157.900000      D2_VAL_1      0.000000      0.000000      0.000000      0.000000      0.000000
 "VSSJ.4L1.B.B1"       -152.500144      D2_VAL_1      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMARD.4L1.A.B1"      -151.910000      0.000000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VVGST.4L1.A.B1"      -151.650000      0.000000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMARD.4L1.B.B1"      -151.650000      0.000000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMABC.4L1.A.B1"      -151.575000      0.000000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VVGST.4L1.B.B1"      -151.575000      0.000000      0.000000      0.000000      0.000000      0.000000      0.000000
 "BPMWB.4L1.A.B1"      -151.275000      0.010000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMABC.4L1.B.B1"      -151.275000      0.000000      0.000000      0.000000      0.000000      0.000000      0.000000
 "BPMWB.4L1.B.B1"      -151.217000      0.010000      0.000000      0.000000      0.000000      0.000000      0.000000
 "BPMWB.4L1.B1"        -151.094500      0.010000      0.000000      0.000000      0.000000      0.000000      0.000000
 "BPMWB.4L1.C.B1"      -151.048000      0.010000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMGDA.4L1.A.B1"      -150.990000      0.008000      0.000000      0.000000      0.000000      0.000000      0.000000
 "BPMWB.4L1.D.B1"      -150.990000      0.010000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCDQV.4L1.A.B1"      -150.810000      0.008000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMGDA.4L1.B.B1"      -150.810000      0.008000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMGAB.4L1.A.B1"      -148.540000      0.010000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCDQV.4L1.B.B1"      -148.540000      0.008000      0.000000      0.000000      0.000000      0.000000      0.000000
 "TCTH.4L1.A.B1"       -148.260000      0.010900      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMGAB.4L1.B.B1"      -148.260000      0.010000      0.000000      0.000000      0.000000      0.000000      0.000000
 "TCTH.4L1.B1"         -147.520000      0.011750      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMHAA.4L1.A.B1"      -146.780000      0.013000      0.000000      0.000000      0.000000      0.000000      0.000000
 "TCTH.4L1.B.B1"       -146.780000      0.012600      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMHAA.4L1.B.B1"      -146.580000      0.013000      0.000000      0.000000      0.000000      0.000000      0.000000
 "TCTVA.4L1.B1"        -145.840000      0.013650      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMMEL.4L1.A.B1"      -145.300000      0.014000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMMEL.4L1.B.B1"      -144.900000      0.014000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMBGG.4L1.G.B1"       -95.700000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCDW.4L1.N.B1"        -95.700000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCDW.4L1.O.B1"        -95.300000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMBGG.4L1.H.B1"       -95.300000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMBGA.4L1.G.B1"       -89.400000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCDW.4L1.P.B1"        -89.400000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VFCDT.4L1.A.B1"       -89.000000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMBGA.4L1.H.B1"       -89.000000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCTNA.4L1.A.B1"       -88.974000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VFCDT.4L1.B.B1"       -88.974000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4L1.A.B1"       -84.996000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCTNA.4L1.B.B1"       -84.996000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4L1.B.B1"       -84.652000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXW.F4L1"            -82.652000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4L1.C.B1"       -80.756000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4L1.D.B1"       -80.406000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXW.E4L1"            -78.386000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKG.4L1.A.B1"       -76.490000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKG.4L1.B.B1"       -76.140000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXW.D4L1"            -74.120000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4L1.E.B1"       -72.224000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4L1.F.B1"       -71.874000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXW.C4L1"            -69.854000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKG.4L1.C.B1"       -67.958000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKG.4L1.D.B1"       -67.608000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXW.B4L1"            -65.588000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4L1.G.B1"       -63.692000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4L1.H.B1"       -63.342000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXW.A4L1"            -61.322000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXW.A4R1"             61.322000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4R1.A.B1"        63.218000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4R1.B.B1"        63.568000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXW.B4R1"             65.588000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKG.4R1.A.B1"        67.484000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKG.4R1.B.B1"        67.834000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXW.C4R1"             69.854000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4R1.C.B1"        71.750000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4R1.D.B1"        72.100000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXW.D4R1"             74.120000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKG.4R1.C.B1"        76.016000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKG.4R1.D.B1"        76.366000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXW.E4R1"             78.386000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4R1.E.B1"        80.282000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4R1.F.B1"        80.632000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXW.F4R1"             82.652000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4R1.G.B1"        84.548000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCTNB.4R1.A.B1"        84.898000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4R1.H.B1"        84.898000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMBGA.4R1.A.B1"        89.000000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCTNB.4R1.B.B1"        89.000000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCDW.4R1.A.B1"         89.400000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMBGA.4R1.B.B1"        89.400000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMBGG.4R1.A.B1"        95.200000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCDW.4R1.B.B1"         95.300000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMBGG.4R1.B.B1"        95.600000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCDW.4R1.C.B1"         95.700000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMZAW.4R1.A.B1"       144.520000      0.179000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCTCJ.4R1.A.B1"       144.720000      0.177000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMGAB.4R1.A.B1"       144.870000      0.184000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCTCJ.4R1.B.B1"       144.870000      0.179000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCDSQ.4R1.A.B1"       145.150000      0.184000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMGAB.4R1.B.B1"       145.150000      0.179000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMTIA.4R1.A.B1"       148.490000      0.184000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCDSQ.4R1.B.B1"       148.490000      0.180000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCDSS.4R1.A.B1"       148.990000      0.184000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMTIA.4R1.B.B1"       149.010000      0.183000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VAMTC.4R1.A.B1"       150.470000      0.186000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCDSS.4R1.B.B1"       150.470000      0.184000      0.000000      0.000000      0.000000      0.000000      0.000000
 "BPMWB.4R1.A.B1"       150.990000      0.184000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VAMTC.4R1.B.B1"       150.990000      0.186000      0.000000      0.000000      0.000000      0.000000      0.000000
 "BPMWB.4R1.B.B1"       151.048000      0.184000      0.000000      0.000000      0.000000      0.000000      0.000000
 "BPMWB.4R1.B1"         151.094500      0.184000      0.000000      0.000000      0.000000      0.000000      0.000000
 "BPMWB.4R1.C.B1"       151.217000      0.184000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMABC.4R1.A.B1"       151.275000      0.194000      0.000000      0.000000      0.000000      0.000000      0.000000
 "BPMWB.4R1.D.B1"       151.275000      0.184000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VVGST.4R1.A.B1"       151.575000      0.194000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMABC.4R1.B.B1"       151.575000      0.194000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMARD.4R1.A.B1"       151.650000      0.194000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VVGST.4R1.B.B1"       151.650000      0.194000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMARD.4R1.B.B1"       151.910000      0.194000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VSSJ.4R1.A.B1"        152.500141      D2_VAL_2      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBRD.4R1.B1"          157.900000      D2_VAL_2      0.000000      0.000000      0.000000      0.000000      0.000000
 "VSSJ.4R1.B.B1"        163.204841      D2_VAL_2      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXB.4L1"             999.000000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXA.4L1"             999.000000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXA.4R1"             999.000000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXB.4R1"             999.000000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "TANAL.4L1"            999.000000      TAN_VAL1      0.000000      0.000000      0.000000      0.000000      0.000000
 "TANAR.4R1"            999.000000      TAN_VAL2      0.000000      0.000000      0.000000      0.000000      0.000000
"""

ir1b2="""\
@ NAME             %06s "OFFSET"
@ TYPE             %06s "OFFSET"
@ REFERENCE        %10s "E.DS.L1.B2"
@ DATE             %08s "09/08/08"
@ TIME             %08s "16:27:02"
* NAME                        S_IP         X_OFF        DX_OFF       DDX_OFF         Y_OFF        DY_OFF       DDY_OFF
$ %s                           %le           %le           %le           %le           %le           %le           %le
 "E.DS.L1.B2"          -268.904000      0.000000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VSSJ.4L1.A.B2"       -163.204844     -D2_VAL_1      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBRD.4L1.B2"         -157.900000     -D2_VAL_1      0.000000      0.000000      0.000000      0.000000      0.000000
 "VSSJ.4L1.B.B2"       -152.500144     -D2_VAL_1      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMARC.4L1.A.B2"      -151.910000      0.000000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VVGST.4L1.A.B2"      -151.650000      0.000000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMARC.4L1.B.B2"      -151.650000      0.000000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMABD.4L1.A.B2"      -151.575000      0.000000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VVGST.4L1.B.B2"      -151.575000      0.000000      0.000000      0.000000      0.000000      0.000000      0.000000
 "BPMWB.4L1.A.B2"      -151.275000     -0.010000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMABD.4L1.B.B2"      -151.275000      0.000000      0.000000      0.000000      0.000000      0.000000      0.000000
 "BPMWB.4L1.B.B2"      -151.217000     -0.010000      0.000000      0.000000      0.000000      0.000000      0.000000
 "BPMWB.4L1.B2"        -151.170500     -0.010000      0.000000      0.000000      0.000000      0.000000      0.000000
 "BPMWB.4L1.C.B2"      -151.048000     -0.010000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMTNA.4L1.A.B2"      -150.990000     -0.008000      0.000000      0.000000      0.000000      0.000000      0.000000
 "BPMWB.4L1.D.B2"      -150.990000     -0.010000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCDSS.4L1.A.B2"      -150.470000     -0.008000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMTNA.4L1.B.B2"      -150.470000     -0.008000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMTIA.4L1.A.B2"      -148.990000     -0.010000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCDSS.4L1.B.B2"      -148.990000     -0.008000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCDSQ.4L1.A.B2"      -148.490000     -0.010000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMTIA.4L1.B.B2"      -148.470000     -0.010000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMGAB.4L1.A.B2"      -145.150000     -0.010000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCDSQ.4L1.B.B2"      -145.150000     -0.011000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCTCJ.4L1.A.B2"      -144.870000     -0.010000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMGAB.4L1.B.B2"      -144.870000     -0.014000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCTCJ.4L1.B.B2"      -144.720000     -0.015000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMBGG.4L1.G.B2"       -95.700000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCDW.4L1.N.B2"        -95.700000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCDW.4L1.O.B2"        -95.300000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMBGG.4L1.H.B2"       -95.300000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMBGA.4L1.G.B2"       -89.400000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCDW.4L1.P.B2"        -89.400000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VFCDT.4L1.A.B2"       -89.000000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMBGA.4L1.H.B2"       -89.000000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCTNA.4L1.A.B2"       -88.974000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VFCDT.4L1.B.B2"       -88.974000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4L1.A.B2"       -84.996000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCTNA.4L1.B.B2"       -84.996000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCELB.4L1.A.B2"       -84.672000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4L1.B.B2"       -84.652000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXW.F4L1"            -82.652000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4L1.C.B2"       -80.756000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCELB.4L1.B.B2"       -80.756000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCELB.4L1.C.B2"       -80.406000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4L1.D.B2"       -80.406000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXW.E4L1"            -78.386000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKG.4L1.A.B2"       -76.490000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCELB.4L1.D.B2"       -76.490000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCELB.4L1.E.B2"       -76.140000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKG.4L1.B.B2"       -76.140000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXW.D4L1"            -74.120000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4L1.E.B2"       -72.224000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCELB.4L1.F.B2"       -72.224000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCELB.4L1.G.B2"       -71.874000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4L1.F.B2"       -71.874000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXW.C4L1"            -69.854000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKG.4L1.C.B2"       -67.958000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCELB.4L1.H.B2"       -67.958000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCELB.4L1.I.B2"       -67.608000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKG.4L1.D.B2"       -67.608000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXW.B4L1"            -65.588000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4L1.G.B2"       -63.692000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCELB.4L1.J.B2"       -63.692000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCELB.4L1.K.B2"       -63.342000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4L1.H.B2"       -63.342000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXW.A4L1"            -61.322000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXW.A4R1"             61.322000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4R1.A.B2"        63.218000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCELB.4R1.B.B2"        63.218000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCELB.4R1.C.B2"        63.568000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4R1.B.B2"        63.568000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXW.B4R1"             65.588000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKG.4R1.A.B2"        67.484000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCELB.4R1.D.B2"        67.484000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCELB.4R1.E.B2"        67.834000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKG.4R1.B.B2"        67.834000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXW.C4R1"             69.854000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4R1.C.B2"        71.750000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCELB.4R1.F.B2"        71.750000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCELB.4R1.G.B2"        72.100000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4R1.D.B2"        72.100000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXW.D4R1"             74.120000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKG.4R1.C.B2"        76.016000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCELB.4R1.H.B2"        76.016000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCELB.4R1.I.B2"        76.366000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKG.4R1.D.B2"        76.366000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXW.E4R1"             78.386000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4R1.E.B2"        80.282000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCELB.4R1.J.B2"        80.282000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCELB.4R1.K.B2"        80.632000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4R1.F.B2"        80.632000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXW.F4R1"             82.652000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4R1.G.B2"        84.548000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCELB.4R1.L.B2"        84.548000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCTNB.4R1.A.B2"        84.898000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4R1.H.B2"        84.898000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMBGA.4R1.A.B2"        89.000000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCTNB.4R1.B.B2"        89.000000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCDW.4R1.A.B2"         89.400000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMBGA.4R1.B.B2"        89.400000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMBGG.4R1.A.B2"        95.200000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCDW.4R1.B.B2"         95.300000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMBGG.4R1.B.B2"        95.600000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCDW.4R1.C.B2"         95.700000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMZAW.4R1.A.B2"       144.520000     -0.179000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMZAW.4R1.B.B2"       144.920000     -0.179000      0.000000      0.000000      0.000000      0.000000      0.000000
 "TCTVA.4R1.B2"         145.840000     -0.180350      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMHAA.4R1.A.B2"       146.580000     -0.181000      0.000000      0.000000      0.000000      0.000000      0.000000
 "TCTH.4R1.A.B2"        146.780000     -0.181400      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMHAA.4R1.B.B2"       146.780000     -0.181000      0.000000      0.000000      0.000000      0.000000      0.000000
 "TCTH.4R1.B2"          147.520000     -0.182250      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMGAB.4R1.A.B2"       148.260000     -0.183000      0.000000      0.000000      0.000000      0.000000      0.000000
 "TCTH.4R1.B.B2"        148.260000     -0.183100      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCDQV.4R1.A.B2"       148.540000     -0.184000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMGAB.4R1.B.B2"       148.540000     -0.183000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMGDA.4R1.A.B2"       150.810000     -0.186000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCDQV.4R1.B.B2"       150.810000     -0.184000      0.000000      0.000000      0.000000      0.000000      0.000000
 "BPMWB.4R1.A.B2"       150.990000     -0.184000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMGDA.4R1.B.B2"       150.990000     -0.186000      0.000000      0.000000      0.000000      0.000000      0.000000
 "BPMWB.4R1.B.B2"       151.048000     -0.184000      0.000000      0.000000      0.000000      0.000000      0.000000
 "BPMWB.4R1.B2"         151.170500     -0.184000      0.000000      0.000000      0.000000      0.000000      0.000000
 "BPMWB.4R1.C.B2"       151.217000     -0.184000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMABD.4R1.A.B2"       151.275000     -0.194000      0.000000      0.000000      0.000000      0.000000      0.000000
 "BPMWB.4R1.D.B2"       151.275000     -0.184000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VVGST.4R1.A.B2"       151.575000     -0.194000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMABD.4R1.B.B2"       151.575000     -0.194000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMARC.4R1.A.B2"       151.650000     -0.194000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VVGST.4R1.B.B2"       151.650000     -0.194000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMARC.4R1.B.B2"       151.910000     -0.194000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VSSJ.4R1.A.B2"        152.500141     -D2_VAL_2      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBRD.4R1.B2"          157.900000     -D2_VAL_2      0.000000      0.000000      0.000000      0.000000      0.000000
 "VSSJ.4R1.B.B2"        163.204841     -D2_VAL_2      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXB.4L1"             999.000000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXA.4L1"             999.000000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXA.4R1"             999.000000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXB.4R1"             999.000000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "TANAL.4L1"             999.000000    -TAN_VAL1      0.000000      0.000000      0.000000      0.000000      0.000000
 "TANAR.4R1"             999.000000    -TAN_VAL2      0.000000      0.000000      0.000000      0.000000      0.000000
"""

ir5b1="""\
@ NAME             %06s "OFFSET"
@ TYPE             %06s "OFFSET"
@ REFERENCE        %10s "E.DS.L5.B1"
@ DATE             %08s "09/08/08"
@ TIME             %08s "17:10:02"
* NAME                        S_IP         X_OFF        DX_OFF       DDX_OFF         Y_OFF        DY_OFF       DDY_OFF
$ %s                           %le           %le           %le           %le           %le           %le           %le
 "E.DS.L5.B1"          -268.904000      0.000000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VSSJ.4L5.A.B1"       -163.204844      D2_VAL_1      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBRD.4L5.B1"         -157.900000      D2_VAL_1      0.000000      0.000000      0.000000      0.000000      0.000000
 "VSSJ.4L5.B.B1"       -152.500144      D2_VAL_1      0.000000      0.000000      0.000000      0.000000      0.000000
 "VFCDO.4L5.A.B1"      -151.930000      0.006000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMARD.4L5.A.B1"      -151.910000      0.000000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VFCDO.4L5.B.B1"      -151.910000      0.006000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VVGST.4L5.A.B1"      -151.650000      0.000000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMARD.4L5.B.B1"      -151.650000      0.000000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMABC.4L5.A.B1"      -151.575000      0.000000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VVGST.4L5.B.B1"      -151.575000      0.000000      0.000000      0.000000      0.000000      0.000000      0.000000
 "BPMWB.4L5.A.B1"      -151.275000      0.010000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMABC.4L5.B.B1"      -151.275000      0.000000      0.000000      0.000000      0.000000      0.000000      0.000000
 "BPMWB.4L5.B.B1"      -151.217000      0.010000      0.000000      0.000000      0.000000      0.000000      0.000000
 "BPMWB.4L5.B1"        -151.094500      0.010000      0.000000      0.000000      0.000000      0.000000      0.000000
 "BPMWB.4L5.C.B1"      -151.048000      0.010000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMACA.4L5.A.B1"      -150.990000      0.008000      0.000000      0.000000      0.000000      0.000000      0.000000
 "BPMWB.4L5.D.B1"      -150.990000      0.010000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCDDQ.4L5.A.B1"      -150.790000      0.008000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMACA.4L5.B.B1"      -150.790000      0.008000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMGAF.4L5.A.B1"      -148.540000      0.011000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCDDQ.4L5.B.B1"      -148.540000      0.008000      0.000000      0.000000      0.000000      0.000000      0.000000
 "TCTH.4L5.A.B1"       -148.260000      0.010900      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMGAF.4L5.B.B1"      -148.260000      0.011000      0.000000      0.000000      0.000000      0.000000      0.000000
 "TCTH.4L5.B1"         -147.520000      0.011750      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMHAA.4L5.A.B1"      -146.780000      0.013000      0.000000      0.000000      0.000000      0.000000      0.000000
 "TCTH.4L5.B.B1"       -146.780000      0.012600      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMHAA.4L5.B.B1"      -146.580000      0.013000      0.000000      0.000000      0.000000      0.000000      0.000000
 "TCTVA.4L5.B1"        -145.840000      0.013650      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMPNB.4L5.A.B1"      -145.100000      0.014000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VVGSH.4L5.A.B1"      -144.985000      0.015000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMPNB.4L5.B.B1"      -144.985000      0.014000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMZAX.4L5.A.B1"      -144.900000      0.015000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VVGSH.4L5.B.B1"      -144.900000      0.015000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMZAX.4L5.B.B1"      -144.720000      0.015000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMBGG.4L5.C.B1"      -120.900000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMBGG.4L5.D.B1"      -120.500000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCDW.4L5.N.B1"        -95.700000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCDW.4L5.O.B1"        -95.300000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMBGA.4L5.G.B1"       -89.400000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCDW.4L5.P.B1"        -89.400000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCTNA.4L5.A.B1"       -89.000000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMBGA.4L5.H.B1"       -89.000000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4L5.A.B1"       -85.022000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCTNA.4L5.B.B1"       -85.022000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4L5.B.B1"       -84.672000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXW.F4L5"            -82.652000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4L5.C.B1"       -80.756000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4L5.D.B1"       -80.406000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXW.E4L5"            -78.386000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKG.4L5.A.B1"       -76.490000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKG.4L5.B.B1"       -76.140000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXW.D4L5"            -74.120000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4L5.E.B1"       -72.224000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4L5.F.B1"       -71.874000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXW.C4L5"            -69.854000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKG.4L5.C.B1"       -67.958000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKG.4L5.D.B1"       -67.608000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXW.B4L5"            -65.588000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4L5.G.B1"       -63.692000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4L5.H.B1"       -63.342000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXW.A4L5"            -61.322000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4R5.A.B1"        63.218000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4R5.B.B1"        63.568000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXW.B4R5"             65.588000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKG.4R5.A.B1"        67.484000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKG.4R5.B.B1"        67.834000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXW.C4R5"             69.854000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4R5.C.B1"        71.750000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4R5.D.B1"        72.100000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXW.D4R5"             74.120000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKG.4R5.C.B1"        76.016000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKG.4R5.D.B1"        76.366000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXW.E4R5"             78.386000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4R5.E.B1"        80.282000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4R5.F.B1"        80.632000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXW.F4R5"             82.652000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4R5.G.B1"        84.548000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCTNB.4R5.A.B1"        84.898000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4R5.H.B1"        84.898000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMBGA.4R5.A.B1"        89.000000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCTNB.4R5.B.B1"        89.000000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCDW.4R5.A.B1"         89.400000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMBGA.4R5.B.B1"        89.400000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCDW.4R5.B.B1"         95.300000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCDW.4R5.C.B1"         95.700000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCTCJ.4R5.A.B1"       144.720000      0.177000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMGAB.4R5.A.B1"       144.870000      0.184000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCTCJ.4R5.B.B1"       144.870000      0.179000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCDQR.4R5.A.B1"       145.149500      0.184000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMGAB.4R5.B.B1"       145.149500      0.179000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VVGSH.4R5.A.B1"       146.637500      0.184000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCDQR.4R5.B.B1"       146.637500      0.180000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCDQN.4R5.A.B1"       146.722500      0.184000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VVGSH.4R5.B.B1"       146.722500      0.181000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCDQN.4R5.B.B1"       148.350500      0.181000      0.000000      0.000000      0.000000      0.000000      0.000000
 "BPMWT.4R5.A.B1"       148.679000      0.183530      0.000000      0.000000      0.000000      0.000000      0.000000
 "BPMWT.A4R5.B1"        148.719000      0.183550      0.000000      0.000000      0.000000      0.000000      0.000000
 "BPMWT.4R5.B.B1"       148.759000      0.183530      0.000000      0.000000      0.000000      0.000000      0.000000
 "XRPV.A4R5.B1"         148.944000      0.194000      0.000000      0.000000      0.000000      0.000000      0.000000
 "XRPH.A4R5.B1"         149.393000      0.194000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMAAB.4R5.A.B1"       149.560000      0.185000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMAAB.4R5.B.B1"       149.860000      0.185000      0.000000      0.000000      0.000000      0.000000      0.000000
 "XRPH.B4R5.B1"         150.027000      0.194000      0.000000      0.000000      0.000000      0.000000      0.000000
 "XRPV.B4R5.B1"         150.476000      0.194000      0.000000      0.000000      0.000000      0.000000      0.000000
 "BPMWT.4R5.C.B1"       150.661000      0.184920      0.000000      0.000000      0.000000      0.000000      0.000000
 "BPMWT.B4R5.B1"        150.701000      0.184900      0.000000      0.000000      0.000000      0.000000      0.000000
 "BPMWT.4R5.D.B1"       150.741000      0.184920      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMACA.4R5.A.B1"       150.790000      0.186000      0.000000      0.000000      0.000000      0.000000      0.000000
 "BPMWB.4R5.A.B1"       150.990000      0.184000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMACA.4R5.B.B1"       150.990000      0.186000      0.000000      0.000000      0.000000      0.000000      0.000000
 "BPMWB.4R5.B.B1"       151.048000      0.184000      0.000000      0.000000      0.000000      0.000000      0.000000
 "BPMWB.4R5.B1"         151.094500      0.184000      0.000000      0.000000      0.000000      0.000000      0.000000
 "BPMWB.4R5.C.B1"       151.217000      0.184000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMABC.4R5.A.B1"       151.275000      0.194000      0.000000      0.000000      0.000000      0.000000      0.000000
 "BPMWB.4R5.D.B1"       151.275000      0.184000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VVGST.4R5.A.B1"       151.575000      0.194000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMABC.4R5.B.B1"       151.575000      0.194000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMARD.4R5.A.B1"       151.650000      0.194000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VVGST.4R5.B.B1"       151.650000      0.194000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VFCDO.4R5.A.B1"       151.910000      0.188000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMARD.4R5.B.B1"       151.910000      0.194000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VFCDO.4R5.B.B1"       151.930000      0.188000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VSSJ.4R5.A.B1"        152.500141      D2_VAL_2      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBRD.4R5.B1"          157.900000      D2_VAL_2      0.000000      0.000000      0.000000      0.000000      0.000000
 "VSSJ.4R5.B.B1"        163.204841      D2_VAL_2      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXB.4L5"             999.000000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXA.4L5"             999.000000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXA.4R5"             999.000000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXB.4R5"             999.000000      0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "TANC.4L5"             999.000000      TAN_VAL1      0.000000      0.000000      0.000000      0.000000      0.000000
 "TANC.4R5"             999.000000      TAN_VAL2      0.000000      0.000000      0.000000      0.000000      0.000000
"""


ir5b2="""\
@ NAME             %06s "OFFSET"
@ TYPE             %06s "OFFSET"
@ REFERENCE        %10s "E.DS.L5.B2"
@ DATE             %08s "09/08/08"
@ TIME             %08s "17:12:14"
* NAME                        S_IP         X_OFF        DX_OFF       DDX_OFF         Y_OFF        DY_OFF       DDY_OFF
$ %s                           %le           %le           %le           %le           %le           %le           %le
 "E.DS.L5.B2"          -268.904000      0.000000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VSSJ.4L5.A.B2"       -163.204844     -D2_VAL_1      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBRD.4L5.B2"         -157.900000     -D2_VAL_1      0.000000      0.000000      0.000000      0.000000      0.000000
 "VSSJ.4L5.B.B2"       -152.500144     -D2_VAL_1      0.000000      0.000000      0.000000      0.000000      0.000000
 "VFCDO.4L5.A.B2"      -151.930000     -0.006000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMARC.4L5.A.B2"      -151.910000      0.000000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VFCDO.4L5.B.B2"      -151.910000     -0.006000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VVGST.4L5.A.B2"      -151.650000      0.000000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMARC.4L5.B.B2"      -151.650000      0.000000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMABD.4L5.A.B2"      -151.575000      0.000000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VVGST.4L5.B.B2"      -151.575000      0.000000      0.000000      0.000000      0.000000      0.000000      0.000000
 "BPMWB.4L5.A.B2"      -151.275000     -0.010000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMABD.4L5.B.B2"      -151.275000      0.000000      0.000000      0.000000      0.000000      0.000000      0.000000
 "BPMWB.4L5.B.B2"      -151.217000     -0.010000      0.000000      0.000000      0.000000      0.000000      0.000000
 "BPMWB.4L5.B2"        -151.170500     -0.010000      0.000000      0.000000      0.000000      0.000000      0.000000
 "BPMWB.4L5.C.B2"      -151.048000     -0.010000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMACA.4L5.A.B2"      -150.990000     -0.008000      0.000000      0.000000      0.000000      0.000000      0.000000
 "BPMWB.4L5.D.B2"      -150.990000     -0.010000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMACA.4L5.B.B2"      -150.790000     -0.008000      0.000000      0.000000      0.000000      0.000000      0.000000
 "BPMWT.4L5.A.B2"      -150.741000     -0.008030      0.000000      0.000000      0.000000      0.000000      0.000000
 "BPMWT.B4L5.B2"       -150.701000     -0.008050      0.000000      0.000000      0.000000      0.000000      0.000000
 "BPMWT.4L5.B.B2"      -150.661000     -0.008030      0.000000      0.000000      0.000000      0.000000      0.000000
 "XRPV.B4L5.B2"        -150.476000      0.000000      0.000000      0.000000      0.000000      0.000000      0.000000
 "XRPH.B4L5.B2"        -150.027000      0.000000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMAAB.4L5.A.B2"      -149.860000     -0.008000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMAAB.4L5.B.B2"      -149.560000     -0.008000      0.000000      0.000000      0.000000      0.000000      0.000000
 "XRPH.A4L5.B2"        -149.393000      0.000000      0.000000      0.000000      0.000000      0.000000      0.000000
 "XRPV.A4L5.B2"        -148.944000      0.000000      0.000000      0.000000      0.000000      0.000000      0.000000
 "BPMWT.4L5.C.B2"      -148.759000     -0.009420      0.000000      0.000000      0.000000      0.000000      0.000000
 "BPMWT.A4L5.B2"       -148.719000     -0.009400      0.000000      0.000000      0.000000      0.000000      0.000000
 "BPMWT.4L5.D.B2"      -148.679000     -0.009420      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMGAE.4L5.A.B2"      -148.630000     -0.010000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCDQN.4L5.A.B2"      -148.350500     -0.010000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMGAE.4L5.B.B2"      -148.350000     -0.010000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VVGSH.4L5.A.B2"      -146.722500     -0.010000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCDQN.4L5.B.B2"      -146.722500     -0.011000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCDQR.4L5.A.B2"      -146.637500     -0.010000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VVGSH.4L5.B.B2"      -146.637500     -0.013000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMGAB.4L5.A.B2"      -145.149500     -0.010000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCDQR.4L5.B.B2"      -145.149500     -0.013000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCTCJ.4L5.A.B2"      -144.870000     -0.010000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMGAB.4L5.B.B2"      -144.870000     -0.014000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCTCJ.4L5.B.B2"      -144.720000     -0.015000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMBGG.4L5.G.B2"       -95.700000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCDW.4L5.N.B2"        -95.700000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCDW.4L5.O.B2"        -95.300000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMBGG.4L5.H.B2"       -95.300000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMBGA.4L5.G.B2"       -89.400000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCDW.4L5.P.B2"        -89.400000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCTNA.4L5.A.B2"       -89.000000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMBGA.4L5.H.B2"       -89.000000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4L5.A.B2"       -85.022000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCTNA.4L5.B.B2"       -85.022000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCELB.4L5.A.B2"       -84.672000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4L5.B.B2"       -84.672000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXW.F4L5"            -82.652000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4L5.C.B2"       -80.756000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCELB.4L5.B.B2"       -80.756000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCELB.4L5.C.B2"       -80.406000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4L5.D.B2"       -80.406000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXW.E4L5"            -78.386000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKG.4L5.A.B2"       -76.490000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCELB.4L5.D.B2"       -76.490000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCELB.4L5.E.B2"       -76.140000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKG.4L5.B.B2"       -76.140000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXW.D4L5"            -74.120000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4L5.E.B2"       -72.224000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCELB.4L5.F.B2"       -72.224000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCELB.4L5.G.B2"       -71.874000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4L5.F.B2"       -71.874000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXW.C4L5"            -69.854000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKG.4L5.C.B2"       -67.958000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCELB.4L5.H.B2"       -67.958000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCELB.4L5.I.B2"       -67.608000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKG.4L5.D.B2"       -67.608000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXW.B4L5"            -65.588000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4L5.G.B2"       -63.692000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCELB.4L5.J.B2"       -63.692000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCELB.4L5.K.B2"       -63.342000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4L5.H.B2"       -63.342000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXW.A4L5"            -61.322000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXW.A4R5"             61.322000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4R5.A.B2"        63.218000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCELB.4R5.B.B2"        63.218000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCELB.4R5.C.B2"        63.568000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4R5.B.B2"        63.568000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXW.B4R5"             65.588000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKG.4R5.A.B2"        67.484000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCELB.4R5.D.B2"        67.484000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCELB.4R5.E.B2"        67.834000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKG.4R5.B.B2"        67.834000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXW.C4R5"             69.854000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4R5.C.B2"        71.750000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCELB.4R5.F.B2"        71.750000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCELB.4R5.G.B2"        72.100000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4R5.D.B2"        72.100000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXW.D4R5"             74.120000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKG.4R5.C.B2"        76.016000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCELB.4R5.H.B2"        76.016000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCELB.4R5.I.B2"        76.366000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKG.4R5.D.B2"        76.366000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXW.E4R5"             78.386000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4R5.E.B2"        80.282000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCELB.4R5.J.B2"        80.282000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCELB.4R5.K.B2"        80.632000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4R5.F.B2"        80.632000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXW.F4R5"             82.652000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4R5.G.B2"        84.548000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCELB.4R5.L.B2"        84.548000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCTNB.4R5.A.B2"        84.898000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMCKB.4R5.H.B2"        84.898000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMBGA.4R5.A.B2"        89.000000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCTNB.4R5.B.B2"        89.000000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCDW.4R5.A.B2"         89.400000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMBGA.4R5.B.B2"        89.400000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCDW.4R5.B.B2"         95.300000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMBGG.4R5.A.B2"        95.400000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCDW.4R5.C.B2"         95.700000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMBGG.4R5.B.B2"        95.800000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMZAX.4R5.A.B2"       144.720000     -0.179000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VVGSH.4R5.A.B2"       144.900000     -0.179000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMZAX.4R5.B.B2"       144.900000     -0.179000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMPNB.4R5.A.B2"       144.985000     -0.179000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VVGSH.4R5.B.B2"       144.985000     -0.179000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMPNB.4R5.B.B2"       145.100000     -0.179000      0.000000      0.000000      0.000000      0.000000      0.000000
 "TCTVA.4R5.B2"         145.840000     -0.180350      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMHAA.4R5.A.B2"       146.580000     -0.181000      0.000000      0.000000      0.000000      0.000000      0.000000
 "TCTH.4R5.A.B2"        146.780000     -0.181400      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMHAA.4R5.B.B2"       146.780000     -0.181000      0.000000      0.000000      0.000000      0.000000      0.000000
 "TCTH.4R5.B2"          147.520000     -0.182250      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMGAE.4R5.A.B2"       148.260000     -0.183000      0.000000      0.000000      0.000000      0.000000      0.000000
 "TCTH.4R5.B.B2"        148.260000     -0.183100      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCDDQ.4R5.A.B2"       148.540000     -0.183000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMGAE.4R5.B.B2"       148.540000     -0.183000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMACA.4R5.A.B2"       150.790000     -0.186000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VCDDQ.4R5.B.B2"       150.790000     -0.183000      0.000000      0.000000      0.000000      0.000000      0.000000
 "BPMWB.4R5.A.B2"       150.990000     -0.184000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMACA.4R5.B.B2"       150.990000     -0.186000      0.000000      0.000000      0.000000      0.000000      0.000000
 "BPMWB.4R5.B.B2"       151.048000     -0.184000      0.000000      0.000000      0.000000      0.000000      0.000000
 "BPMWB.4R5.B2"         151.170500     -0.184000      0.000000      0.000000      0.000000      0.000000      0.000000
 "BPMWB.4R5.C.B2"       151.217000     -0.184000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMABD.4R5.A.B2"       151.275000     -0.194000      0.000000      0.000000      0.000000      0.000000      0.000000
 "BPMWB.4R5.D.B2"       151.275000     -0.184000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VVGST.4R5.A.B2"       151.575000     -0.194000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMABD.4R5.B.B2"       151.575000     -0.194000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMARC.4R5.A.B2"       151.650000     -0.194000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VVGST.4R5.B.B2"       151.650000     -0.194000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VFCDO.4R5.A.B2"       151.910000     -0.188000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VMARC.4R5.B.B2"       151.910000     -0.194000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VFCDO.4R5.B.B2"       151.930000     -0.188000      0.000000      0.000000      0.000000      0.000000      0.000000
 "VSSJ.4R5.A.B2"        152.500141     -D2_VAL_2      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBRD.4R5.B2"          157.900000     -D2_VAL_2      0.000000      0.000000      0.000000      0.000000      0.000000
 "VSSJ.4R5.B.B2"        163.204841     -D2_VAL_2      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXB.4L5"             999.000000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXA.4L5"             999.000000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXA.4R5"             999.000000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "MBXB.4R5"             999.000000     -0.097000      0.000000      0.000000      0.000000      0.000000      0.000000
 "TANC.4L5"             999.000000     -TAN_VAL1      0.000000      0.000000      0.000000      0.000000      0.000000
 "TANC.4R5"             999.000000     -TAN_VAL2      0.000000      0.000000      0.000000      0.000000      0.000000
"""


sep=0.194
#sepd2 =0.188; septan=0.160
sepd2 =0.186; septan=0.145
repl={
   'TAN_VAL1':(sep-septan)/2, 'TAN_VAL2':(sep+septan)/2,
   'D2_VAL_1':(sep-sepd2)/2, 'D2_VAL_2':(sep+sepd2)/2}

for fn,tmp in [ ("offset.ip1.b1.tfs",ir1b1),
                ("offset.ip1.b2.tfs",ir1b2),
                ("offset.ip5.b1.tfs",ir5b1),
                ("offset.ip5.b2.tfs",ir5b2)]:
  st=tmp
  for k,v in repl.items():
    st=st.replace(k,'%8.6f'%v)
  open(fn,'w').write(st)




