This is a static copy of a profile reportHome
webpipe>printpar (1 call, 0.011 sec)
Generated 05-Aug-2011 13:03:58 using cpu time.
subfunction in file /home/LeechJ/cbass_analysis/reduc/support/webpipe.m
Copy to new window for comparing multiple runs
Parents (calling functions)
Function Name | Function Type | Calls |
webpipe | function | 1 |
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
281 | fprintf(fid,sprintf(' min no... | 1 | 0.011 s | 100.0% |  |
308 | return; | 1 | 0 s | 0% |  |
306 | end | 16 | 0 s | 0% |  |
305 | end | 1 | 0 s | 0% |  |
303 | end | 1 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0.011 s | 100% | |
Children (called functions)
No childrenCode Analyzer results
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 122 |
Non-code lines (comments, blank lines) | 17 |
Code lines (lines that can run) | 105 |
Code lines that did run | 105 |
Code lines that did not run | 0 |
Coverage (did run/can run) | 100.00 % |
Function listing
time calls line
187 function printpar(fid,d)
188
1 189 fields = {'bitmask', 'deglitch', 'rfi', 'coord', 'mains', 'alpha', 'tsys', 'gain', 'rfactor', 'load', ...
190 'tau', 'astro', 'plotflag', 'autorun', 'rev','fits'};
191
1 192 fprintf(fid,'<p>\n');
1 193 fprintf(fid,'<h3>Parameters</h3>\n\n');
1 194 fprintf(fid,'<p>\n');
1 195 for m=1:length(fields)
16 196 switch fields{m}
16 197 case 'bitmask'
1 198 if (isfield(d.par,'bitmask'))
1 199 fprintf(fid,'<h3>Bitmask</h3>\n');
1 200 fprintf(fid,'<pre>\n');
1 201 fprintf(fid,sprintf(' Bits Flagged: %u \n',d.par.deglitch.chan1));
1 202 fprintf(fid,'</pre>\n');
1 203 end
204
15 205 case 'deglitch'
1 206 if (isfield(d.par,'deglitch'))
1 207 fprintf(fid,'<h3>Deglitch</h3>\n');
1 208 fprintf(fid,'<pre>\n');
1 209 fprintf(fid,sprintf(' Chan 1 Slope Jump: %u BU\n',d.par.deglitch.chan1));
1 210 fprintf(fid,sprintf(' Chan 2 Slope Jump: %u BU\n',d.par.deglitch.chan2));
1 211 fprintf(fid,'</pre>\n');
1 212 end
213
14 214 case 'rfi'
1 215 if (isfield(d.par,'rfi'))
1 216 fprintf(fid,'<h3>RFI flagging</h3>\n');
1 217 fprintf(fid,'<pre>\n');
1 218 fprintf(fid,sprintf(' short: %u\n',d.par.rfi.short));
1 219 fprintf(fid,sprintf(' long: %u\n',d.par.rfi.long));
1 220 fprintf(fid,sprintf(' smooth: %u\n',d.par.rfi.smooth));
1 221 fprintf(fid,sprintf(' rejection: %u\n',d.par.rfi.rejection));
1 222 fprintf(fid,'</pre>\n');
1 223 end
224
13 225 case 'coord'
1 226 if (isfield(d.par,'coord'))
1 227 fprintf(fid,'<h3>Positional flagging</h3>\n');
1 228 fprintf(fid,'<pre>\n');
1 229 fprintf(fid,sprintf('hemisphere: %u\n',d.par.coord.hemisphere));
1 230 fprintf(fid,'</pre>\n');
1 231 end
232
12 233 case 'mains'
1 234 if (isfield(d.par,'mains'))
1 235 fprintf(fid,'<h3>Mains Filtering</h3>\n');
1 236 fprintf(fid,'<pre>\n');
1 237 fprintf(fid,sprintf(' tukey filter params: %3.3f\n',d.par.mains.tukey));
1 238 fprintf(fid,'</pre>\n');
1 239 end
240
11 241 case 'alpha'
1 242 if (isfield(d.par,'alpha'))
1 243 fprintf(fid,'<h3>Alpha Correction</h3>\n');
1 244 fprintf(fid,'<pre>\n');
1 245 fprintf(fid,sprintf(' jump tolerance: %5.5f [BU]\n',d.par.alpha.jump));
1 246 fprintf(fid,sprintf(' flat tolerance: %5.5f [BU]\n', d.par.alpha.flat));
1 247 fprintf(fid,'</pre>\n');
1 248 end
249
10 250 case 'rfactor'
1 251 if (isfield(d.par,'rfactor'))
1 252 fprintf(fid,'<h3>R-factor correction</h3>\n');
1 253 fprintf(fid,'<pre>\n');
1 254 fprintf(fid,sprintf(' maximum value: %1.2f\n', d.par.rfactor.maxVal));
1 255 fprintf(fid,sprintf(' slope improvement: %1.2f\n', d.par.rfactor.slope));
1 256 fprintf(fid,sprintf(' smooth length: %1.2f\n', d.par.rfactor.smooth));
1 257 fprintf(fid,'</pre>\n');
1 258 end
259
9 260 case 'load'
1 261 if (isfield(d.par,'load'))
1 262 fprintf(fid,'<h3>Cold Load Correction</h3>\n');
1 263 fprintf(fid,'<pre>\n');
1 264 fprintf(fid,sprintf(' residual 1.2Hz power: %1.2f [per-cent]\n',d.par.load.residual));
1 265 fprintf(fid,'</pre>\n');
1 266 end
267
8 268 case 'tau'
1 269 if (isfield(d.par,'tau'))
1 270 fprintf(fid,'<h3>Opacity Flagging</h3>\n');
1 271 fprintf(fid,'<pre>\n');
1 272 fprintf(fid,sprintf(' outlier sigma: %u \n', d.par.tau.sigma));
1 273 fprintf(fid,'</pre>\n');
1 274 end
275
7 276 case 'tsys'
1 277 if (isfield(d.par,'tsys'))
1 278 fprintf(fid,'<h3>Tsys Flagging</h3>\n');
1 279 fprintf(fid,'<pre>\n');
1 280 fprintf(fid,sprintf(' max noise temp: %u \n', d.par.tsys.noisehi));
0.01 1 281 fprintf(fid,sprintf(' min noise temp: %u \n', d.par.tsys.noiselo));
1 282 fprintf(fid,sprintf(' max tsys temp: %u \n', d.par.tsys.valuehi));
1 283 fprintf(fid,sprintf(' min tsys temp: %u \n', d.par.tsys.valuelo));
1 284 fprintf(fid,'</pre>\n');
1 285 end
286
6 287 case 'astro'
1 288 if (isfield(d.par,'astro'))
1 289 fprintf(fid,'<h3>Astronomical Flagging</h3>\n');
1 290 fprintf(fid,'<pre>\n');
1 291 fprintf(fid, sprintf(' NONE YET'));
1 292 fprintf(fid,'</pre>\n');
1 293 end
294
5 295 case 'fits'
1 296 if (isfield(d.par,'fits'))
1 297 fprintf(fid,'<h3>FITS writing</h3>\n');
1 298 fprintf(fid,'<pre>\n');
1 299 fprintf(fid, sprintf('Was run with map flag %s \n',d.par.fits.domapflag));
1 300 fprintf(fid, sprintf('Frame = %s \n',d.par.fits.frame));
1 301 fprintf(fid, sprintf('Projection = %s \n',d.par.fits.projection));
1 302 fprintf(fid,'</pre>\n');
1 303 end
304
1 305 end
16 306 end
307
1 308 return;
Other subfunctions in this file are not included in this listing.