This is a static copy of a profile report

Home

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

Parents (calling functions)

Function NameFunction TypeCalls
overfWrapperfunction1
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
46
[stat.scan.fknee stat.scan.alp...
1112.590 s50.0%
61
[stat.noise.fknee stat.noise.a...
1112.306 s49.9%
57
setPlotDisplay(plotparams.plot...
10.055 s0.0%
43
setPlotDisplay(0);
10.055 s0.0%
51
scanEndPoints = chooseEndPoint...
10.022 s0.0%
All other lines  0.022 s0.0%
Totals  225.050 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
plot1overf>getStatsPlotssubfunction2224.897 s99.9%
setPlotDisplayfunction20.109 s0.0%
plot1overf>chooseEndPointssubfunction20.044 s0.0%
setwinsizefunction20 s0%
gcffunction20 s0%
Self time (built-ins, overhead, etc.)  0.000 s0.0%
Totals  225.050 s100% 
Code Analyzer results
Line numberMessage
1Function name 'plot1overf2' is known to MATLAB by its file name: 'plot1overf'.
51The value assigned to variable 'scanEndPoints' might be unused.
Coverage results
[ Show coverage for parent directory ]
Total lines in function64
Non-code lines (comments, blank lines)37
Code lines (lines that can run)27
Code lines that did run23
Code lines that did not run4
Coverage (did run/can run)85.19 %
Function listing
   time   calls  line
1 function stat = plot1overf2(d, plotparams, field)
2
3 %
4 % function stat = plot1overf2(d, plotparams, field)
5 %
6 % SJCM's adaptation of joe's makeWebpageSpectra.m. Main differences are:
7 %
8 % 1. flags data
9 % 2. selects scans to plot depending on how much data is unflagged --
10 % interpolates over flagged data if just a few
11 % 3. takes average spectra of all plots in given track.
12 % 4. plots only the average spectra
13 % 5. uses all channels, instead of limiting it to 6.
14 % 6. all 1/f plots on a single plot, instead of nchan plots
15 % 7. writes all fit data out into two files, one for everyscan and one for
16 % composite
17 %
18 %
19 %
20 % Make noise spectra plots for the data.
21 %
22 % We make plots of both the noise stares and the general data.
23 % Inputs:
24 % d data
25
26 % define variables for sampling
1 27 sample_frequency = 100;
1 28 samples_per_hour = sample_frequency * 60 * 60;
1 29 hours_per_stare_plot = 1;
1 30 hours_per_scan_plot = 0.5;
1 31 min_stare_length = 200;
1 32 min_scan_length = 10000;
1 33 samples_between_scan_plots = samples_per_hour*hours_per_scan_plot;
1 34 samples_between_stare_plots = samples_per_hour*hours_per_stare_plot;
35
36 % plot the scans
0.02 1 37 stareEndPoints = chooseEndPoints(d.index.noise_event.fast & ...
38 (~d.index.noise.fast),min_stare_length,samples_between_stare_plots );
1 39 if(plotparams.plot)
40 figure(1);clf;
41 setwinsize(gcf, 1000, 750);
1 42 else
0.05 1 43 setPlotDisplay(0);
1 44 setwinsize(gcf, 1000, 750);
1 45 end
112.59 1 46 [stat.scan.fknee stat.scan.alpha stat.scan.white stat.scan.mjd stat.scan.errorFlags] = getStatsPlots(d,stareEndPoints, ...
47 plotparams.save, field, 1);
48
49
50 % plot the noise data
0.02 1 51 scanEndPoints = chooseEndPoints(~d.index.noise_event.fast,min_scan_length,samples_between_scan_plots ...
52 );
1 53 if(plotparams.plot)
54 figure(2);clf;
55 setwinsize(gcf, 1000, 750);
1 56 else
0.05 1 57 setPlotDisplay(plotparams.plot);
1 58 setwinsize(gcf, 1000, 750);
1 59 end
60
112.31 1 61 [stat.noise.fknee stat.noise.alpha stat.noise.white stat.noise.mjd stat.noise.errorFlags] = getStatsPlots(d,stareEndPoints, ...
62 plotparams.save, field, 2);
63
1 64 return;

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