-
Notifications
You must be signed in to change notification settings - Fork 0
/
flaggingplot.py
39 lines (33 loc) · 1001 Bytes
/
flaggingplot.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Plot flagging data
# Percentages:
plt.plot(np.array(ipct)*100, 'g.:')
plt.plot(np.array(fpct)*100, 'r.:')
plt.xlabel('Subband')
plt.ylabel('Percent data flagged')
plt.legend(['Original data', 'After running rflag autoflagger'])
# Percent change:
plt.figure()
plt.plot(change*-100, 'b.:')
plt.xlabel('Subband')
plt.ylabel('Percent change in flagged data')
# Initial maxes, post flagging maxes
plt.figure()
plt.plot(imaxs, 'g.:')
plt.plot(fmaxs, 'r.:')
plt.xlabel('Subband')
plt.ylabel('Maximum visibility amp')
plt.legend(['Original data', 'After running rflag'])
# Initial means, post flagging means
plt.figure()
plt.plot(imeans, 'g.:')
plt.plot(fmeans, 'r.:')
plt.xlabel('Subband')
plt.ylabel('Mean visibility amp')
plt.legend(['Original data', 'After running rflag'])
# Initial stdevs, post flagging stdevs
plt.figure()
plt.plot(istdevs, 'g.:')
plt.plot(fstdevs, 'r.:')
plt.xlabel('Subband')
plt.ylabel('Visibility standard dev (sigma)')
plt.legend(['Original data', 'After running rflag'])