This is a static copy of a profile report

Home

getIV (1 call, 0.098 sec)
Generated 05-Aug-2011 13:03:49 using cpu time.
function in file /home/LeechJ/cbass_analysis/reduc/support/getIV.m
Copy to new window for comparing multiple runs

Parents (calling functions)

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

Line NumberCodeCallsTotal Time% TimeTime Plot
73
d.antenna0.receiver.data = [I ...
10.044 s44.4%
51
U2 = d.antenna0.receiver.data(...
10.011 s11.1%
49
Q3 = d.antenna0.receiver.data(...
10.011 s11.1%
45
I  = d.antenna0.receiver.data(...
10.011 s11.1%
80
return;
10 s0%
All other lines  0.022 s22.2%
Totals  0.098 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
logcalfunction40 s0%
Self time (built-ins, overhead, etc.)  0.098 s100.0%
Totals  0.098 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in function80
Non-code lines (comments, blank lines)38
Code lines (lines that can run)42
Code lines that did run22
Code lines that did not run20
Coverage (did run/can run)52.38 %
Function listing
   time   calls  line
1 function d = getIV(d)
2
3 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4 %
5 % function d = getIV(d)
6 %
7 %
8 % function that checks what steps of the pipeline was applied, and
9 % generates the IQUV's accordingly
10 %
11 % output d will have d.antenna0.receiver.data be Nx8, where the order is
12 % [I Q1 U1 Q2 U2 Q3 U3 V];
13 %
14 % sjcm
15 %
16 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
17
18 % possible combinations:
19 % alpha
20 % alpha rfactor
21 % alpha_pol_only
22
23 % initialize variables
1 24 I = [];
25
26 % first we check for alpha
1 27 [d q] = logcal(d, 'alpha');
28
1 29 if(q)
1 30 [d q2] = logcal(d, 'rfactor');
31
1 32 if(q2)
33 % alpha and rfactor
34 I = d.antenna0.receiver.data(:,1);
35 V = d.antenna0.receiver.data(:,8);
36 Q1 = d.antenna0.receiver.data(:,2);
37 Q2 = d.antenna0.receiver.data(:,4);
38 Q3 = d.antenna0.receiver.data(:,6);
39 U1 = d.antenna0.receiver.data(:,3);
40 U2 = d.antenna0.receiver.data(:,5);
41 U3 = d.antenna0.receiver.data(:,7);
42
1 43 else
44 %alpha only
0.01 1 45 I = d.antenna0.receiver.data(:,1) + d.antenna0.receiver.data(:,9);
1 46 V = d.antenna0.receiver.data(:,1) - d.antenna0.receiver.data(:,9);
1 47 Q1 = d.antenna0.receiver.data(:,3);
1 48 Q2 = d.antenna0.receiver.data(:,5);
0.01 1 49 Q3 = d.antenna0.receiver.data(:,7);
1 50 U1 = d.antenna0.receiver.data(:,4);
0.01 1 51 U2 = d.antenna0.receiver.data(:,6);
1 52 U3 = d.antenna0.receiver.data(:,8);
53
1 54 end
1 55 end
56
1 57 [d q] = logcal(d, 'alpha_PolOnly');
58
1 59 if(q)
60 % alpha_PolOnly -- no r-factor
61 I = d.antenna0.receiver.data(:,1) + d.antenna0.receiver.data(:,8);
62 V = d.antenna0.receiver.data(:,1) - d.antenna0.receiver.data(:,9);
63 Q1 = d.antenna0.receiver.data(:,2);
64 Q2 = d.antenna0.receiver.data(:,4);
65 Q3 = d.antenna0.receiver.data(:,6);
66 U1 = d.antenna0.receiver.data(:,3);
67 U2 = d.antenna0.receiver.data(:,5);
68 U3 = d.antenna0.receiver.data(:,7);
69 end
70
1 71 if(~isempty(I))
72 % over write the data variable
0.04 1 73 d.antenna0.receiver.data = [I Q1 U1 Q2 U2 Q3 U3 V];
1 74 d = logcal(d, 'iv');
75 else
76 error('getIV failed. does not recognize what you''ve done to your data');
77 end
78
79
1 80 return;

Other subfunctions in this file are not included in this listing.