Changeset 13316
- Timestamp:
- 04/05/12 14:10:40 (13 years ago)
- Location:
- fact/tools/pyscripts
- Files:
-
- 32 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/tools/pyscripts/doc/_build/html/.buildinfo
r13151 r13316 1 1 # Sphinx build info version 1 2 2 # This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. 3 config: 4ccce79467c3c1e26dd2c30bdca247493 config: ba772b99f74f3e46a3c0f95d44c9931e 4 4 tags: fbb0d17656682115ca4d033fb2f83ba1 -
fact/tools/pyscripts/doc/_build/html/_sources/classes.txt
r13151 r13316 18 18 19 19 FIR filter functions 20 -------------------- 20 ===================== 21 21 .. autoclass:: fir_filter 22 22 :members: -
fact/tools/pyscripts/doc/_build/html/_sources/getting_started.txt
r13151 r13316 1 =============== 2 Getting Started 3 =============== 4 5 1) Get an account at the FACT data center at ISDC 6 2) Setup your environment variables 7 3) Checkout the pyfact software repository 8 4) Try a few examples 9 10 1. Important links 11 ================================= 12 13 **FACT data center at ISDC** <http://www.isdc.unige.ch/fact/datacenter>** 14 here you find instructions how to get an account, how to set it up and how to use it 15 16 **SVN repository** <https://fact.isdc.unige.ch/svn/fact/> 17 hosts all FACT software (including pyfact) 18 19 **FACT run database** <https://www.fact-project.org/run_db/db/fact_runinfo.php> 20 here you find information about all available runs 21 22 **eLogbook** <https://www.fact-project.org/logbook/> 23 telescope logbook used since Dec. 1, 2012; for logbook information before this date have a look here: <http://fact.ethz.ch/FACTelog/index.jsp> 24 25 **FACT La Palma pages** <https://www.fact-project.org/> 26 plenty of information concerning the telescope in La Palma 27 28 2. Environment variables 29 ===================== 30 set the following env variables depending on the SHELL you are using, for instance in .bashrc or .tcshrc 31 32 * **ROOTSYS**: /swdev_nfs/root_v5.28.00 33 * **PATH**: add $ROOTSYS/bin 34 * **PATH**: add /swdev_nfs/FACT++ 35 * **LD_LIBRARY_PATH**: $ROOTSYS/lib:/swdev_nfs/FACT++/.libs 36 * **PYTHONPATH**: $ROOTSYS/lib 37 * **PYTHONPATH**: add all directories where python should search for modules. At least: 38 * pyscripts/pyfact 39 * pyscript/tools 40 * pyscripts/ecamples 41 * py 42 43 the absolute path depends on where you have checked (or will check) out the pyscripts repository 44 45 3. Check out the repository 46 ======================== 47 svn co https://fact.isdc.unige.ch/svn/fact/tools/pyscripts/ 48 49 4. Create pyfits library 50 ======================== 51 FACT data are stored in (gzipped) fits files, but the data files are too large to be read by the default tool: 52 53 `pyfits <http://www.stsci.edu/institute/software_hardware/pyfits>`. 54 55 To mitigate this problem a C++ class defined in `fits.h` is used. A simple possibility to create an interface of this C++ class and python is to use the 56 57 `pyroot http://root.cern.ch/drupal/category/package-context/pyroot>` module. 58 59 simple:: 60 61 [pceth118] /home/luster/py > root 62 ROOT 5.28/00h (branches/v5-28-00-patches@42209, Feb 13 2012, 23:52:00 on linux) 63 CINT/ROOT C/C++ Interpreter version 5.18.00, July 2, 2010 64 Type ? for help. Commands must be C++ statements. 65 Enclose multiple statements between { }. 66 root [0] .L fits.h++ 67 Info in <TUnixSystem::ACLiC>: creating shared library /home/luster/py/./fits_h.so 68 root [1] 69 70 71 72 5. Run examples 73 ============ 74 75 1 76 ======= 2 77 Classes … … 8 83 rawdata access 9 84 ------- 10 .. autoclass:: pyfact. rawdata85 .. autoclass:: pyfact.RawData 11 86 :members: 12 87 -
fact/tools/pyscripts/doc/_build/html/_sources/index.txt
r13151 r13316 13 13 14 14 introduction 15 getting_started 15 16 classes 16 17 examples -
fact/tools/pyscripts/doc/_build/html/_sources/introduction.txt
r13151 r13316 9 9 * examples 10 10 11 The code of pyfact follows the `Style Guide for python code <http://www.python.org/dev/peps/pep-0008/>_. 11 If you are new to python you need to learn the basics. In any case it would be wise to study the following book: 12 13 *A Primer on Scientific Programming with Python - Hans Petter Langtangen* 14 15 pyfact is supposed to follow closely the programming style thought in this book. 16 17 `python documentation pages <http://docs.python.org/>`_ 18 19 `astropython.org <http://www.astropython.org/resources>`_ 20 21 Python version and modules used 22 ------------------------------- 23 As long as you work on the ISDC FACT cluster most things should be just fine. 24 |python version: 2.6.6 25 |--- add later: list of modules 26 27 Style guide and coding conventions 28 ---------------------------------- 29 The code of pyfact follows the `Style Guide for python code <http://www.python.org/dev/peps/pep-0008/>. -
fact/tools/pyscripts/doc/_build/html/_static/basic.css
r13151 r13316 5 5 * Sphinx stylesheet -- basic theme. 6 6 * 7 * :copyright: Copyright 2007-201 1by the Sphinx team, see AUTHORS.7 * :copyright: Copyright 2007-2010 by the Sphinx team, see AUTHORS. 8 8 * :license: BSD, see LICENSE for details. 9 9 * … … 78 78 font-family: sans-serif; 79 79 font-size: 1em; 80 }81 82 div.sphinxsidebar input[type="text"] {83 width: 170px;84 }85 86 div.sphinxsidebar input[type="submit"] {87 width: 30px;88 80 } 89 81 … … 222 214 } 223 215 224 img.align-left, .figure.align-left, object.align-left {225 clear: left;226 float: left;227 margin-right: 1em;228 }229 230 img.align-right, .figure.align-right, object.align-right {231 clear: right;232 float: right;233 margin-left: 1em;234 }235 236 img.align-center, .figure.align-center, object.align-center {237 display: block;238 margin-left: auto;239 margin-right: auto;240 }241 242 216 .align-left { 243 217 text-align: left; … … 245 219 246 220 .align-center { 221 clear: both; 247 222 text-align: center; 248 223 } … … 421 396 422 397 .footnote:target { 423 background-color: #ffa ;398 background-color: #ffa 424 399 } 425 400 … … 448 423 } 449 424 450 abbr, acronym {451 border-bottom: dotted 1px;452 cursor: help;453 }454 455 425 /* -- code displays --------------------------------------------------------- */ 456 426 457 427 pre { 458 428 overflow: auto; 459 overflow-y: hidden; /* fixes display issues on Chrome browsers */460 429 } 461 430 -
fact/tools/pyscripts/doc/_build/html/_static/default.css
r13151 r13316 5 5 * Sphinx stylesheet -- default theme. 6 6 * 7 * :copyright: Copyright 2007-201 1by the Sphinx team, see AUTHORS.7 * :copyright: Copyright 2007-2010 by the Sphinx team, see AUTHORS. 8 8 * :license: BSD, see LICENSE for details. 9 9 * -
fact/tools/pyscripts/doc/_build/html/_static/doctools.js
r13151 r13316 3 3 * ~~~~~~~~~~~ 4 4 * 5 * Sphinx JavaScript util ities for all documentation.5 * Sphinx JavaScript utilties for all documentation. 6 6 * 7 * :copyright: Copyright 2007-201 1by the Sphinx team, see AUTHORS.7 * :copyright: Copyright 2007-2010 by the Sphinx team, see AUTHORS. 8 8 * :license: BSD, see LICENSE for details. 9 9 * … … 186 186 }); 187 187 }, 10); 188 $('< pclass="highlight-link"><a href="javascript:Documentation.' +189 'hideSearchWords()">' + _('Hide Search Matches') + '</a></ p>')190 .appendTo($(' #searchbox'));188 $('<li class="highlight-link"><a href="javascript:Documentation.' + 189 'hideSearchWords()">' + _('Hide Search Matches') + '</a></li>') 190 .appendTo($('.sidebar .this-page-menu')); 191 191 } 192 192 }, … … 214 214 */ 215 215 hideSearchWords : function() { 216 $(' #searchbox.highlight-link').fadeOut(300);216 $('.sidebar .this-page-menu li.highlight-link').fadeOut(300); 217 217 $('span.highlighted').removeClass('highlighted'); 218 218 }, -
fact/tools/pyscripts/doc/_build/html/_static/searchtools.js
r13151 r13316 1 1 /* 2 * searchtools.js _t3 * ~~~~~~~~~~~~~~ ~~2 * searchtools.js 3 * ~~~~~~~~~~~~~~ 4 4 * 5 5 * Sphinx JavaScript utilties for the full-text search. 6 6 * 7 * :copyright: Copyright 2007-201 1by the Sphinx team, see AUTHORS.7 * :copyright: Copyright 2007-2010 by the Sphinx team, see AUTHORS. 8 8 * :license: BSD, see LICENSE for details. 9 9 * … … 37 37 } 38 38 39 40 39 /** 41 40 * Porter Stemmer 42 41 */ 43 var Stemmer = function() {42 var PorterStemmer = function() { 44 43 45 44 var step2list = { … … 302 301 303 302 query : function(query) { 304 var stopwords = ["and","then","into","it","as","are","in","if","for","no","there","their","was","is","be","to","that","but","they","not","such","with","by","a","on","these","of","will","this","near","the","or","at"]; 305 306 // Stem the searchterms and add them to the correct list 307 var stemmer = new Stemmer(); 303 var stopwords = ['and', 'then', 'into', 'it', 'as', 'are', 'in', 304 'if', 'for', 'no', 'there', 'their', 'was', 'is', 305 'be', 'to', 'that', 'but', 'they', 'not', 'such', 306 'with', 'by', 'a', 'on', 'these', 'of', 'will', 307 'this', 'near', 'the', 'or', 'at']; 308 309 // stem the searchterms and add them to the correct list 310 var stemmer = new PorterStemmer(); 308 311 var searchterms = []; 309 312 var excluded = []; 310 313 var hlterms = []; 311 314 var tmp = query.split(/\s+/); 312 var object terms = [];315 var object = (tmp.length == 1) ? tmp[0].toLowerCase() : null; 313 316 for (var i = 0; i < tmp.length; i++) { 314 if (tmp[i] != "") {315 objectterms.push(tmp[i].toLowerCase());316 }317 318 317 if ($u.indexOf(stopwords, tmp[i]) != -1 || tmp[i].match(/^\d+$/) || 319 318 tmp[i] == "") { … … 346 345 var titles = this._index.titles; 347 346 var terms = this._index.terms; 347 var objects = this._index.objects; 348 var objtypes = this._index.objtypes; 349 var objnames = this._index.objnames; 348 350 var fileMap = {}; 349 351 var files = null; … … 356 358 357 359 // lookup as object 358 for (var i = 0; i < objectterms.length; i++) { 359 var others = [].concat(objectterms.slice(0,i), 360 objectterms.slice(i+1, objectterms.length)) 361 var results = this.performObjectSearch(objectterms[i], others); 362 // Assume first word is most likely to be the object, 363 // other words more likely to be in description. 364 // Therefore put matches for earlier words first. 365 // (Results are eventually used in reverse order). 366 objectResults = results[0].concat(objectResults); 367 importantResults = results[1].concat(importantResults); 368 unimportantResults = results[2].concat(unimportantResults); 369 } 360 if (object != null) { 361 for (var prefix in objects) { 362 for (var name in objects[prefix]) { 363 var fullname = (prefix ? prefix + '.' : '') + name; 364 if (fullname.toLowerCase().indexOf(object) > -1) { 365 match = objects[prefix][name]; 366 descr = objnames[match[1]] + _(', in ') + titles[match[0]]; 367 // XXX the generated anchors are not generally correct 368 // XXX there may be custom prefixes 369 result = [filenames[match[0]], fullname, '#'+fullname, descr]; 370 switch (match[2]) { 371 case 1: objectResults.push(result); break; 372 case 0: importantResults.push(result); break; 373 case 2: unimportantResults.push(result); break; 374 } 375 } 376 } 377 } 378 } 379 380 // sort results descending 381 objectResults.sort(function(a, b) { 382 return (a[1] > b[1]) ? -1 : ((a[1] < b[1]) ? 1 : 0); 383 }); 384 385 importantResults.sort(function(a, b) { 386 return (a[1] > b[1]) ? -1 : ((a[1] < b[1]) ? 1 : 0); 387 }); 388 389 unimportantResults.sort(function(a, b) { 390 return (a[1] > b[1]) ? -1 : ((a[1] < b[1]) ? 1 : 0); 391 }); 392 370 393 371 394 // perform the search on the required terms … … 467 490 displayNextItem(); 468 491 }); 469 } , "text");492 }); 470 493 } else { 471 494 // no source available, just display title … … 488 511 } 489 512 displayNextItem(); 490 },491 492 performObjectSearch : function(object, otherterms) {493 var filenames = this._index.filenames;494 var objects = this._index.objects;495 var objnames = this._index.objnames;496 var titles = this._index.titles;497 498 var importantResults = [];499 var objectResults = [];500 var unimportantResults = [];501 502 for (var prefix in objects) {503 for (var name in objects[prefix]) {504 var fullname = (prefix ? prefix + '.' : '') + name;505 if (fullname.toLowerCase().indexOf(object) > -1) {506 var match = objects[prefix][name];507 var objname = objnames[match[1]][2];508 var title = titles[match[0]];509 // If more than one term searched for, we require other words to be510 // found in the name/title/description511 if (otherterms.length > 0) {512 var haystack = (prefix + ' ' + name + ' ' +513 objname + ' ' + title).toLowerCase();514 var allfound = true;515 for (var i = 0; i < otherterms.length; i++) {516 if (haystack.indexOf(otherterms[i]) == -1) {517 allfound = false;518 break;519 }520 }521 if (!allfound) {522 continue;523 }524 }525 var descr = objname + _(', in ') + title;526 anchor = match[3];527 if (anchor == '')528 anchor = fullname;529 else if (anchor == '-')530 anchor = objnames[match[1]][1] + '-' + fullname;531 result = [filenames[match[0]], fullname, '#'+anchor, descr];532 switch (match[2]) {533 case 1: objectResults.push(result); break;534 case 0: importantResults.push(result); break;535 case 2: unimportantResults.push(result); break;536 }537 }538 }539 }540 541 // sort results descending542 objectResults.sort(function(a, b) {543 return (a[1] > b[1]) ? -1 : ((a[1] < b[1]) ? 1 : 0);544 });545 546 importantResults.sort(function(a, b) {547 return (a[1] > b[1]) ? -1 : ((a[1] < b[1]) ? 1 : 0);548 });549 550 unimportantResults.sort(function(a, b) {551 return (a[1] > b[1]) ? -1 : ((a[1] < b[1]) ? 1 : 0);552 });553 554 return [importantResults, objectResults, unimportantResults]555 513 } 556 514 } -
fact/tools/pyscripts/doc/_build/html/_static/sidebar.js
r13151 r13316 17 17 * reset to the default (expanded). 18 18 * 19 * :copyright: Copyright 2007-201 1by the Sphinx team, see AUTHORS.19 * :copyright: Copyright 2007-2010 by the Sphinx team, see AUTHORS. 20 20 * :license: BSD, see LICENSE for details. 21 21 * … … 29 29 var sidebar = $('.sphinxsidebar'); 30 30 var sidebarwrapper = $('.sphinxsidebarwrapper'); 31 32 // for some reason, the document has no sidebar; do not run into errors33 if (!sidebar.length) return;34 31 35 32 // original margin-left of the bodywrapper and width of the sidebar -
fact/tools/pyscripts/doc/_build/html/_static/underscore.js
r13151 r13316 1 // Underscore.js 0.5.52 // (c) 2009 Jeremy Ashkenas, DocumentCloud Inc.3 // Underscore is freely distributable under the terms of the MIT license.4 // Portions of Underscore are inspired by or borrowed from Prototype.js,5 // Oliver Steele's Functional, and John Resig's Micro-Templating.6 // For all details and documentation:7 // http://documentcloud.github.com/underscore/8 1 (function(){var j=this,n=j._,i=function(a){this._wrapped=a},m=typeof StopIteration!=="undefined"?StopIteration:"__break__",b=j._=function(a){return new i(a)};if(typeof exports!=="undefined")exports._=b;var k=Array.prototype.slice,o=Array.prototype.unshift,p=Object.prototype.toString,q=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;b.VERSION="0.5.5";b.each=function(a,c,d){try{if(a.forEach)a.forEach(c,d);else if(b.isArray(a)||b.isArguments(a))for(var e=0,f=a.length;e<f;e++)c.call(d, 9 2 a[e],e,a);else{var g=b.keys(a);f=g.length;for(e=0;e<f;e++)c.call(d,a[g[e]],g[e],a)}}catch(h){if(h!=m)throw h;}return a};b.map=function(a,c,d){if(a&&b.isFunction(a.map))return a.map(c,d);var e=[];b.each(a,function(f,g,h){e.push(c.call(d,f,g,h))});return e};b.reduce=function(a,c,d,e){if(a&&b.isFunction(a.reduce))return a.reduce(b.bind(d,e),c);b.each(a,function(f,g,h){c=d.call(e,c,f,g,h)});return c};b.reduceRight=function(a,c,d,e){if(a&&b.isFunction(a.reduceRight))return a.reduceRight(b.bind(d,e),c); -
fact/tools/pyscripts/doc/_build/html/classes.html
r13151 r13316 4 4 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 5 5 6 7 6 <html xmlns="http://www.w3.org/1999/xhtml"> 8 7 <head> 9 8 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 10 9 11 <title>Classes — pyfact 0.1 documentation</title> 12 10 <title>Classes — pyfact v0.1 documentation</title> 13 11 <link rel="stylesheet" href="_static/default.css" type="text/css" /> 14 12 <link rel="stylesheet" href="_static/pygments.css" type="text/css" /> 15 16 13 <script type="text/javascript"> 17 14 var DOCUMENTATION_OPTIONS = { … … 26 23 <script type="text/javascript" src="_static/underscore.js"></script> 27 24 <script type="text/javascript" src="_static/doctools.js"></script> 28 <link rel="top" title="pyfact 0.1 documentation" href="index.html" />25 <link rel="top" title="pyfact v0.1 documentation" href="index.html" /> 29 26 <link rel="next" title="Examples" href="examples.html" /> 30 27 <link rel="prev" title="Introduction" href="introduction.html" /> … … 43 40 <a href="introduction.html" title="Introduction" 44 41 accesskey="P">previous</a> |</li> 45 <li><a href="index.html">pyfact 0.1 documentation</a> »</li>42 <li><a href="index.html">pyfact v0.1 documentation</a> »</li> 46 43 </ul> 47 44 </div> … … 61 58 <div class="section" id="fnames-of-a-data-run"> 62 59 <h3>fnames of a data run<a class="headerlink" href="#fnames-of-a-data-run" title="Permalink to this headline">¶</a></h3> 60 <dl class="class"> 61 <dt id="pyfact.fnames"> 62 <em class="property">class </em><tt class="descclassname">pyfact.</tt><tt class="descname">fnames</tt><big>(</big><em>specifier=['012', '023', '2011', '11', '24'], rpath='/scratch_nfs/res/bsl/', zipped=True</em><big>)</big><a class="headerlink" href="#pyfact.fnames" title="Permalink to this definition">¶</a></dt> 63 <dd><p>organize file names of a FACT data run</p> 64 <dl class="docutils"> 65 <dt>specifier <span class="classifier-delimiter">:</span> <span class="classifier">list of strings defined as:</span></dt> 66 <dd>[ ‘DRS calibration file’, ‘Data file’, ‘YYYY’, ‘MM’, ‘DD’]</dd> 67 </dl> 68 <p>rpath : directory path for the results; YYYYMMDD will be appended to rpath 69 zipped : use zipped (True) or unzipped (Data)</p> 70 <dl class="method"> 71 <dt id="pyfact.fnames.info"> 72 <tt class="descname">info</tt><big>(</big><big>)</big><a class="headerlink" href="#pyfact.fnames.info" title="Permalink to this definition">¶</a></dt> 73 <dd><p>print complete filenames</p> 74 </dd></dl> 75 76 <dl class="method"> 77 <dt id="pyfact.fnames.make"> 78 <tt class="descname">make</tt><big>(</big><em>specifier</em>, <em>rpath</em>, <em>zipped</em><big>)</big><a class="headerlink" href="#pyfact.fnames.make" title="Permalink to this definition">¶</a></dt> 79 <dd><p>create (make) the filenames</p> 80 <p>names : dictionary of filenames, tags { ‘data’, ‘drscal’, ‘results’ } 81 data : name of the data file 82 drscal : name of the drs calibration file 83 results : radikal of file name(s) for results (to be completed by suffixes)</p> 84 </dd></dl> 85 86 </dd></dl> 87 88 </div> 63 89 </div> 64 90 <div class="section" id="fir-filter-functions"> 65 <h3>FIR filter functions<a class="headerlink" href="#fir-filter-functions" title="Permalink to this headline">¶</a></h3> 66 </div> 91 <h2>FIR filter functions<a class="headerlink" href="#fir-filter-functions" title="Permalink to this headline">¶</a></h2> 67 92 </div> 68 93 </div> … … 80 105 <li><a class="reference internal" href="#rawdata-access">rawdata access</a></li> 81 106 <li><a class="reference internal" href="#fnames-of-a-data-run">fnames of a data run</a></li> 82 <li><a class="reference internal" href="#fir-filter-functions">FIR filter functions</a></li>83 107 </ul> 84 108 </li> 109 <li><a class="reference internal" href="#fir-filter-functions">FIR filter functions</a></li> 85 110 </ul> 86 111 </li> … … 101 126 <h3>Quick search</h3> 102 127 <form class="search" action="search.html" method="get"> 103 <input type="text" name="q" />128 <input type="text" name="q" size="18" /> 104 129 <input type="submit" value="Go" /> 105 130 <input type="hidden" name="check_keywords" value="yes" /> … … 127 152 <a href="introduction.html" title="Introduction" 128 153 >previous</a> |</li> 129 <li><a href="index.html">pyfact 0.1 documentation</a> »</li>154 <li><a href="index.html">pyfact v0.1 documentation</a> »</li> 130 155 </ul> 131 156 </div> 132 157 <div class="footer"> 133 158 © Copyright 2012, Werner Lustermann. 134 Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1. 1.2.159 Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.4. 135 160 </div> 136 161 </body> -
fact/tools/pyscripts/doc/_build/html/examples.html
r13151 r13316 4 4 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 5 5 6 7 6 <html xmlns="http://www.w3.org/1999/xhtml"> 8 7 <head> 9 8 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 10 9 11 <title>Examples — pyfact 0.1 documentation</title> 12 10 <title>Examples — pyfact v0.1 documentation</title> 13 11 <link rel="stylesheet" href="_static/default.css" type="text/css" /> 14 12 <link rel="stylesheet" href="_static/pygments.css" type="text/css" /> 15 16 13 <script type="text/javascript"> 17 14 var DOCUMENTATION_OPTIONS = { … … 26 23 <script type="text/javascript" src="_static/underscore.js"></script> 27 24 <script type="text/javascript" src="_static/doctools.js"></script> 28 <link rel="top" title="pyfact 0.1 documentation" href="index.html" />25 <link rel="top" title="pyfact v0.1 documentation" href="index.html" /> 29 26 <link rel="next" title="phyton in FACT" href="python.html" /> 30 27 <link rel="prev" title="Classes" href="classes.html" /> … … 43 40 <a href="classes.html" title="Classes" 44 41 accesskey="P">previous</a> |</li> 45 <li><a href="index.html">pyfact 0.1 documentation</a> »</li>42 <li><a href="index.html">pyfact v0.1 documentation</a> »</li> 46 43 </ul> 47 44 </div> … … 97 94 <h3>Quick search</h3> 98 95 <form class="search" action="search.html" method="get"> 99 <input type="text" name="q" />96 <input type="text" name="q" size="18" /> 100 97 <input type="submit" value="Go" /> 101 98 <input type="hidden" name="check_keywords" value="yes" /> … … 123 120 <a href="classes.html" title="Classes" 124 121 >previous</a> |</li> 125 <li><a href="index.html">pyfact 0.1 documentation</a> »</li>122 <li><a href="index.html">pyfact v0.1 documentation</a> »</li> 126 123 </ul> 127 124 </div> 128 125 <div class="footer"> 129 126 © Copyright 2012, Werner Lustermann. 130 Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1. 1.2.127 Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.4. 131 128 </div> 132 129 </body> -
fact/tools/pyscripts/doc/_build/html/genindex.html
r13151 r13316 1 2 3 1 4 2 … … 6 4 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 7 5 8 9 6 <html xmlns="http://www.w3.org/1999/xhtml"> 10 7 <head> 11 8 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 12 9 13 <title>Index — pyfact 0.1 documentation</title> 14 10 <title>Index — pyfact v0.1 documentation</title> 15 11 <link rel="stylesheet" href="_static/default.css" type="text/css" /> 16 12 <link rel="stylesheet" href="_static/pygments.css" type="text/css" /> 17 18 13 <script type="text/javascript"> 19 14 var DOCUMENTATION_OPTIONS = { … … 28 23 <script type="text/javascript" src="_static/underscore.js"></script> 29 24 <script type="text/javascript" src="_static/doctools.js"></script> 30 <link rel="top" title="pyfact 0.1 documentation" href="index.html" />25 <link rel="top" title="pyfact v0.1 documentation" href="index.html" /> 31 26 </head> 32 27 <body> … … 37 32 <a href="#" title="General Index" 38 33 accesskey="I">index</a></li> 39 <li><a href="index.html">pyfact 0.1 documentation</a> »</li>34 <li><a href="index.html">pyfact v0.1 documentation</a> »</li> 40 35 </ul> 41 36 </div> … … 47 42 48 43 49 <h1 id="index">Index</h1>44 <h1 id="index">Index</h1> 50 45 51 <div class="genindex-jumpbox"> 52 53 </div> 46 <div class="genindex-jumpbox"> 47 <a href="#B"><strong>B</strong></a> | <a href="#C"><strong>C</strong></a> | <a href="#D"><strong>D</strong></a> | <a href="#F"><strong>F</strong></a> | <a href="#I"><strong>I</strong></a> | <a href="#M"><strong>M</strong></a> | <a href="#N"><strong>N</strong></a> | <a href="#R"><strong>R</strong></a> | <a href="#S"><strong>S</strong></a> 48 </div> 49 <h2 id="B">B</h2> 50 <table width="100%" class="indextable genindextable"><tr> 51 <td width="33%" valign="top"><dl> 52 <dt><a href="getting_started.html#pyfact.RawData.baseline_correct">baseline_correct() (pyfact.RawData method)</a></dt> 53 <dt><a href="getting_started.html#pyfact.RawData.baseline_read_values">baseline_read_values() (pyfact.RawData method)</a></dt> 54 </dl></td> 55 <td width="33%" valign="top"><dl> 56 <dt><a href="getting_started.html#pyfact.RawData.board_times">board_times (pyfact.RawData attribute)</a></dt> 57 </dl></td> 58 </tr></table> 59 60 <h2 id="C">C</h2> 61 <table width="100%" class="indextable genindextable"><tr> 62 <td width="33%" valign="top"><dl> 63 <dt><a href="getting_started.html#pyfact.RawData.calib_file">calib_file (pyfact.RawData attribute)</a></dt> 64 </dl></td> 65 <td width="33%" valign="top"><dl> 66 <dt><a href="getting_started.html#pyfact.RawData.calibrate_drs_amplitude">calibrate_drs_amplitude() (pyfact.RawData method)</a></dt> 67 </dl></td> 68 </tr></table> 69 70 <h2 id="D">D</h2> 71 <table width="100%" class="indextable genindextable"><tr> 72 <td width="33%" valign="top"><dl> 73 <dt><a href="getting_started.html#pyfact.RawData.data">data (pyfact.RawData attribute)</a></dt> 74 </dl></td> 75 <td width="33%" valign="top"><dl> 76 <dt><a href="getting_started.html#pyfact.RawData.data_file">data_file (pyfact.RawData attribute)</a></dt> 77 </dl></td> 78 </tr></table> 79 80 <h2 id="F">F</h2> 81 <table width="100%" class="indextable genindextable"><tr> 82 <td width="33%" valign="top"><dl> 83 <dt><a href="classes.html#pyfact.fnames">fnames (class in pyfact)</a>, <a href="getting_started.html#pyfact.fnames">[1]</a></dt> 84 </dl></td> 85 </tr></table> 86 87 <h2 id="I">I</h2> 88 <table width="100%" class="indextable genindextable"><tr> 89 <td width="33%" valign="top"><dl> 90 <dt><a href="classes.html#pyfact.fnames.info">info() (pyfact.fnames method)</a>, <a href="getting_started.html#pyfact.fnames.info">[1]</a></dt> 91 <dd><dl> 92 <dt><a href="getting_started.html#pyfact.RawData.info">(pyfact.RawData method)</a></dt> 93 </dl></dd> 94 </dl></td> 95 </tr></table> 96 97 <h2 id="M">M</h2> 98 <table width="100%" class="indextable genindextable"><tr> 99 <td width="33%" valign="top"><dl> 100 <dt><a href="classes.html#pyfact.fnames.make">make() (pyfact.fnames method)</a>, <a href="getting_started.html#pyfact.fnames.make">[1]</a></dt> 101 </dl></td> 102 </tr></table> 103 104 <h2 id="N">N</h2> 105 <table width="100%" class="indextable genindextable"><tr> 106 <td width="33%" valign="top"><dl> 107 <dt><a href="getting_started.html#pyfact.RawData.nevents">nevents (pyfact.RawData attribute)</a></dt> 108 <dt><a href="getting_started.html#pyfact.RawData.next">next() (pyfact.RawData method)</a></dt> 109 <dt><a href="getting_started.html#pyfact.RawData.next_event">next_event() (pyfact.RawData method)</a></dt> 110 </dl></td> 111 <td width="33%" valign="top"><dl> 112 <dt><a href="getting_started.html#pyfact.RawData.npix">npix (pyfact.RawData attribute)</a></dt> 113 <dt><a href="getting_started.html#pyfact.RawData.nroi">nroi (pyfact.RawData attribute)</a></dt> 114 </dl></td> 115 </tr></table> 116 117 <h2 id="R">R</h2> 118 <table width="100%" class="indextable genindextable"><tr> 119 <td width="33%" valign="top"><dl> 120 <dt><a href="getting_started.html#pyfact.RawData">RawData (class in pyfact)</a></dt> 121 </dl></td> 122 </tr></table> 123 124 <h2 id="S">S</h2> 125 <table width="100%" class="indextable genindextable"><tr> 126 <td width="33%" valign="top"><dl> 127 <dt><a href="getting_started.html#pyfact.RawData.start_cells">start_cells (pyfact.RawData attribute)</a></dt> 128 </dl></td> 129 </tr></table> 130 54 131 55 132 … … 65 142 <h3>Quick search</h3> 66 143 <form class="search" action="search.html" method="get"> 67 <input type="text" name="q" />144 <input type="text" name="q" size="18" /> 68 145 <input type="submit" value="Go" /> 69 146 <input type="hidden" name="check_keywords" value="yes" /> … … 85 162 <a href="#" title="General Index" 86 163 >index</a></li> 87 <li><a href="index.html">pyfact 0.1 documentation</a> »</li>164 <li><a href="index.html">pyfact v0.1 documentation</a> »</li> 88 165 </ul> 89 166 </div> 90 167 <div class="footer"> 91 168 © Copyright 2012, Werner Lustermann. 92 Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1. 1.2.169 Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.4. 93 170 </div> 94 171 </body> -
fact/tools/pyscripts/doc/_build/html/getting_started.html
r13151 r13316 3 3 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 4 4 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 5 6 5 7 6 <html xmlns="http://www.w3.org/1999/xhtml"> … … 9 8 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 10 9 11 <title>Classes — pyfact 0.1 documentation</title> 12 10 <title>Getting Started — pyfact v0.1 documentation</title> 13 11 <link rel="stylesheet" href="_static/default.css" type="text/css" /> 14 12 <link rel="stylesheet" href="_static/pygments.css" type="text/css" /> 15 16 13 <script type="text/javascript"> 17 14 var DOCUMENTATION_OPTIONS = { … … 26 23 <script type="text/javascript" src="_static/underscore.js"></script> 27 24 <script type="text/javascript" src="_static/doctools.js"></script> 28 <link rel="top" title="pyfact 0.1 documentation" href="index.html" /> 25 <link rel="top" title="pyfact v0.1 documentation" href="index.html" /> 26 <link rel="next" title="Classes" href="classes.html" /> 27 <link rel="prev" title="Introduction" href="introduction.html" /> 29 28 </head> 30 29 <body> … … 35 34 <a href="genindex.html" title="General Index" 36 35 accesskey="I">index</a></li> 37 <li><a href="index.html">pyfact 0.1 documentation</a> »</li> 36 <li class="right" > 37 <a href="classes.html" title="Classes" 38 accesskey="N">next</a> |</li> 39 <li class="right" > 40 <a href="introduction.html" title="Introduction" 41 accesskey="P">previous</a> |</li> 42 <li><a href="index.html">pyfact v0.1 documentation</a> »</li> 38 43 </ul> 39 44 </div> … … 44 49 <div class="body"> 45 50 46 <div class="section" id="classes"> 51 <div class="section" id="getting-started"> 52 <h1>Getting Started<a class="headerlink" href="#getting-started" title="Permalink to this headline">¶</a></h1> 53 <ol class="arabic simple"> 54 <li>Get an account at the FACT data center at ISDC</li> 55 <li>Setup your environment variables</li> 56 <li>Checkout the pyfact software repository</li> 57 <li>Try a few examples</li> 58 </ol> 59 <div class="section" id="important-links"> 60 <h2>1. Important links<a class="headerlink" href="#important-links" title="Permalink to this headline">¶</a></h2> 61 <dl class="docutils"> 62 <dt><strong>FACT data center at ISDC</strong> <<a class="reference external" href="http://www.isdc.unige.ch/fact/datacenter">http://www.isdc.unige.ch/fact/datacenter</a>>**</dt> 63 <dd>here you find instructions how to get an account, how to set it up and how to use it</dd> 64 <dt><strong>SVN repository</strong> <<a class="reference external" href="https://fact.isdc.unige.ch/svn/fact/">https://fact.isdc.unige.ch/svn/fact/</a>></dt> 65 <dd>hosts all FACT software (including pyfact)</dd> 66 <dt><strong>FACT run database</strong> <<a class="reference external" href="https://www.fact-project.org/run_db/db/fact_runinfo.php">https://www.fact-project.org/run_db/db/fact_runinfo.php</a>></dt> 67 <dd>here you find information about all available runs</dd> 68 <dt><strong>eLogbook</strong> <<a class="reference external" href="https://www.fact-project.org/logbook/">https://www.fact-project.org/logbook/</a>></dt> 69 <dd>telescope logbook used since Dec. 1, 2012; for logbook information before this date have a look here: <<a class="reference external" href="http://fact.ethz.ch/FACTelog/index.jsp">http://fact.ethz.ch/FACTelog/index.jsp</a>></dd> 70 <dt><strong>FACT La Palma pages</strong> <<a class="reference external" href="https://www.fact-project.org/">https://www.fact-project.org/</a>></dt> 71 <dd>plenty of information concerning the telescope in La Palma</dd> 72 </dl> 73 </div> 74 <div class="section" id="environment-variables"> 75 <h2>2. Environment variables<a class="headerlink" href="#environment-variables" title="Permalink to this headline">¶</a></h2> 76 <p>set the following env variables depending on the SHELL you are using, for instance in .bashrc or .tcshrc</p> 77 <ul> 78 <li><p class="first"><strong>ROOTSYS</strong>: /swdev_nfs/root_v5.28.00</p> 79 </li> 80 <li><p class="first"><strong>PATH</strong>: add $ROOTSYS/bin</p> 81 </li> 82 <li><p class="first"><strong>PATH</strong>: add /swdev_nfs/FACT++</p> 83 </li> 84 <li><p class="first"><strong>LD_LIBRARY_PATH</strong>: $ROOTSYS/lib:/swdev_nfs/FACT++/.libs</p> 85 </li> 86 <li><p class="first"><strong>PYTHONPATH</strong>: $ROOTSYS/lib</p> 87 </li> 88 <li><dl class="first docutils"> 89 <dt><strong>PYTHONPATH</strong>: add all directories where python should search for modules. At least:</dt> 90 <dd><ul class="first last simple"> 91 <li>pyscripts/pyfact</li> 92 <li>pyscript/tools</li> 93 <li>pyscripts/ecamples</li> 94 <li>py</li> 95 </ul> 96 </dd> 97 </dl> 98 </li> 99 </ul> 100 <p>the absolute path depends on where you have checked (or will check) out the pyscripts repository</p> 101 </div> 102 <div class="section" id="check-out-the-repository"> 103 <h2>3. Check out the repository<a class="headerlink" href="#check-out-the-repository" title="Permalink to this headline">¶</a></h2> 104 <p>svn co <a class="reference external" href="https://fact.isdc.unige.ch/svn/fact/tools/pyscripts/">https://fact.isdc.unige.ch/svn/fact/tools/pyscripts/</a></p> 105 </div> 106 <div class="section" id="create-pyfits-library"> 107 <h2>4. Create pyfits library<a class="headerlink" href="#create-pyfits-library" title="Permalink to this headline">¶</a></h2> 108 <p>FACT data are stored in (gzipped) fits files, but the data files are too large to be read by the default tool:</p> 109 <p><cite>pyfits <http://www.stsci.edu/institute/software_hardware/pyfits></cite>.</p> 110 <p>To mitigate this problem a C++ class defined in <cite>fits.h</cite> is used. A simple possibility to create an interface of this C++ class and python is to use the</p> 111 <p><cite>pyroot http://root.cern.ch/drupal/category/package-context/pyroot></cite> module.</p> 112 <p>simple:</p> 113 <div class="highlight-python"><pre>[pceth118] /home/luster/py > root 114 ROOT 5.28/00h (branches/v5-28-00-patches@42209, Feb 13 2012, 23:52:00 on linux) 115 CINT/ROOT C/C++ Interpreter version 5.18.00, July 2, 2010 116 Type ? for help. Commands must be C++ statements. 117 Enclose multiple statements between { }. 118 root [0] .L fits.h++ 119 Info in <TUnixSystem::ACLiC>: creating shared library /home/luster/py/./fits_h.so 120 root [1]</pre> 121 </div> 122 </div> 123 <div class="section" id="run-examples"> 124 <h2>5. Run examples<a class="headerlink" href="#run-examples" title="Permalink to this headline">¶</a></h2> 125 </div> 126 </div> 127 <div class="section" id="classes"> 47 128 <h1>Classes<a class="headerlink" href="#classes" title="Permalink to this headline">¶</a></h1> 48 129 <div class="section" id="pyfact-py"> … … 50 131 <div class="section" id="rawdata-access"> 51 132 <h3>rawdata access<a class="headerlink" href="#rawdata-access" title="Permalink to this headline">¶</a></h3> 133 <dl class="class"> 134 <dt id="pyfact.RawData"> 135 <em class="property">class </em><tt class="descclassname">pyfact.</tt><tt class="descname">RawData</tt><big>(</big><em>data_file_name</em>, <em>calib_file_name</em>, <em>user_action_calib=<function <lambda> at 0xa818844></em>, <em>baseline_file_name=''</em>, <em>return_dict=None</em><big>)</big><a class="headerlink" href="#pyfact.RawData" title="Permalink to this definition">¶</a></dt> 136 <dd><p>raw data access and calibration</p> 137 <ul class="simple"> 138 <li>open raw data file and drs calibration file</li> 139 <li>performs amplitude calibration</li> 140 <li>performs baseline substraction if wanted</li> 141 <li>provides all data in an array: 142 row = number of pixel 143 col = length of region of interest</li> 144 </ul> 145 <p>initialize object</p> 146 <p>open data file and calibration data file 147 get basic information about the data in data_file_name 148 allocate buffers for data access</p> 149 <p>data_file_name : fits or fits.gz file of the data including the path 150 calib_file_name : fits or fits.gz file containing DRS calibration data 151 baseline_file_name : npy file containing the baseline values</p> 152 <dl class="method"> 153 <dt id="pyfact.RawData.baseline_correct"> 154 <tt class="descname">baseline_correct</tt><big>(</big><big>)</big><a class="headerlink" href="#pyfact.RawData.baseline_correct" title="Permalink to this definition">¶</a></dt> 155 <dd><p>subtract baseline from the data</p> 156 </dd></dl> 157 158 <dl class="method"> 159 <dt id="pyfact.RawData.baseline_read_values"> 160 <tt class="descname">baseline_read_values</tt><big>(</big><em>file</em>, <em>bsl_hist='bsl_sum/hplt_mean'</em><big>)</big><a class="headerlink" href="#pyfact.RawData.baseline_read_values" title="Permalink to this definition">¶</a></dt> 161 <dd><p>open ROOT file with baseline histogram and read baseline values 162 file name of the root file 163 bsl_hist path to the histogram containing the basline values</p> 164 </dd></dl> 165 166 <dl class="attribute"> 167 <dt id="pyfact.RawData.board_times"> 168 <tt class="descname">board_times</tt><a class="headerlink" href="#pyfact.RawData.board_times" title="Permalink to this definition">¶</a></dt> 169 <dd><p>time when the FAD was triggered, in some strange units...</p> 170 </dd></dl> 171 172 <dl class="attribute"> 173 <dt id="pyfact.RawData.calib_file"> 174 <tt class="descname">calib_file</tt><a class="headerlink" href="#pyfact.RawData.calib_file" title="Permalink to this definition">¶</a></dt> 175 <dd><p>drs calibration file</p> 176 </dd></dl> 177 178 <dl class="method"> 179 <dt id="pyfact.RawData.calibrate_drs_amplitude"> 180 <tt class="descname">calibrate_drs_amplitude</tt><big>(</big><big>)</big><a class="headerlink" href="#pyfact.RawData.calibrate_drs_amplitude" title="Permalink to this definition">¶</a></dt> 181 <dd><p>perform the drs amplitude calibration of the event data</p> 182 </dd></dl> 183 184 <dl class="attribute"> 185 <dt id="pyfact.RawData.data"> 186 <tt class="descname">data</tt><a class="headerlink" href="#pyfact.RawData.data" title="Permalink to this definition">¶</a></dt> 187 <dd><p>1D array with raw data</p> 188 </dd></dl> 189 190 <dl class="attribute"> 191 <dt id="pyfact.RawData.data_file"> 192 <tt class="descname">data_file</tt><a class="headerlink" href="#pyfact.RawData.data_file" title="Permalink to this definition">¶</a></dt> 193 <dd><p>data file (fits object)</p> 194 </dd></dl> 195 196 <dl class="method"> 197 <dt id="pyfact.RawData.info"> 198 <tt class="descname">info</tt><big>(</big><big>)</big><a class="headerlink" href="#pyfact.RawData.info" title="Permalink to this definition">¶</a></dt> 199 <dd><p>print run information</p> 200 </dd></dl> 201 202 <dl class="attribute"> 203 <dt id="pyfact.RawData.nevents"> 204 <tt class="descname">nevents</tt><a class="headerlink" href="#pyfact.RawData.nevents" title="Permalink to this definition">¶</a></dt> 205 <dd><p>number of events in the data run</p> 206 </dd></dl> 207 208 <dl class="method"> 209 <dt id="pyfact.RawData.next"> 210 <tt class="descname">next</tt><big>(</big><big>)</big><a class="headerlink" href="#pyfact.RawData.next" title="Permalink to this definition">¶</a></dt> 211 <dd><p>used by __iter__</p> 212 </dd></dl> 213 214 <dl class="method"> 215 <dt id="pyfact.RawData.next_event"> 216 <tt class="descname">next_event</tt><big>(</big><big>)</big><a class="headerlink" href="#pyfact.RawData.next_event" title="Permalink to this definition">¶</a></dt> 217 <dd><p>load the next event from disk and calibrate it</p> 218 </dd></dl> 219 220 <dl class="attribute"> 221 <dt id="pyfact.RawData.npix"> 222 <tt class="descname">npix</tt><a class="headerlink" href="#pyfact.RawData.npix" title="Permalink to this definition">¶</a></dt> 223 <dd><p>number of pixels (should be 1440)</p> 224 </dd></dl> 225 226 <dl class="attribute"> 227 <dt id="pyfact.RawData.nroi"> 228 <tt class="descname">nroi</tt><a class="headerlink" href="#pyfact.RawData.nroi" title="Permalink to this definition">¶</a></dt> 229 <dd><p>region of interest (number of DRS slices read)</p> 230 </dd></dl> 231 232 <dl class="attribute"> 233 <dt id="pyfact.RawData.start_cells"> 234 <tt class="descname">start_cells</tt><a class="headerlink" href="#pyfact.RawData.start_cells" title="Permalink to this definition">¶</a></dt> 235 <dd><p>slice where drs readout started</p> 236 </dd></dl> 237 238 </dd></dl> 239 52 240 </div> 53 241 <div class="section" id="fnames-of-a-data-run"> 54 242 <h3>fnames of a data run<a class="headerlink" href="#fnames-of-a-data-run" title="Permalink to this headline">¶</a></h3> 243 <dl class="class"> 244 <dt id="pyfact.fnames"> 245 <em class="property">class </em><tt class="descclassname">pyfact.</tt><tt class="descname">fnames</tt><big>(</big><em>specifier=['012', '023', '2011', '11', '24'], rpath='/scratch_nfs/res/bsl/', zipped=True</em><big>)</big><a class="headerlink" href="#pyfact.fnames" title="Permalink to this definition">¶</a></dt> 246 <dd><p>organize file names of a FACT data run</p> 247 <dl class="docutils"> 248 <dt>specifier <span class="classifier-delimiter">:</span> <span class="classifier">list of strings defined as:</span></dt> 249 <dd>[ ‘DRS calibration file’, ‘Data file’, ‘YYYY’, ‘MM’, ‘DD’]</dd> 250 </dl> 251 <p>rpath : directory path for the results; YYYYMMDD will be appended to rpath 252 zipped : use zipped (True) or unzipped (Data)</p> 253 <dl class="method"> 254 <dt id="pyfact.fnames.info"> 255 <tt class="descname">info</tt><big>(</big><big>)</big><a class="headerlink" href="#pyfact.fnames.info" title="Permalink to this definition">¶</a></dt> 256 <dd><p>print complete filenames</p> 257 </dd></dl> 258 259 <dl class="method"> 260 <dt id="pyfact.fnames.make"> 261 <tt class="descname">make</tt><big>(</big><em>specifier</em>, <em>rpath</em>, <em>zipped</em><big>)</big><a class="headerlink" href="#pyfact.fnames.make" title="Permalink to this definition">¶</a></dt> 262 <dd><p>create (make) the filenames</p> 263 <p>names : dictionary of filenames, tags { ‘data’, ‘drscal’, ‘results’ } 264 data : name of the data file 265 drscal : name of the drs calibration file 266 results : radikal of file name(s) for results (to be completed by suffixes)</p> 267 </dd></dl> 268 269 </dd></dl> 270 55 271 </div> 56 272 </div> … … 65 281 <h3><a href="index.html">Table Of Contents</a></h3> 66 282 <ul> 67 <li><a class="reference internal" href="#">Classes</a><ul> 283 <li><a class="reference internal" href="#">Getting Started</a><ul> 284 <li><a class="reference internal" href="#important-links">1. Important links</a></li> 285 <li><a class="reference internal" href="#environment-variables">2. Environment variables</a></li> 286 <li><a class="reference internal" href="#check-out-the-repository">3. Check out the repository</a></li> 287 <li><a class="reference internal" href="#create-pyfits-library">4. Create pyfits library</a></li> 288 <li><a class="reference internal" href="#run-examples">5. Run examples</a></li> 289 </ul> 290 </li> 291 <li><a class="reference internal" href="#classes">Classes</a><ul> 68 292 <li><a class="reference internal" href="#pyfact-py">pyfact.py</a><ul> 69 293 <li><a class="reference internal" href="#rawdata-access">rawdata access</a></li> … … 75 299 </ul> 76 300 301 <h4>Previous topic</h4> 302 <p class="topless"><a href="introduction.html" 303 title="previous chapter">Introduction</a></p> 304 <h4>Next topic</h4> 305 <p class="topless"><a href="classes.html" 306 title="next chapter">Classes</a></p> 77 307 <h3>This Page</h3> 78 308 <ul class="this-page-menu"> … … 83 313 <h3>Quick search</h3> 84 314 <form class="search" action="search.html" method="get"> 85 <input type="text" name="q" />315 <input type="text" name="q" size="18" /> 86 316 <input type="submit" value="Go" /> 87 317 <input type="hidden" name="check_keywords" value="yes" /> … … 103 333 <a href="genindex.html" title="General Index" 104 334 >index</a></li> 105 <li><a href="index.html">pyfact 0.1 documentation</a> »</li> 335 <li class="right" > 336 <a href="classes.html" title="Classes" 337 >next</a> |</li> 338 <li class="right" > 339 <a href="introduction.html" title="Introduction" 340 >previous</a> |</li> 341 <li><a href="index.html">pyfact v0.1 documentation</a> »</li> 106 342 </ul> 107 343 </div> 108 344 <div class="footer"> 109 345 © Copyright 2012, Werner Lustermann. 110 Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1. 1.2.346 Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.4. 111 347 </div> 112 348 </body> -
fact/tools/pyscripts/doc/_build/html/index.html
r13151 r13316 4 4 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 5 5 6 7 6 <html xmlns="http://www.w3.org/1999/xhtml"> 8 7 <head> 9 8 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 10 9 11 <title>Welcome to pyfact’s documentation! — pyfact 0.1 documentation</title> 12 10 <title>Welcome to pyfact’s documentation! — pyfact v0.1 documentation</title> 13 11 <link rel="stylesheet" href="_static/default.css" type="text/css" /> 14 12 <link rel="stylesheet" href="_static/pygments.css" type="text/css" /> 15 16 13 <script type="text/javascript"> 17 14 var DOCUMENTATION_OPTIONS = { … … 26 23 <script type="text/javascript" src="_static/underscore.js"></script> 27 24 <script type="text/javascript" src="_static/doctools.js"></script> 28 <link rel="top" title="pyfact 0.1 documentation" href="#" />25 <link rel="top" title="pyfact v0.1 documentation" href="#" /> 29 26 <link rel="next" title="Introduction" href="introduction.html" /> 30 27 </head> … … 39 36 <a href="introduction.html" title="Introduction" 40 37 accesskey="N">next</a> |</li> 41 <li><a href="#">pyfact 0.1 documentation</a> »</li>38 <li><a href="#">pyfact v0.1 documentation</a> »</li> 42 39 </ul> 43 40 </div> … … 53 50 <div class="toctree-wrapper compound"> 54 51 <ul> 55 <li class="toctree-l1"><a class="reference internal" href="introduction.html">Introduction</a></li> 52 <li class="toctree-l1"><a class="reference internal" href="introduction.html">Introduction</a><ul> 53 <li class="toctree-l2"><a class="reference internal" href="introduction.html#python-version-and-modules-used">Python version and modules used</a></li> 54 <li class="toctree-l2"><a class="reference internal" href="introduction.html#style-guide-and-coding-conventions">Style guide and coding conventions</a></li> 55 </ul> 56 </li> 57 <li class="toctree-l1"><a class="reference internal" href="getting_started.html">Getting Started</a><ul> 58 <li class="toctree-l2"><a class="reference internal" href="getting_started.html#important-links">1. Important links</a></li> 59 <li class="toctree-l2"><a class="reference internal" href="getting_started.html#environment-variables">2. Environment variables</a></li> 60 <li class="toctree-l2"><a class="reference internal" href="getting_started.html#check-out-the-repository">3. Check out the repository</a></li> 61 <li class="toctree-l2"><a class="reference internal" href="getting_started.html#create-pyfits-library">4. Create pyfits library</a></li> 62 <li class="toctree-l2"><a class="reference internal" href="getting_started.html#run-examples">5. Run examples</a></li> 63 </ul> 64 </li> 65 <li class="toctree-l1"><a class="reference internal" href="getting_started.html#classes">Classes</a><ul> 66 <li class="toctree-l2"><a class="reference internal" href="getting_started.html#pyfact-py">pyfact.py</a><ul> 67 <li class="toctree-l3"><a class="reference internal" href="getting_started.html#rawdata-access">rawdata access</a></li> 68 <li class="toctree-l3"><a class="reference internal" href="getting_started.html#fnames-of-a-data-run">fnames of a data run</a></li> 69 </ul> 70 </li> 71 </ul> 72 </li> 56 73 <li class="toctree-l1"><a class="reference internal" href="classes.html">Classes</a><ul> 57 74 <li class="toctree-l2"><a class="reference internal" href="classes.html#pyfact-py">pyfact.py</a><ul> 58 75 <li class="toctree-l3"><a class="reference internal" href="classes.html#rawdata-access">rawdata access</a></li> 59 76 <li class="toctree-l3"><a class="reference internal" href="classes.html#fnames-of-a-data-run">fnames of a data run</a></li> 60 <li class="toctree-l3"><a class="reference internal" href="classes.html#fir-filter-functions">FIR filter functions</a></li>61 77 </ul> 62 78 </li> 79 <li class="toctree-l2"><a class="reference internal" href="classes.html#fir-filter-functions">FIR filter functions</a></li> 63 80 </ul> 64 81 </li> … … 105 122 <h3>Quick search</h3> 106 123 <form class="search" action="search.html" method="get"> 107 <input type="text" name="q" />124 <input type="text" name="q" size="18" /> 108 125 <input type="submit" value="Go" /> 109 126 <input type="hidden" name="check_keywords" value="yes" /> … … 128 145 <a href="introduction.html" title="Introduction" 129 146 >next</a> |</li> 130 <li><a href="#">pyfact 0.1 documentation</a> »</li>147 <li><a href="#">pyfact v0.1 documentation</a> »</li> 131 148 </ul> 132 149 </div> 133 150 <div class="footer"> 134 151 © Copyright 2012, Werner Lustermann. 135 Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1. 1.2.152 Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.4. 136 153 </div> 137 154 </body> -
fact/tools/pyscripts/doc/_build/html/introduction.html
r13151 r13316 4 4 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 5 5 6 7 6 <html xmlns="http://www.w3.org/1999/xhtml"> 8 7 <head> 9 8 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 10 9 11 <title>Introduction — pyfact 0.1 documentation</title> 12 10 <title>Introduction — pyfact v0.1 documentation</title> 13 11 <link rel="stylesheet" href="_static/default.css" type="text/css" /> 14 12 <link rel="stylesheet" href="_static/pygments.css" type="text/css" /> 15 16 13 <script type="text/javascript"> 17 14 var DOCUMENTATION_OPTIONS = { … … 26 23 <script type="text/javascript" src="_static/underscore.js"></script> 27 24 <script type="text/javascript" src="_static/doctools.js"></script> 28 <link rel="top" title="pyfact 0.1 documentation" href="index.html" />29 <link rel="next" title=" Classes" href="classes.html" />25 <link rel="top" title="pyfact v0.1 documentation" href="index.html" /> 26 <link rel="next" title="Getting Started" href="getting_started.html" /> 30 27 <link rel="prev" title="Welcome to pyfact’s documentation!" href="index.html" /> 31 28 </head> … … 38 35 accesskey="I">index</a></li> 39 36 <li class="right" > 40 <a href=" classes.html" title="Classes"37 <a href="getting_started.html" title="Getting Started" 41 38 accesskey="N">next</a> |</li> 42 39 <li class="right" > 43 40 <a href="index.html" title="Welcome to pyfact’s documentation!" 44 41 accesskey="P">previous</a> |</li> 45 <li><a href="index.html">pyfact 0.1 documentation</a> »</li>42 <li><a href="index.html">pyfact v0.1 documentation</a> »</li> 46 43 </ul> 47 44 </div> … … 61 58 <li>examples</li> 62 59 </ul> 63 <p>The code of pyfact follows the <a href="#id1"><span class="problematic" id="id2">`</span></a>Style Guide for python code <<a class="reference external" href="http://www.python.org/dev/peps/pep-0008/">http://www.python.org/dev/peps/pep-0008/</a>>_.</p> 60 <p>If you are new to python you need to learn the basics. In any case it would be wise to study the following book:</p> 61 <p><em>A Primer on Scientific Programming with Python - Hans Petter Langtangen</em></p> 62 <p>pyfact is supposed to follow closely the programming style thought in this book.</p> 63 <p><a class="reference external" href="http://docs.python.org/">python documentation pages</a></p> 64 <p><a class="reference external" href="http://www.astropython.org/resources">astropython.org</a></p> 65 <div class="section" id="python-version-and-modules-used"> 66 <h2>Python version and modules used<a class="headerlink" href="#python-version-and-modules-used" title="Permalink to this headline">¶</a></h2> 67 <p>As long as you work on the ISDC FACT cluster most things should be just fine. 68 <a href="#id1"><span class="problematic" id="id2">|</span></a>python version: 2.6.6 69 <a href="#id3"><span class="problematic" id="id4">|</span></a>— add later: list of modules</p> 70 </div> 71 <div class="section" id="style-guide-and-coding-conventions"> 72 <h2>Style guide and coding conventions<a class="headerlink" href="#style-guide-and-coding-conventions" title="Permalink to this headline">¶</a></h2> 73 <p>The code of pyfact follows the <a href="#id5"><span class="problematic" id="id6">`</span></a>Style Guide for python code <<a class="reference external" href="http://www.python.org/dev/peps/pep-0008/">http://www.python.org/dev/peps/pep-0008/</a>>.</p> 74 </div> 64 75 </div> 65 76 … … 70 81 <div class="sphinxsidebar"> 71 82 <div class="sphinxsidebarwrapper"> 83 <h3><a href="index.html">Table Of Contents</a></h3> 84 <ul> 85 <li><a class="reference internal" href="#">Introduction</a><ul> 86 <li><a class="reference internal" href="#python-version-and-modules-used">Python version and modules used</a></li> 87 <li><a class="reference internal" href="#style-guide-and-coding-conventions">Style guide and coding conventions</a></li> 88 </ul> 89 </li> 90 </ul> 91 72 92 <h4>Previous topic</h4> 73 93 <p class="topless"><a href="index.html" 74 94 title="previous chapter">Welcome to pyfact’s documentation!</a></p> 75 95 <h4>Next topic</h4> 76 <p class="topless"><a href=" classes.html"77 title="next chapter"> Classes</a></p>96 <p class="topless"><a href="getting_started.html" 97 title="next chapter">Getting Started</a></p> 78 98 <h3>This Page</h3> 79 99 <ul class="this-page-menu"> … … 84 104 <h3>Quick search</h3> 85 105 <form class="search" action="search.html" method="get"> 86 <input type="text" name="q" />106 <input type="text" name="q" size="18" /> 87 107 <input type="submit" value="Go" /> 88 108 <input type="hidden" name="check_keywords" value="yes" /> … … 105 125 >index</a></li> 106 126 <li class="right" > 107 <a href=" classes.html" title="Classes"127 <a href="getting_started.html" title="Getting Started" 108 128 >next</a> |</li> 109 129 <li class="right" > 110 130 <a href="index.html" title="Welcome to pyfact’s documentation!" 111 131 >previous</a> |</li> 112 <li><a href="index.html">pyfact 0.1 documentation</a> »</li>132 <li><a href="index.html">pyfact v0.1 documentation</a> »</li> 113 133 </ul> 114 134 </div> 115 135 <div class="footer"> 116 136 © Copyright 2012, Werner Lustermann. 117 Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1. 1.2.137 Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.4. 118 138 </div> 119 139 </body> -
fact/tools/pyscripts/doc/_build/html/python.html
r13151 r13316 4 4 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 5 5 6 7 6 <html xmlns="http://www.w3.org/1999/xhtml"> 8 7 <head> 9 8 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 10 9 11 <title>phyton in FACT — pyfact 0.1 documentation</title> 12 10 <title>phyton in FACT — pyfact v0.1 documentation</title> 13 11 <link rel="stylesheet" href="_static/default.css" type="text/css" /> 14 12 <link rel="stylesheet" href="_static/pygments.css" type="text/css" /> 15 16 13 <script type="text/javascript"> 17 14 var DOCUMENTATION_OPTIONS = { … … 26 23 <script type="text/javascript" src="_static/underscore.js"></script> 27 24 <script type="text/javascript" src="_static/doctools.js"></script> 28 <link rel="top" title="pyfact 0.1 documentation" href="index.html" />25 <link rel="top" title="pyfact v0.1 documentation" href="index.html" /> 29 26 <link rel="prev" title="Examples" href="examples.html" /> 30 27 </head> … … 39 36 <a href="examples.html" title="Examples" 40 37 accesskey="P">previous</a> |</li> 41 <li><a href="index.html">pyfact 0.1 documentation</a> »</li>38 <li><a href="index.html">pyfact v0.1 documentation</a> »</li> 42 39 </ul> 43 40 </div> … … 82 79 <h3>Quick search</h3> 83 80 <form class="search" action="search.html" method="get"> 84 <input type="text" name="q" />81 <input type="text" name="q" size="18" /> 85 82 <input type="submit" value="Go" /> 86 83 <input type="hidden" name="check_keywords" value="yes" /> … … 105 102 <a href="examples.html" title="Examples" 106 103 >previous</a> |</li> 107 <li><a href="index.html">pyfact 0.1 documentation</a> »</li>104 <li><a href="index.html">pyfact v0.1 documentation</a> »</li> 108 105 </ul> 109 106 </div> 110 107 <div class="footer"> 111 108 © Copyright 2012, Werner Lustermann. 112 Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1. 1.2.109 Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.4. 113 110 </div> 114 111 </body> -
fact/tools/pyscripts/doc/_build/html/search.html
r13151 r13316 4 4 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 5 5 6 7 6 <html xmlns="http://www.w3.org/1999/xhtml"> 8 7 <head> 9 8 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 10 9 11 <title>Search — pyfact 0.1 documentation</title> 12 10 <title>Search — pyfact v0.1 documentation</title> 13 11 <link rel="stylesheet" href="_static/default.css" type="text/css" /> 14 12 <link rel="stylesheet" href="_static/pygments.css" type="text/css" /> 15 16 13 <script type="text/javascript"> 17 14 var DOCUMENTATION_OPTIONS = { … … 27 24 <script type="text/javascript" src="_static/doctools.js"></script> 28 25 <script type="text/javascript" src="_static/searchtools.js"></script> 29 <link rel="top" title="pyfact 0.1 documentation" href="index.html" />26 <link rel="top" title="pyfact v0.1 documentation" href="index.html" /> 30 27 <script type="text/javascript"> 31 28 jQuery(function() { Search.loadIndex("searchindex.js"); }); … … 41 38 <a href="genindex.html" title="General Index" 42 39 accesskey="I">index</a></li> 43 <li><a href="index.html">pyfact 0.1 documentation</a> »</li>40 <li><a href="index.html">pyfact v0.1 documentation</a> »</li> 44 41 </ul> 45 42 </div> … … 89 86 <a href="genindex.html" title="General Index" 90 87 >index</a></li> 91 <li><a href="index.html">pyfact 0.1 documentation</a> »</li>88 <li><a href="index.html">pyfact v0.1 documentation</a> »</li> 92 89 </ul> 93 90 </div> 94 91 <div class="footer"> 95 92 © Copyright 2012, Werner Lustermann. 96 Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1. 1.2.93 Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.4. 97 94 </div> 98 95 </body> -
fact/tools/pyscripts/doc/_build/html/searchindex.js
r13151 r13316 1 Search.setIndex({objects:{ },terms:{load:[],all:[],code:1,execut:4,bsl_sum:[],thi:[1,4],soon:2,radik:[],calibr:[],acaldata:[],follow:[1,2],sumaroundpeak:[],still:2,find:[],languag:1,row:[],fir:[0,3],my_script:4,style:1,ratio:[],system:[2,0,4],fit:2,specif:1,window:[],suppos:[2,4],matlab:2,constant:[],analys:1,arrai:[],readbaselin:[],unzip:[],around:[],thei:2,get:[],python:[1,2,4],calfnam:[],v_bsl:[],initi:[],gate:[],echo:4,introduct:[1,0],bslfname:[],like:2,organ:[],signal:2,cell:[],list:4,bsl_hist:[],baslin:[],slide:[],vector:[],integr:[],compris:1,contain:[],peak:[],my_scrip:4,page:0,dir:4,yyyi:[],www:1,right:[],nevent:[],phyton:[2,0],pipelin:[],result:[],yyyymmdd:[],dfname:[],event:[],append:[],baselin:[],index:0,disk:[],open:[],pep:1,content:0,directori:[],print:[],"import":4,correct:[],attribut:[],full:[],run:[2,0,3,5],numer:2,gener:1,matplotlib:2,standard:2,filnam:[],dictionari:[],path:[],valu:[],basi:2,maxpo:[],substract:[],search:0,easi:2,region:[],startcel:[],findpeak:[],filter:[0,3],length:[],typic:[],fourier:2,correctbaselin:[],col:[],plan:2,oper:2,among:2,own:4,suffix:[],appli:[],modul:[2,0,4],within:4,misc:2,number:[],upgrad:2,filenam:[],org:1,instal:2,guid:1,miss:2,your:4,plot:2,from:4,cfddata:[],zip:[],script:4,support:1,numpi:2,transform:2,"long":4,next:[],start:[],call:[0,4],includ:2,interest:[],basic:[],calf:[],"function":[2,0,3],fraction:[],name:[],presenc:2,tool:1,about:[],specifi:[],histogram:[],drscal:[],pwd:4,part:2,particular:4,line:4,"true":4,present:2,info:[],raw:[],provid:[1,2],npix:[],autoclass:[],access:[1,0,3,5,2],maximum:[],dev:1,pixel:[],defin:[],scipi:2,tag:[],can:4,vallu:[],inform:[],root:[],hplt_mean:[],comput:2,want:[],creat:4,process:2,rpath:[],ani:4,indic:0,cluster:2,isdc:2,file:2,tabl:0,calibrate_drsamplitud:[],string:[],packag:2,welcom:0,min:[],perform:[],make:[],filterslidingaverag:[],member:[],"default":[],other:2,read:[],fname:[0,3,5],environ:2,you:4,document:0,complet:[],smoothdata:[],filtercfd:[],int16:[],http:1,distribut:2,maxamp:[],buffer:[],max:[],pyfit:2,docstr:[],bsl:[],npy:[],automodul:[],amplitud:[],fill:[],data:[1,0,3,5],"class":[1,0,3,5],averag:[],alloc:[],task:1,scientif:2,windows:[],object:[],pyfact:[1,0,3,5,2],exampl:[1,0,4],command:[2,0,4],rawdata:[0,3,5],allow:2,nroi:[],scratch_nf:[],self:[],fact:[1,0,2],left:[]},objtypes:{},titles:["Welcome to pyfact’s documentation!","Introduction","phyton in FACT","Classes","Examples","Classes"],objnames:{},filenames:["index","introduction","python","classes","examples","getting_started"]})1 Search.setIndex({objects:{"pyfact.fnames":{info:[5,0,1],make:[5,0,1]},"pyfact.RawData":{info:[5,0,1],baseline_read_values:[5,0,1],baseline_correct:[5,0,1],data_file:[5,1,1],npix:[5,1,1],next:[5,0,1],calib_file:[5,1,1],nroi:[5,1,1],nevents:[5,1,1],board_times:[5,1,1],start_cells:[5,1,1],next_event:[5,0,1],calibrate_drs_amplitude:[5,0,1],data:[5,1,1]},pyfact:{fnames:[5,2,1],RawData:[5,2,1]}},terms:{all:5,code:[1,0],bsl_sum:5,edu:5,follow:[1,2,5],primer:1,row:5,categori:5,depend:5,program:1,matlab:2,unzip:[3,5],string:[3,5],account:5,readout:5,strang:5,fad:5,bslfname:[],list:[1,3,4,5],"try":5,baslin:5,vector:[],my_scrip:4,dir:4,swdev_nf:5,telescop:5,phyton:[2,0],hplt_mean:5,append:[3,5],index:[0,5],disk:5,pyroot:5,cell:[],version:[1,0,5],"new":1,full:[],aclic:5,gener:1,root_v5:5,here:5,path:[3,5],sinc:5,interpret:5,search:[0,5],cern:5,typic:[],fourier:2,calibr:[3,5],appli:[],modul:[1,0,5,4,2],unig:5,filenam:[3,5],instal:2,unit:5,plot:2,feb:5,zip:[3,5],visit:[],upgrad:2,next:5,few:5,call:[0,4],checkout:5,calf:[],drscal:[3,5],"__iter__":5,particular:4,must:5,none:5,setup:5,work:1,dev:1,ecampl:5,can:4,learn:1,"0x9541844":[],vallu:[],dec:5,root:5,process:2,rpath:[3,5],share:5,indic:0,tag:[3,5],tabl:0,want:5,multipl:5,how:5,env:5,gate:[],simpl:5,luster:5,int16:[],max:[],pyfit:[2,0,5],befor:5,npy:5,date:5,data:[1,0,3,5],averag:[],baseline_read_valu:5,alloc:5,pyfact:[1,0,3,5,2],environ:[2,0,5],allow:2,help:5,soon:2,tunixsystem:5,sumaroundpeak:[],still:2,fir:[0,3],style:[1,0],fit:[2,5],window:[],pixel:5,readbaselin:[],scipi:2,thei:2,python:[1,0,5,4,2],calfnam:[],v_bsl:[],initi:5,software_hardwar:5,petter:1,introduct:[1,0],name:[3,5],slide:[],compris:1,tcshrc:5,nevent:5,our:[],event:5,out:[0,5],variabl:[0,5],miss:2,content:0,print:[3,5],calib_fil:5,correct:[],pyscript:5,pceth118:5,standard:2,dictionari:[3,5],org:[1,5],basi:2,maxpo:[],drupal:5,startcel:[],filter:[0,3],thing:1,length:5,lambda:5,oper:2,softwar:5,suffix:[3,5],arrai:5,misc:2,number:5,echo:4,stsci:5,instruct:5,open:5,convent:[1,0],script:4,"0xa818844":5,system:[2,0,4],least:5,"0xa872844":[],start_cel:5,too:5,statement:5,store:5,shell:5,tool:[1,5],specifi:[3,5],part:2,enclos:5,provid:[1,2,5],data_file_nam:5,project:5,rootsi:5,"function":[2,0,3,5],comput:2,ani:[1,4],raw:5,hava:[],have:5,close:1,need:1,lib:5,min:[],self:[],fact_runinfo:5,fname:[0,3,5],findpeak:[],datacent:5,juli:5,smoothdata:[],filtercfd:[],distribut:2,plenti:5,buffer:5,object:5,bsl:[3,5],most:1,jsp:5,automodul:[],histogram:5,"class":[1,0,3,5],windows:[],doc:[],later:1,fact:[1,0,3,5,2],radik:[3,5],acaldata:[],fine:1,find:5,absolut:5,ratio:[],just:1,should:[1,5],suppos:[1,2,4],analys:1,get:[0,5],run_db:5,return_dict:5,organ:[3,5],bsl_hist:5,patch:5,integr:[],contain:5,logbook:5,where:5,set:5,next_ev:5,result:[3,5],dfname:[],concern:5,data_fil:5,databas:5,"0xa13c844":[],between:5,"import":[0,4,5],attribut:[],web:[],numer:2,filnam:[],han:1,region:5,instanc:5,context:5,col:5,scratch_nf:[3,5],load:5,among:2,linux:5,astropython:1,guid:[1,0],creat:[0,3,4,5],numpi:2,trigger:5,valu:5,interest:5,basic:[1,5],presenc:2,sotwar:[],present:2,"case":1,look:5,packag:[2,5],npix:5,"0xb411844":[],defin:[3,5],board_tim:5,"00h":5,site:[],cluster:[1,2],inform:5,welcom:0,perform:5,make:[3,5],filterslidingaverag:[],member:[],cint:5,document:[1,0],complet:[3,5],http:[1,5],maxamp:[],php:5,studi:1,calib_file_nam:5,task:1,center:5,ld_library_path:5,thought:1,exampl:[1,0,4,5],command:[2,0,4,5],rawdata:[0,3,5],thi:[1,4,5],gzip:5,left:[],baseline_correct:5,execut:4,languag:1,my_script:4,langtangen:1,easi:2,add:[1,5],book:1,"0xa1d7844":[],bin:5,around:[],read:5,calibrate_drs_amplitud:5,like:2,specif:1,bashrc:5,signal:2,"0xa93e844":[],page:[1,0,5],yyyi:[3,5],www:[1,5],right:[],some:5,pipelin:[],yyyymmdd:[3,5],home:5,librari:[0,5],slice:5,pep:1,larg:5,elogbook:5,"0xa187844":[],run:[2,0,3,5],host:5,repositori:[0,5],from:[4,5],subtract:5,about:5,would:1,correctbaselin:[],plan:2,own:4,"0x9b7a844":[],pythonpath:5,within:4,your:[4,5],institut:5,user_action_calib:5,support:1,transform:2,"long":[1,4],avail:5,start:[0,5],interfac:5,includ:[2,5],fraction:[],analysi:[],fits_h:5,pwd:4,link:[0,5],ethz:5,line:4,mitig:5,"true":[3,4,5],info:[3,5],wise:1,possibl:5,"default":5,type:5,autoclass:[],access:[1,0,3,5,2],maximum:[],"0x9f4e844":[],problem:5,constant:[],cfddata:[],novemb:[],isdc:[1,2,5],file:[2,3,5],calibrate_drsamplitud:[],check:[0,5],fill:[],when:5,baseline_file_nam:5,other:2,branch:5,you:[1,4,5],baselin:5,factelog:5,docstr:[],substract:5,palma:5,peak:[],amplitud:5,matplotlib:2,svn:5,"0x94b8844":[],scientif:[1,2],directori:[3,5],time:5,nroi:5},objtypes:{"0":"py:method","1":"py:attribute","2":"py:class"},titles:["Welcome to pyfact’s documentation!","Introduction","phyton in FACT","Classes","Examples","Getting Started"],objnames:{"0":"Python method","1":"Python attribute","2":"Python class"},filenames:["index","introduction","python","classes","examples","getting_started"]}) -
fact/tools/pyscripts/doc/getting_started.rst
r13151 r13316 1 =============== 2 Getting Started 3 =============== 4 5 1) Get an account at the FACT data center at ISDC 6 2) Setup your environment variables 7 3) Checkout the pyfact software repository 8 4) Try a few examples 9 10 1. Important links 11 ================================= 12 13 **FACT data center at ISDC** <http://www.isdc.unige.ch/fact/datacenter>** 14 here you find instructions how to get an account, how to set it up and how to use it 15 16 **SVN repository** <https://fact.isdc.unige.ch/svn/fact/> 17 hosts all FACT software (including pyfact) 18 19 **FACT run database** <https://www.fact-project.org/run_db/db/fact_runinfo.php> 20 here you find information about all available runs 21 22 **eLogbook** <https://www.fact-project.org/logbook/> 23 telescope logbook used since Dec. 1, 2012; for logbook information before this date have a look here: <http://fact.ethz.ch/FACTelog/index.jsp> 24 25 **FACT La Palma pages** <https://www.fact-project.org/> 26 plenty of information concerning the telescope in La Palma 27 28 2. Environment variables 29 ===================== 30 set the following env variables depending on the SHELL you are using, for instance in .bashrc or .tcshrc 31 32 * **ROOTSYS**: /swdev_nfs/root_v5.28.00 33 * **PATH**: add $ROOTSYS/bin 34 * **PATH**: add /swdev_nfs/FACT++ 35 * **LD_LIBRARY_PATH**: $ROOTSYS/lib:/swdev_nfs/FACT++/.libs 36 * **PYTHONPATH**: $ROOTSYS/lib 37 * **PYTHONPATH**: add all directories where python should search for modules. At least: 38 * pyscripts/pyfact 39 * pyscript/tools 40 * pyscripts/ecamples 41 * py 42 43 the absolute path depends on where you have checked (or will check) out the pyscripts repository 44 45 3. Check out the repository 46 ======================== 47 svn co https://fact.isdc.unige.ch/svn/fact/tools/pyscripts/ 48 49 4. Create pyfits library 50 ======================== 51 FACT data are stored in (gzipped) fits files, but the data files are too large to be read by the default tool: 52 53 `pyfits <http://www.stsci.edu/institute/software_hardware/pyfits>`. 54 55 To mitigate this problem a C++ class defined in `fits.h` is used. A simple possibility to create an interface of this C++ class and python is to use the 56 57 `pyroot http://root.cern.ch/drupal/category/package-context/pyroot>` module. 58 59 simple:: 60 61 [pceth118] /home/luster/py > root 62 ROOT 5.28/00h (branches/v5-28-00-patches@42209, Feb 13 2012, 23:52:00 on linux) 63 CINT/ROOT C/C++ Interpreter version 5.18.00, July 2, 2010 64 Type ? for help. Commands must be C++ statements. 65 Enclose multiple statements between { }. 66 root [0] .L fits.h++ 67 Info in <TUnixSystem::ACLiC>: creating shared library /home/luster/py/./fits_h.so 68 root [1] 69 70 71 72 5. Run examples 73 ============ 74 75 1 76 ======= 2 77 Classes … … 8 83 rawdata access 9 84 ------- 10 .. autoclass:: pyfact. rawdata85 .. autoclass:: pyfact.RawData 11 86 :members: 12 87 -
fact/tools/pyscripts/doc/index.rst
r13151 r13316 13 13 14 14 introduction 15 getting_started 15 16 classes 16 17 examples -
fact/tools/pyscripts/doc/introduction.rst
r13151 r13316 9 9 * examples 10 10 11 The code of pyfact follows the `Style Guide for python code <http://www.python.org/dev/peps/pep-0008/>_. 11 If you are new to python you need to learn the basics. In any case it would be wise to study the following book: 12 13 *A Primer on Scientific Programming with Python - Hans Petter Langtangen* 14 15 pyfact is supposed to follow closely the programming style thought in this book. 16 17 `python documentation pages <http://docs.python.org/>`_ 18 19 `astropython.org <http://www.astropython.org/resources>`_ 20 21 Python version and modules used 22 ------------------------------- 23 As long as you work on the ISDC FACT cluster most things should be just fine. 24 |python version: 2.6.6 25 |--- add later: list of modules 26 27 Style guide and coding conventions 28 ---------------------------------- 29 The code of pyfact follows the `Style Guide for python code <http://www.python.org/dev/peps/pep-0008/>. -
fact/tools/pyscripts/tools/spike_ana.py
r13144 r13316 69 69 #print singles[0], a, b, data[a,b-1], data[a,b], data[1,b+1] 70 70 71 data_file_name = '/ data00/fact-construction/raw/2011/11/24/20111124_117.fits.gz'72 calib_file_name = '/ data00/fact-construction/raw/2011/11/24/20111124_111.drs.fits.gz'71 data_file_name = '/home/luster/win7/FACT/data/raw/20111124/20111124_117.fits.gz' 72 calib_file_name = '/home/luster/win7/FACT/data/raw/20111124/20111124_114.drs.fits.gz' 73 73 run = RawData( data_file_name, calib_file_name ) 74 74 … … 80 80 print 'event ', ev 81 81 ev += 1 82 if ev == 10 :82 if ev == 100: 83 83 break 84 84 remove_spikes(data)
Note:
See TracChangeset
for help on using the changeset viewer.