This is a static copy of a profile report

Home

readAlphaDatabase_DD (4 calls, 10.941 sec)
Generated 05-Aug-2011 13:01:16 using cpu time.
function in file /home/LeechJ/cbass_analysis/reduc/readAlphaDatabase_DD.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
reduceData>checkAlphaDatabasesubfunction1
checkAlphaDatabasefunction1
interpolateAlpha_DDfunction1
tsysWrapperfunction1
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
27
d = importdata([home,'/',insta...
410.832 s99.0%
31
gain = d.data(:,7:11);
40.033 s0.3%
36
temps = d.data(:,20:26);
40.022 s0.2%
32
r = d.data(:,12:13);
40.022 s0.2%
35
equa = d.data(:,18:19);
40.011 s0.1%
All other lines  0.022 s0.2%
Totals  10.941 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
importdatafunction410.810 s98.8%
where_am_ifunction40 s0%
Self time (built-ins, overhead, etc.)  0.131 s1.2%
Totals  10.941 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in function40
Non-code lines (comments, blank lines)27
Code lines (lines that can run)13
Code lines that did run13
Code lines that did not run0
Coverage (did run/can run)100.00 %
Function listing
   time   calls  line
1 function [t,alpha,gain,r,T,temps,horz,equa,TYPE,gainPO] = readAlphaDatabase_DD()
2 % [t,alpha,gain,r,T,temps,horz,equa,TYPE] = readAlphaDatabase_DD()
3 %
4 % This function reads in the database of alpha values from the disk and
5 % returns matrices of the information therein:
6 % t: Nx1 vector - MJD of alpha value measurement
7 % alpha: Nx5 matrix - alpha values
8 % gain: Nx5 matrix - gain values
9 % r: Nx2 matrix - r factor
10 % T: Nx2 matrix - estimate of Tsys/TND
11 % temps: Nx7 matrix - environmental temperature sensor data in degrees C
12 % horz: Nx2 matrix - telescope pointing direction in horizon coords (rad)
13 % equa: Nx2 matrix - telescope pointing direction in sky coords (rad)
14 % TYPE: Nx1 vector - vector detailing the way the alpha values were calculated.
15 % if == 0, then the values were calculated in interactive mode
16 % if == 1, then the values were calculated in non-interactive mode
17 % gainPO: Nx2 matrix - the gain factors for I1 and I2 in the
18 % polarization-only data reduction pipeline.
19 %
20 % OGK, December 2010
21 %
22 % ogk: mod 24 feb 2011 to add gainPO
23 %
24
4 25 [home,installeddir]=where_am_i();
26
10.83 4 27 d = importdata([home,'/',installeddir,'/constants/alphaDatabase_DD.txt'],' ',1);
28
4 29 t = d.data(:,1);
4 30 alpha = d.data(:,2:6);
0.03 4 31 gain = d.data(:,7:11);
0.02 4 32 r = d.data(:,12:13);
0.01 4 33 T = d.data(:,14:15);
4 34 horz = d.data(:,16:17);
0.01 4 35 equa = d.data(:,18:19);
0.02 4 36 temps = d.data(:,20:26);
4 37 TYPE = d.data(:,27);
4 38 gainPO = d.data(:,28:29);
39
4 40 end