This is a static copy of a profile reportHome
reduceData>checkFlags (1 call, 12.056 sec)
Generated 05-Aug-2011 13:00:34 using cpu time.
subfunction in file /home/LeechJ/cbass_analysis/reduc/reduceData.m
Copy to new window for comparing multiple runs
Parents (calling functions)
Function Name | Function Type | Calls |
reduceData | function | 1 |
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
450 | d = apparentAzEl(d); | 1 | 8.416 s | 69.8% |  |
429 | d = flagMask(d); | 1 | 1.421 s | 11.8% |  |
431 | d = flagData(d, flagParams); | 1 | 0.798 s | 6.6% |  |
469 | d = calibrate_linearity(d); | 1 | 0.732 s | 6.1% |  |
463 | [equa] = horiz_coo([pi/180*(az... | 1 | 0.590 s | 4.9% |  |
All other lines | | | 0.098 s | 0.8% |  |
Totals | | | 12.056 s | 100% | |
Children (called functions)
Code Analyzer results
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 68 |
Non-code lines (comments, blank lines) | 17 |
Code lines (lines that can run) | 51 |
Code lines that did run | 35 |
Code lines that did not run | 16 |
Coverage (did run/can run) | 68.63 % |
Function listing
time calls line
406 function d=checkFlags(d, parm)
407
1 408 parFlag = checkpar(parm, 'bitmask');
409
1 410 if(parFlag)
1 411 flagParams = parm.bitmask.bitVals;
1 412 end
413
1 414 if (~isfield(d, 'flags'))
415 disp('Flags not detected. Flagging data')
416 pause(0.5)
417 disp(' ')
418 d = flagMask(d);
419 if(parFlag)
420 d = flagData(d, flagParams);
421 else
422 d = flagData(d);
423 end
1 424 else
1 425 if(~isfield(d.flags, 'mask'))
1 426 disp('Flags not detected. Flagging data')
0.01 1 427 pause(0.5)
1 428 disp(' ')
1.42 1 429 d = flagMask(d);
1 430 if(parFlag)
0.80 1 431 d = flagData(d, flagParams);
432 else
433 d = flagData(d);
434 end
435 else
436 disp('Flags found!')
437 pause(0.5)
438 end
1 439 end
440
1 441 if(~isfield(d, 'index'))
1 442 display('Determining Indices');
0.07 1 443 d = determineIndices(d);
1 444 d = fillRegisters(d);
1 445 end
446
1 447 if(~isfield(d.antenna0.servo, 'apparent'))
448 % calculating apparent azimuth and elevation
1 449 display('Calculating apparent Az/El');
8.42 1 450 d = apparentAzEl(d);
1 451 end
452
1 453 if(~isfield(d.antenna0.servo, 'equa'))
454 % calculating apparent azimuth and elevation
1 455 display('Calculating RA/DEC');
1 456 long=-118.2822;
1 457 lat=37.2339;
458
459
0.01 1 460 az = d.antenna0.servo.apparent(:,1);
1 461 el = d.antenna0.servo.apparent(:,2);
0.01 1 462 jd=mjd2jd(d.antenna0.receiver.utc);
0.59 1 463 [equa] = horiz_coo([pi/180*(az) pi/180*(el)],jd,[pi/180*(long) ...
464 pi/180*(lat)],'e');
1 465 d.antenna0.servo.equa=equa;
1 466 end
467
468 % apply nonliniarity correction
0.73 1 469 d = calibrate_linearity(d);
470
471
472
1 473 return;
Other subfunctions in this file are not included in this listing.