source: mire/moyenne_ring.py @ 32

Last change on this file since 32 was 32, checked in by meynadie, 16 years ago

Ajout de scripts à linker dans ~/bin

  • Property svn:executable set to *
File size: 399 bytes
Line 
1#!/bin/env python
2
3import math
4import string
5import glob
6import scipy
7
8for filename in glob.glob("*.ring"):
9    data = []
10    for line in file(filename):
11        if (line[0]=="#"):
12            line_s = string.split(line)
13            phase = line_s[2]
14            date = line_s[4]
15        else :
16            data.append(float(string.split(line)[2]))
17    print filename, phase, date, scipy.mean(data)
Note: See TracBrowser for help on using the repository browser.