Created
July 29, 2015 13:29
-
-
Save Opiprog/294ed2eb27dabf540c41 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index Axial Load FE AA IE | |
0 70 25 3 -10 | |
1 195.9902 24.97371961 3.235454367 -9.992665938 | |
2 400.7797 24.89494269 3.470092195 -9.97068168 | |
3 773.9403 24.76386181 3.703099776 -9.934100971 | |
4 1254.5773 24.58079744 3.933669057 -9.88301324 | |
5 1760.8765 24.34619711 4.161000441 -9.81754338 | |
6 2173.2502 24.06063434 4.384305557 -9.737851445 | |
7 2404.0408 23.72480725 4.602809999 -9.644132256 | |
8 2537.4333 23.33953682 4.815756011 -9.536614927 | |
9 2670 22.90576493 5.022405109 -9.415562305 | |
10 2800 22.424552 5.22204065 -9.281270326 | |
11 2900 21.89707446 5.413970311 -9.134067291 | |
12 2960 21.32462182 5.597528494 -8.974313067 | |
13 2990 20.70859355 5.772078634 -8.802398201 | |
14 3000 20.05049565 5.9370154 -8.618742973 | |
15 2990 19.35193696 6.091766806 -8.423796361 | |
16 2960 18.61462524 6.235796184 -8.21803495 | |
17 2910 17.84036298 6.368604051 -8.001961761 | |
18 2840 17.03104301 6.489729837 -7.776105027 | |
19 2773.0515 16.18864388 6.598753488 -7.541016896 | |
20 2692.5078 15.31522497 6.695296917 -7.297272086 | |
21 2612.8108 14.41292154 6.779025318 -7.045466475 | |
22 2542.5151 13.48393942 6.849648328 -6.786215651 | |
23 2468.6621 12.53054968 6.906921031 -6.5201534 | |
24 2394.1316 11.55508308 6.950644808 -6.247930162 | |
25 2311.0471 10.55992432 6.98066803 -5.970211437 | |
26 2221.9492 9.547506242 6.996886577 -5.68767616 | |
27 2132.428 8.520303906 6.998960782 -5.401015043 | |
28 2058.1516 7.480828495 6.983132514 -5.110928882 | |
29 1983.6211 6.431621204 6.948289132 -4.818126848 | |
30 1913.9181 5.375247014 6.89455147 -4.523324748 | |
31 1846.8407 4.314288432 6.822105886 -4.227243283 | |
32 1784.0826 3.251339168 6.731203616 -3.93060628 | |
33 1727.7612 2.188997803 6.622159904 -3.634138922 | |
34 1676.3522 1.129861429 6.495352904 -3.33856598 | |
35 1636.4614 0.076519302 6.351222374 -3.044610038 | |
36 1605.887 -0.968453483 6.19026815 -2.752989726 | |
37 1589.3717 -2.002502297 6.013048408 -2.464417964 | |
38 1575.0585 -3.023099212 5.820177734 -2.17960022 | |
39 1565.488 -4.027749188 5.612324991 -1.899232785 | |
40 1564.8105 -5.01399617 5.390210996 -1.624001069 | |
41 1570.9084 -5.979429092 5.154606026 -1.354577928 | |
42 1584.4595 -6.921687772 4.906327141 -1.091622017 | |
43 1613.0859 -7.838468683 4.646235355 -0.835776181 | |
44 1649.1655 -8.727530581 4.375232648 -0.587665884 | |
45 1695.6624 -9.586699988 4.094258838 -0.347897678 | |
46 1742.6674 -10.4138765 3.804288323 -0.11705772 | |
47 1796.0244 -11.20703794 3.506326699 0.104289657 | |
48 1860.7305 -11.96424526 3.201407276 0.315603329 | |
49 1938.564 -12.68364734 2.890587494 0.5163667 | |
50 2021.5638 -13.36348546 2.574945253 0.706088965 | |
51 2102.8699 -14.00209762 2.255575178 0.884306313 | |
52 2171.98 -14.59792263 1.933584822 1.050583059 | |
53 2252.6931 -15.14950387 1.610090825 1.204512708 | |
54 2344.0776 -15.6554929 1.28621504 1.345718949 | |
55 2437.5796 -16.11465274 0.963080646 1.473856579 | |
56 2530.658 -16.52586088 0.641808251 1.588612339 | |
57 2640 -16.88811205 0.323512004 1.689705689 | |
58 2720 -17.20052066 0.009295734 1.776889487 | |
59 2800 -17.46232297 -0.29975088 1.849950595 | |
60 2870 -17.67287894 -0.602556085 1.908710403 | |
61 2940 -17.83167385 -0.898069775 1.95302526 | |
62 2980 -17.93831947 -1.185267129 1.98278683 | |
63 2995 -17.99255511 -1.463152167 1.997922356 | |
64 3000 -17.99424817 -1.730761204 1.998394837 | |
65 2990 -17.9433945 -1.98716619 1.984203117 | |
66 2960 -17.84011844 -2.231477931 1.955381891 | |
67 2900 -17.68467246 -2.462849171 1.912001616 | |
68 2820 -17.47743657 -2.680477531 1.854168346 | |
69 2713.953138 -17.21891741 -2.883608292 1.782023463 | |
70 2598.599294 -16.90974697 -3.071537011 1.69574334 | |
71 2464.842224 -16.55068107 -3.243611963 1.595538905 | |
72 2311.06838 -16.14259753 -3.399236405 1.481655125 | |
73 2139.221984 -15.68649398 -3.537870643 1.354370412 | |
74 1937.440477 -15.18348544 -3.659033903 1.213995936 | |
75 1694.667961 -14.63480162 -3.762306 1.06087487 | |
76 1427.693089 -14.04178388 -3.847328792 0.895381547 | |
77 1155.872271 -13.40588195 -3.913807428 0.717920545 | |
78 910.7047076 -12.72865043 -3.961511363 0.528925702 | |
79 715.4048241 -12.01174493 -3.999763175 0.328859051 | |
80 575.6516658 -11.25691807 -3.99272264 0.118209693 | |
81 482.8287025 -10.46601515 -3.975921146 -0.102507401 | |
82 421.286938 -9.640969682 -3.949399767 -0.332752647 | |
83 375.6922456 -8.783798655 -3.91322334 -0.571963166 | |
84 339.2839038 -7.896597579 -3.867480305 -0.819554164 | |
85 302.8165747 -6.981535383 -3.812282489 -1.074920358 | |
86 265.2422975 -6.040849109 -3.747764834 -1.337437458 | |
87 227.4415722 -5.076838441 -3.674085065 -1.606463691 | |
88 200.6850975 -4.091860083 -3.591423306 -1.881341372 | |
89 175 -3.088321999 -3.49998164 -2.161398512 | |
90 150 -2.068677527 -3.399983612 -2.445950458 | |
91 130 -1.035419379 -3.291673687 -2.734301569 | |
92 120 0.008926452 -3.175316648 -3.025746917 | |
93 110 1.061806867 -3.051196953 -3.319574009 | |
94 105 2.120647902 -2.919618035 -3.615064531 | |
95 100 3.182861022 -2.780901562 -3.911496099 | |
96 95 4.245849448 -2.635386655 -4.208144032 | |
97 90 5.307014504 -2.483429051 -4.504283117 | |
98 85 6.363761975 -2.325400239 -4.799189388 | |
99 80 7.413508443 -2.16168655 -5.092141891 | |
100 75 8.453687606 -1.992688213 -5.382424448 | |
101 70 9.481756551 -1.818818376 -5.66932741 | |
102 70 10.49520197 -1.640502097 -5.952149387 | |
103 70 11.49154631 -1.458175302 -6.230198969 | |
104 70 12.46835381 -1.272283725 -6.502796412 | |
105 70 13.42323649 -1.083281812 -6.7692753 | |
106 70 14.35385996 -0.891631613 -7.028984175 | |
107 70 15.25794913 -0.697801653 -7.28128813 | |
108 70 16.1332938 -0.502265787 -7.525570362 | |
109 70 16.977754 -0.305502037 -7.761233675 | |
110 70 17.78926531 -0.107991431 -7.987701948 | |
111 70 18.56584384 0.089783181 -8.204421536 | |
112 70 19.30559108 0.287338301 -8.410862627 | |
113 70 20.00669859 0.484190968 -8.606520537 | |
114 70 20.66745238 0.67985994 -8.790916944 | |
115 70 21.28623712 0.873866867 -8.963601056 | |
116 70 21.86154006 1.065737462 -9.124150715 | |
117 70 22.39195478 1.255002663 -9.272173427 | |
118 70 22.87618457 1.441199774 -9.407307323 | |
119 70 23.31304565 1.623873602 -9.529222042 | |
120 70 23.70147002 1.802577567 -9.637619541 | |
121 70 24.04050811 1.976874792 -9.732234822 | |
122 70 24.32933108 2.146339177 -9.81283658 | |
123 70 24.56723284 2.310556433 -9.87922777 | |
124 70 24.7536318 2.469125101 -9.931246085 | |
125 70 24.88807228 2.62165753 -9.968764357 | |
126 70 24.9702256 2.767780825 -9.991690865 | |
127 70 24.99989093 2.907137761 -9.999969561 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import io | |
import linecache | |
import glob | |
f = open("MoP_ISO_Profile_70N_SPL.txt", "r") | |
Headers = linecache.getline("MoP_ISO_Profile_70N_SPL.txt", 1) | |
Data = linecache.getline("MoP_ISO_Profile_70N_SPL.txt", 2) | |
print (Headers) | |
inputVals = [] | |
g = open("MoP_ISO_Profile_70N_SPL.txt", "r") | |
for j,i in enumerate(g): | |
if j == 0: | |
header = i | |
continue | |
else: | |
inputVals.append(linecache.getline("MoP_ISO_Profile_70N_SPL.txt", (j + 1))) | |
for index, currentRow in enumerate(inputVals): | |
rowMod = currentRow.split()[1:] | |
outputFile = open("some_filename.txt" + str(index), "wt") | |
outputFile.write(header) | |
for rowIndex in range(128): | |
rowString = str(rowIndex) + '\t' + '\t'.join(rowMod) + '\n' | |
outputFile.write(rowString) | |
outputFile.close() | |
############### TEST CODE####################### | |
#Inputs = linecache.getline("MoP_ISO_Profile_70N_SPL.txt", 2) | |
#for x in range(128): | |
# h = linecache.getline("MoP_ISO_Profile_70N_SPL.txt", x) | |
# print (h) | |
#for i in Static_MoP_ISO_Test[i].txt: | |
# print (i) | |
#print (glob.glob('*.txt')) | |
#g = open("MoP_ISO_Profile_70N_SPL.txt", "r") | |
#for aline in g: | |
# values = aline.split() | |
# print('QB ', values[0], values[1], 'had a rating of ', values[2] ) | |
#f.close() | |
#data = [line.split() for line in f] | |
# Profile = open("MoP_ISO_Profile_70N_SPL.txt") | |
# print(Profile.read()) | |
# f = open("MoP_ISO_Profile_70N_SPL.txt", "r") | |
# for line in f: | |
# print(line, end='') | |
#for i, line in enumerate(f): | |
# print(line) | |
#for i, line in enumerate(f): | |
# with open("test.txt", "wt") as out_file: | |
# out_file.write(line) | |
#for x in xrange(1,11): | |
# print '%d * %d = %d' % (x, y, x*y) | |
#x = 1 | |
#while True: | |
# print("To infinity and beyond! We're getting close, on %d now!" % (x)) | |
# x += 1 | |
#string = "Hello World" | |
#for x in string: | |
# print(x) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment