change fmt format
This commit is contained in:
parent
bd726227bb
commit
07b37ae00b
@ -9,14 +9,14 @@ def fmt(deg):
|
||||
deg += 360
|
||||
return "%12.7f" % deg
|
||||
|
||||
def pr(deg): return fmt(270 + deg)
|
||||
def pv(deg): return fmt(270 - deg)
|
||||
def vp(deg): return fmt(180 + deg)
|
||||
def vs(deg): return fmt(180 - deg)
|
||||
def sv(deg): return fmt(90 + deg)
|
||||
def sr(deg): return fmt(90 - deg)
|
||||
def rs(deg): return fmt(deg)
|
||||
def rp(deg): return fmt(360 - deg)
|
||||
def pr(deg): return 270 + deg
|
||||
def pv(deg): return 270 - deg
|
||||
def vp(deg): return 180 + deg
|
||||
def vs(deg): return 180 - deg
|
||||
def sv(deg): return 90 + deg
|
||||
def sr(deg): return 90 - deg
|
||||
def rs(deg): return deg
|
||||
def rp(deg): return 360 - deg
|
||||
|
||||
# Sklypu pradiniu tasku (1 ir 15) koordinates:
|
||||
X1 = Dec('16639.290')
|
||||
@ -37,11 +37,6 @@ YT1 = Dec('25502.6586')
|
||||
XT2 = Dec('17395.768')
|
||||
YT2 = Dec('25201.168')
|
||||
|
||||
print("""Poslinkis to T3:
|
||||
T1(X,Y): %7.3f,%7.3f""" % (XT3-XT1, YT3-YT1) + """
|
||||
T2(X,Y): %7.3f,%7.3f""" % (XT3-XT2, YT3-YT2) + """
|
||||
""")
|
||||
|
||||
# Pataisos ATKARPOMS:
|
||||
A = Dec('-2.207')
|
||||
B = Dec('1.999')
|
||||
@ -62,6 +57,58 @@ R = Dec('-7.2564859')
|
||||
S = Dec('3.8874407')
|
||||
T = Dec('-8.7554531')
|
||||
|
||||
L1L1 = Dec('125.829') + G
|
||||
L1L2 = Dec('81.682') + E
|
||||
L1L3 = Dec('61.206') + H
|
||||
L1L4 = Dec('121.055') + D
|
||||
L1L5 = Dec('79.892') + B
|
||||
L1L6 = Dec('159.299') + H
|
||||
L1L7 = Dec('76.500') + E
|
||||
L1L8 = Dec('51.091') + G
|
||||
L1L9 = Dec('93.765') + F
|
||||
L1L10 = Dec('58.926') + D
|
||||
L1L11 = Dec('79.061') + M
|
||||
L1L12 = Dec('121.209') + D
|
||||
L1L13 = Dec('94.071') + C
|
||||
L2L1 = Dec('205.221') + C
|
||||
L2L2 = Dec('122.820') + G
|
||||
L2L3 = Dec('178.657') + H
|
||||
L2L4 = Dec('116.987') + B
|
||||
L2L5 = Dec('84.793') + H
|
||||
L2L6 = Dec('138.291') + F
|
||||
L2L7 = Dec('85.607') + H
|
||||
L2L8 = Dec('114.589') + G
|
||||
L2L9 = Dec('79.210') + D
|
||||
|
||||
K1K1 = pr(Deg.guess('84-03-08.3').frac + P)
|
||||
K1K2 = rp(Deg.guess('112-58-25.4').frac + S)
|
||||
K1K3 = vp(Deg.guess('54.3107235').frac + L)
|
||||
K1K4 = pr(Deg.guess('84-33-44.2').frac + S)
|
||||
K1K5 = pv(Deg.guess('7.8383177').frac + P)
|
||||
K1K6 = vp(Deg.guess('23-15-32.7').frac + P)
|
||||
K1K7 = pv(Deg.guess('126.2540802').frac + K)
|
||||
K1K8 = pv(Deg.guess('205-29-57.8').frac + K)
|
||||
K1K9 = rs(Deg.guess('101.7366025').frac + S)
|
||||
K1K10 = sv(Deg.guess('160-23-45.2').frac + T)
|
||||
K1K11 = pv(Deg.guess('79.8680017').frac + K)
|
||||
K1K12 = vs(Deg.guess('52-28-42.4').frac + R)
|
||||
K1K13 = sr(Deg.guess('109-01-49.8').frac + T)
|
||||
K2K1 = vs(Deg.guess('84-00-34.4').frac + L)
|
||||
K2K2 = rs(Deg.guess('76.1245808').frac + N)
|
||||
K2K3 = pr(Deg.guess('54-13-28.3').frac + P)
|
||||
K2K4 = rp(Deg.guess('182.7394778').frac + S)
|
||||
K2K5 = sr(Deg.guess('162-45-25.7').frac + L)
|
||||
K2K6 = pr(Deg.guess('60-41-55.2').frac + S)
|
||||
K2K7 = rp(Deg.guess('69.4792556').frac + R)
|
||||
K2K8 = rp(Deg.guess('130-50-06.1').frac + L)
|
||||
K2K9 = vs(Deg.guess('84-08-54.3').frac + K)
|
||||
|
||||
if __name__ == '__main__':
|
||||
print("""Poslinkis to T3:
|
||||
T1(X,Y): %7.3f,%7.3f""" % (XT3-XT1, YT3-YT1) + """
|
||||
T2(X,Y): %7.3f,%7.3f""" % (XT3-XT2, YT3-YT2) + """
|
||||
""")
|
||||
|
||||
print("""Sklypu pradiniu tasku (1 ir 15) koordinates:
|
||||
X1 = 16639.290
|
||||
Y1 = 25500.960
|
||||
@ -98,27 +145,27 @@ Atkarpos:
|
||||
2L-9 = %7.3f""" % (Dec('79.210') + D) + """
|
||||
|
||||
Kampai:
|
||||
1K-1 = %s""" % pr(Deg.guess('84-03-08.3').frac + P) + """
|
||||
1K-2 = %s""" % rp(Deg.guess('112-58-25.4').frac + S) + """
|
||||
1K-3 = %s""" % vp(Deg.guess('54.3107235').frac + L) + """
|
||||
1K-4 = %s""" % pr(Deg.guess('84-33-44.2').frac + S) + """
|
||||
1K-5 = %s""" % pv(Deg.guess('7.8383177').frac + P) + """
|
||||
1K-6 = %s""" % vp(Deg.guess('23-15-32.7').frac + P) + """
|
||||
1K-7 = %s""" % pv(Deg.guess('126.2540802').frac + K) + """
|
||||
1K-8 = %s""" % pv(Deg.guess('205-29-57.8').frac + K) + """
|
||||
1K-9 = %s""" % rs(Deg.guess('101.7366025').frac + S) + """
|
||||
1K-10 = %s""" % sv(Deg.guess('160-23-45.2').frac + T) + """
|
||||
1K-11 = %s""" % pv(Deg.guess('79.8680017').frac + K) + """
|
||||
1K-12 = %s""" % vs(Deg.guess('52-28-42.4').frac + R) + """
|
||||
1K-13 = %s""" % sr(Deg.guess('109-01-49.8').frac + T) + """
|
||||
1K-1 = %s""" % fmt(pr(Deg.guess('84-03-08.3').frac + P)) + """
|
||||
1K-2 = %s""" % fmt(rp(Deg.guess('112-58-25.4').frac + S)) + """
|
||||
1K-3 = %s""" % fmt(vp(Deg.guess('54.3107235').frac + L)) + """
|
||||
1K-4 = %s""" % fmt(pr(Deg.guess('84-33-44.2').frac + S)) + """
|
||||
1K-5 = %s""" % fmt(pv(Deg.guess('7.8383177').frac + P)) + """
|
||||
1K-6 = %s""" % fmt(vp(Deg.guess('23-15-32.7').frac + P)) + """
|
||||
1K-7 = %s""" % fmt(pv(Deg.guess('126.2540802').frac + K)) + """
|
||||
1K-8 = %s""" % fmt(pv(Deg.guess('205-29-57.8').frac + K)) + """
|
||||
1K-9 = %s""" % fmt(rs(Deg.guess('101.7366025').frac + S)) + """
|
||||
1K-10 = %s""" % fmt(sv(Deg.guess('160-23-45.2').frac + T)) + """
|
||||
1K-11 = %s""" % fmt(pv(Deg.guess('79.8680017').frac + K)) + """
|
||||
1K-12 = %s""" % fmt(vs(Deg.guess('52-28-42.4').frac + R)) + """
|
||||
1K-13 = %s""" % fmt(sr(Deg.guess('109-01-49.8').frac + T)) + """
|
||||
|
||||
2K-1 = %s""" % vs(Deg.guess('84-00-34.4').frac + L) + """
|
||||
2K-2 = %s""" % rs(Deg.guess('76.1245808').frac + N) + """
|
||||
2K-3 = %s""" % pr(Deg.guess('54-13-28.3').frac + P) + """
|
||||
2K-4 = %s""" % rp(Deg.guess('182.7394778').frac + S) + """
|
||||
2K-5 = %s""" % sr(Deg.guess('162-45-25.7').frac + L) + """
|
||||
2K-6 = %s""" % pr(Deg.guess('60-41-55.2').frac + S) + """
|
||||
2K-7 = %s""" % rp(Deg.guess('69.4792556').frac + R) + """
|
||||
2K-8 = %s""" % rp(Deg.guess('130-50-06.1').frac + L) + """
|
||||
2K-9 = %s""" % vs(Deg.guess('84-08-54.3').frac + K)
|
||||
2K-1 = %s""" % fmt(vs(Deg.guess('84-00-34.4').frac + L)) + """
|
||||
2K-2 = %s""" % fmt(rs(Deg.guess('76.1245808').frac + N)) + """
|
||||
2K-3 = %s""" % fmt(pr(Deg.guess('54-13-28.3').frac + P)) + """
|
||||
2K-4 = %s""" % fmt(rp(Deg.guess('182.7394778').frac + S)) + """
|
||||
2K-5 = %s""" % fmt(sr(Deg.guess('162-45-25.7').frac + L)) + """
|
||||
2K-6 = %s""" % fmt(pr(Deg.guess('60-41-55.2').frac + S)) + """
|
||||
2K-7 = %s""" % fmt(rp(Deg.guess('69.4792556').frac + R)) + """
|
||||
2K-8 = %s""" % fmt(rp(Deg.guess('130-50-06.1').frac + L)) + """
|
||||
2K-9 = %s""" % fmt(vs(Deg.guess('84-08-54.3').frac + K))
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user