Line 29... |
Line 29... |
29 |
"dataset = file['RPS01']" |
29 |
"dataset = file['RPS01']" |
30 |
], |
30 |
], |
31 |
"language": "python", |
31 |
"language": "python", |
32 |
"metadata": {}, |
32 |
"metadata": {}, |
33 |
"outputs": [], |
33 |
"outputs": [], |
34 |
"prompt_number": 11 |
34 |
"prompt_number": 2 |
35 |
}, |
35 |
}, |
36 |
{ |
36 |
{ |
37 |
"cell_type": "code", |
37 |
"cell_type": "code", |
38 |
"collapsed": false, |
38 |
"collapsed": false, |
39 |
"input": [ |
39 |
"input": [ |
40 |
"print dataset.value[:,1]" |
40 |
"print dataset.value[4,2]" |
41 |
], |
41 |
], |
42 |
"language": "python", |
42 |
"language": "python", |
43 |
"metadata": {}, |
43 |
"metadata": {}, |
44 |
"outputs": [ |
44 |
"outputs": [ |
45 |
{ |
45 |
{ |
46 |
"output_type": "stream", |
46 |
"output_type": "stream", |
47 |
"stream": "stdout", |
47 |
"stream": "stdout", |
48 |
"text": [ |
48 |
"text": [ |
49 |
"[ 1.45415117e+09 1.45415117e+09 1.45415117e+09 ..., 1.45415168e+09\n", |
- |
|
50 |
" 1.45415168e+09 1.45415168e+09]\n" |
49 |
"36.7822\n" |
51 |
] |
50 |
] |
52 |
} |
51 |
} |
53 |
], |
52 |
], |
54 |
"prompt_number": 20 |
53 |
"prompt_number": 24 |
- |
|
54 |
}, |
- |
|
55 |
{ |
- |
|
56 |
"cell_type": "code", |
- |
|
57 |
"collapsed": false, |
- |
|
58 |
"input": [ |
- |
|
59 |
"plt.plot( dataset.value[:,0], dataset.value[:,2], color = 'r')\n", |
- |
|
60 |
"#plt.xlim([1.45415117E9,1.4541513E9])\n", |
- |
|
61 |
"plt.show()" |
- |
|
62 |
], |
- |
|
63 |
"language": "python", |
- |
|
64 |
"metadata": {}, |
- |
|
65 |
"outputs": [], |
- |
|
66 |
"prompt_number": 14 |
55 |
}, |
67 |
}, |
56 |
{ |
68 |
{ |
57 |
"cell_type": "code", |
69 |
"cell_type": "code", |
58 |
"collapsed": false, |
70 |
"collapsed": false, |
59 |
"input": [ |
71 |
"input": [ |
- |
|
72 |
"prev_val= dataset.value[0,2]\n", |
- |
|
73 |
"n = 0\n", |
- |
|
74 |
"angle = np.zeros_like(dataset.value)\n", |
- |
|
75 |
"for i in range(dataset.value.shape[0]):\n", |
60 |
"plt.plot(dataset.value[:,1], dataset.value[:,2], color = 'r')" |
76 |
" if (dataset.value[i,2] - prev_val) > 300: \n", |
- |
|
77 |
" n += 1\n", |
- |
|
78 |
" angle[i] = dataset.value[i,2] + n*360\n", |
- |
|
79 |
" prev_val = dataset.value[i,2]" |
- |
|
80 |
], |
- |
|
81 |
"language": "python", |
- |
|
82 |
"metadata": {}, |
- |
|
83 |
"outputs": [], |
- |
|
84 |
"prompt_number": 19 |
- |
|
85 |
}, |
- |
|
86 |
{ |
- |
|
87 |
"cell_type": "code", |
- |
|
88 |
"collapsed": false, |
- |
|
89 |
"input": [ |
- |
|
90 |
"angle" |
61 |
], |
91 |
], |
62 |
"language": "python", |
92 |
"language": "python", |
63 |
"metadata": {}, |
93 |
"metadata": {}, |
64 |
"outputs": [ |
94 |
"outputs": [ |
65 |
{ |
95 |
{ |
66 |
"metadata": {}, |
96 |
"metadata": {}, |
67 |
"output_type": "pyout", |
97 |
"output_type": "pyout", |
68 |
"prompt_number": 22, |
98 |
"prompt_number": 20, |
69 |
"text": [ |
99 |
"text": [ |
- |
|
100 |
"array([[ 0., 0., 0.],\n", |
- |
|
101 |
" [ 0., 0., 0.],\n", |
- |
|
102 |
" [ 0., 0., 0.],\n", |
- |
|
103 |
" ..., \n", |
- |
|
104 |
" [ 0., 0., 0.],\n", |
- |
|
105 |
" [ 0., 0., 0.],\n", |
70 |
"[<matplotlib.lines.Line2D at 0x7f9d48ecac50>]" |
106 |
" [ 0., 0., 0.]], dtype=float32)" |
71 |
] |
107 |
] |
72 |
} |
108 |
} |
73 |
], |
109 |
], |
74 |
"prompt_number": 22 |
110 |
"prompt_number": 20 |
75 |
}, |
111 |
}, |
76 |
{ |
112 |
{ |
77 |
"cell_type": "code", |
113 |
"cell_type": "code", |
78 |
"collapsed": false, |
114 |
"collapsed": false, |
79 |
"input": [], |
115 |
"input": [], |