This is a static copy of a profile reportHome
flagData (1 call, 0.787 sec)
Generated 05-Aug-2011 13:01:31 using cpu time.
function in file /home/LeechJ/cbass_analysis/reduc/flag/flagData.m
Copy to new window for comparing multiple runs
Parents (calling functions)
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
54 | reportFlags(d, bitmask); | 1 | 0.579 s | 73.6% |  |
51 | d = dataFilter(d, bitmask, fla... | 1 | 0.208 s | 26.4% |  |
56 | return; | 1 | 0 s | 0% |  |
48 | end | 1 | 0 s | 0% |  |
47 | flagTime = []; | 1 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0.787 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
flagData>reportFlags | subfunction | 1 | 0.579 s | 73.6% |  |
flagData>dataFilter | subfunction | 1 | 0.208 s | 26.4% |  |
Self time (built-ins, overhead, etc.) | | | 0 s | 0% |  |
Totals | | | 0.787 s | 100% | |
Code Analyzer results
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 56 |
Non-code lines (comments, blank lines) | 47 |
Code lines (lines that can run) | 9 |
Code lines that did run | 7 |
Code lines that did not run | 2 |
Coverage (did run/can run) | 77.78 % |
Function listing
time calls line
1 function d = flagData(d, bitmask, flagTime)
2
3 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4 %
5 % function d = flagData(d, [bitmask], [flagTime])
6 %
7 % flags the data (from output of flagMask.m) according to the bitmask
8 % passed as input. You may also pass a timerange of the data to be
9 % flagged. [ ] indicates optional arguments. if none are passed, will
10 % default to a set value.
11 %
12 % 1st step is to flag on the bitmask (where bits are defined in flagMask.m)
13 % 2nd step is to flag on the flagTime (if specified)
14 % RFI flagging occurs in deglitch module
15 %
16 % on exiting, you will now have a field that is
17 % d.flags.slow, d.flags.medium, d.flags.fast, with another field called
18 % d.flags.bit.(slow/medium/fast), which will list the reason why the data was flagged.
19 %
20 % in the .bit fields, the bits correspond
21 % to the following:
22 % bit 0 - flagged by bitmask (antenna diagnostics flag)
23 % bit 1 - user flag
24 % bit 2 - time flag
25 % bit 3 - deglitch
26 % bit 4 - rfi
27 % bit 5 - position
28 % bit 6 - alpha
29 % bit 7 - tsys
30 % bit 8 - noise
31 % bit 9 - gain
32 % bit 10 - tau
33 % bit 11- astro
34 % bit 12- rfactor
35 %
36 % in the d.flags.(slow/medium/fast), the vectors will be booleans, with
37 % it set to high if the data is flagged for any reason.
38 %
39 % sjcm
40 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
41
42 % check inputs
1 43 if nargin==1
44 bitmask = [0 1 5 6 7 8 10 12];
45 flagTime = [];
1 46 elseif nargin==2
1 47 flagTime = [];
1 48 end
49
50 % set the flags.
0.21 1 51 d = dataFilter(d, bitmask, flagTime);
52
53 % report back what flags got set.
0.58 1 54 reportFlags(d, bitmask);
55
1 56 return;
Other subfunctions in this file are not included in this listing.