Last change
on this file since 14963 was 14430, checked in by neise, 12 years ago |
initial commit
|
-
Property svn:executable
set to
*
|
File size:
471 bytes
|
Line | |
---|
1 | #!/usr/bin/python -tt
|
---|
2 |
|
---|
3 | import sys
|
---|
4 | from pyfact import SlowData
|
---|
5 | from plotters import CamPlotter
|
---|
6 | import matplotlib.pyplot as plt
|
---|
7 |
|
---|
8 | cp = CamPlotter('Mean GainRMS ' + sys.argv[1])
|
---|
9 |
|
---|
10 | f = SlowData(sys.argv[1])
|
---|
11 | f.register('all')
|
---|
12 | f.next()
|
---|
13 |
|
---|
14 | GainRms = f.GainRms.reshape(1440,1024)
|
---|
15 |
|
---|
16 | cp(GainRms.mean(axis=1))
|
---|
17 |
|
---|
18 | cp.ax.text(-25,25,f.date[0])
|
---|
19 | plt.draw()
|
---|
20 |
|
---|
21 | png = sys.argv[1]+'_gainRMS.png'
|
---|
22 | plt.savefig(png)
|
---|
23 |
|
---|
24 | import os
|
---|
25 | cmd = 'convert ' + png + ' ' + png[:-4] + '.pdf'
|
---|
26 | print cmd
|
---|
27 | os.system(cmd)
|
---|
Note:
See
TracBrowser
for help on using the repository browser.