質問編集履歴
2
改善
test
CHANGED
File without changes
|
test
CHANGED
@@ -10,11 +10,11 @@
|
|
10
10
|
|
11
11
|
```
|
12
12
|
|
13
|
-
|
13
|
+
import json,csv
|
14
14
|
|
15
|
-
|
15
|
+
import pandas as pd
|
16
16
|
|
17
|
-
|
17
|
+
import glob
|
18
18
|
|
19
19
|
import pandas as pd
|
20
20
|
|
@@ -22,33 +22,39 @@
|
|
22
22
|
|
23
23
|
import decimal as dec
|
24
24
|
|
25
|
-
|
26
|
-
|
27
|
-
|
25
|
+
import os
|
28
|
-
|
29
|
-
pressure2 = []
|
30
|
-
|
31
|
-
list1 = pd.read_csv('probedata_dome_prs_p1', delim_whitespace=True, comment='#',names=['A', 'B', 'C'])
|
32
|
-
|
33
|
-
list2 = pd.read_csv('probedata_dome_prs_p1_2', delim_whitespace=True, comment='#',names=['A', 'B', 'C'])
|
34
|
-
|
35
|
-
ref1 = list1['C']
|
36
|
-
|
37
|
-
ref2 = list2['C']
|
38
|
-
|
39
|
-
print(ref1)
|
40
|
-
|
41
|
-
print(ref2)
|
42
|
-
|
43
|
-
list.append(ref1)
|
44
|
-
|
45
|
-
list.append(ref2)
|
46
26
|
|
47
27
|
|
48
28
|
|
49
|
-
pr
|
29
|
+
pressure = []
|
50
30
|
|
31
|
+
pressure1 = pd.read_csv('pressure1/probedata_dome_prs_p'+str(1), delim_whitespace=True, comment='#',names=['A', 'B', 'C'])
|
32
|
+
|
33
|
+
pressure2 = pd.read_csv('pressure2/probedata_dome_prs_p'+str(1), delim_whitespace=True, comment='#',names=['A', 'B', 'C'])
|
34
|
+
|
35
|
+
pre1 = pressure1['C']
|
36
|
+
|
37
|
+
pre2 = pressure2['C']
|
38
|
+
|
39
|
+
print(pre1)
|
40
|
+
|
41
|
+
print(pre2)
|
42
|
+
|
51
|
-
np.savetxt('
|
43
|
+
np.savetxt('pre1.csv',pre1,delimiter=',')
|
44
|
+
|
45
|
+
np.savetxt('pre2.csv',pre2,delimiter=',')
|
46
|
+
|
47
|
+
pressure.append(pre1)
|
48
|
+
|
49
|
+
pressure.append(pre2)
|
50
|
+
|
51
|
+
print("kokokara")
|
52
|
+
|
53
|
+
print(pressure)
|
54
|
+
|
55
|
+
print("kokomade")
|
56
|
+
|
57
|
+
np.savetxt('pressure.csv',pressure,delimiter=',')
|
52
58
|
|
53
59
|
|
54
60
|
|
1
改善
test
CHANGED
File without changes
|
test
CHANGED
@@ -53,3 +53,13 @@
|
|
53
53
|
|
54
54
|
|
55
55
|
```
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
###print(list)の結果
|
60
|
+
|
61
|
+
appnedOK以降がprint(list)の結果です
|
62
|
+
|
63
|
+
![イメージ説明](12620996412b1989c3f72d7f665ab7d9.png)
|
64
|
+
|
65
|
+
![イメージ説明](ab6e9eca2d9454d731cfc8a329e6fdbc.png)
|