Last change
on this file was
32,
checked in by meynadie, 16 years ago
|
Ajout de scripts à linker dans ~/bin
|
-
Property svn:executable set to
*
|
File size:
545 bytes
|
Line | |
---|
1 | #!/bin/env python |
---|
2 | |
---|
3 | import math |
---|
4 | import string |
---|
5 | import glob |
---|
6 | import scipy |
---|
7 | |
---|
8 | for filename in glob.glob("*.square"): |
---|
9 | data = [] |
---|
10 | for line in file(filename): |
---|
11 | if (line[0]=="#"): |
---|
12 | line_s = string.split(line) |
---|
13 | moyenne = line_s[2] |
---|
14 | moyenne_orth = line_s[4] |
---|
15 | phase = line_s[6] |
---|
16 | date = line_s[8] |
---|
17 | moyenne_cos = math.sqrt(.5*(float(moyenne)**2 +\ |
---|
18 | float(moyenne_orth)**2)) |
---|
19 | print filename, phase, date, moyenne, moyenne_orth, moyenne_cos |
---|
Note: See
TracBrowser
for help on using the repository browser.