This is a static copy of a profile report

Home

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)

Function NameFunction TypeCalls
reduceData>checkFlagssubfunction1
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
54
reportFlags(d, bitmask);
10.579 s73.6%
51
d = dataFilter(d, bitmask, fla...
10.208 s26.4%
56
return;
10 s0%
48
end
10 s0%
47
flagTime = [];
10 s0%
All other lines  0 s0%
Totals  0.787 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
flagData>reportFlagssubfunction10.579 s73.6%
flagData>dataFiltersubfunction10.208 s26.4%
Self time (built-ins, overhead, etc.)  0 s0%
Totals  0.787 s100% 
Code Analyzer results
Line numberMessage
Coverage results
[ Show coverage for parent directory ]
Total lines in function56
Non-code lines (comments, blank lines)47
Code lines (lines that can run)9
Code lines that did run7
Code lines that did not run2
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.