This is a static copy of a profile reportHome
read_arc>cutDesiredData (1 call, 0.361 sec)
Generated 05-Aug-2011 13:00:59 using cpu time.
subfunction in file /home/LeechJ/cbass_analysis/reduc/read_arc.m
Copy to new window for comparing multiple runs
Parents (calling functions)
Function Name | Function Type | Calls |
read_arc | function | 1 |
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
281 | d = framecut(d, ind, 'regular'... | 1 | 0.339 s | 93.9% |  |
270 | indFs = mean(mean(indF,3),2)==... | 1 | 0.011 s | 3.0% |  |
269 | indF = permute(indF, [3 1 2]); | 1 | 0.011 s | 3.0% |  |
283 | return; | 1 | 0 s | 0% |  |
276 | ind = indMs & indFs &... | 1 | 0 s | 0% |  |
All other lines | | | 0.000 s | 0.0% |  |
Totals | | | 0.361 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
framecut | function | 1 | 0.339 s | 93.9% |  |
mean | function | 3 | 0.011 s | 3.0% |  |
Self time (built-ins, overhead, etc.) | | | 0.011 s | 3.0% |  |
Totals | | | 0.361 s | 100% | |
Code Analyzer results
Line number | Message |
255 | Use || instead of | as the OR operator in (scalar) conditional statements. |
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 38 |
Non-code lines (comments, blank lines) | 16 |
Code lines (lines that can run) | 22 |
Code lines that did run | 17 |
Code lines that did not run | 5 |
Coverage (did run/can run) | 77.27 % |
Function listing
time calls line
246 function d = cutDesiredData(d, mjdstartorig, mjdstoporig)
247
1 248 if(~isfield(d, 'array'))
249 return;
250 end
251
1 252 if(~isfield(d, 'antenna0'))
253 return;
1 254 else
1 255 if(~isfield(d.antenna0, 'receiver') | ~isfield(d.antenna0, 'servo'))
256 return;
257 end
1 258 end
259
260
1 261 indFast = d.antenna0.receiver.utc>=mjdstartorig & ...
262 d.antenna0.receiver.utc<mjdstoporig;
1 263 indMed = d.antenna0.servo.utc>=mjdstartorig & ...
264 d.antenna0.servo.utc<mjdstoporig;
1 265 indSlow = d.array.frame.utc>=mjdstartorig & d.array.frame.utc<mjdstoporig;
266
267
1 268 indF = reshape(indFast, [5 20 length(indSlow)]);
0.01 1 269 indF = permute(indF, [3 1 2]);
0.01 1 270 indFs = mean(mean(indF,3),2)==1;
271
1 272 indM = reshape(indMed, [5 length(indSlow)]);
1 273 indM = permute(indM, [2 1]);
1 274 indMs = mean(indM,2)==1;
275
1 276 ind = indMs & indFs & indSlow;
277
278 % these are the real ind on the slow scale. now we up it to the longer
279 % scales -- already done in framecut.
280
0.34 1 281 d = framecut(d, ind, 'regular');
282
1 283 return;
Other subfunctions in this file are not included in this listing.