Changeset 13316


Ignore:
Timestamp:
04/05/12 14:10:40 (13 years ago)
Author:
lusterma
Message:
worked on doc
Location:
fact/tools/pyscripts
Files:
32 edited

Legend:

Unmodified
Added
Removed
  • fact/tools/pyscripts/doc/_build/html/.buildinfo

    r13151 r13316  
    11# Sphinx build info version 1
    22# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
    3 config: 4ccce79467c3c1e26dd2c30bdca24749
     3config: ba772b99f74f3e46a3c0f95d44c9931e
    44tags: fbb0d17656682115ca4d033fb2f83ba1
  • fact/tools/pyscripts/doc/_build/html/_sources/classes.txt

    r13151 r13316  
    1818
    1919FIR filter functions
    20 --------------------
     20=====================
    2121.. autoclass:: fir_filter
    2222        :members:
  • fact/tools/pyscripts/doc/_build/html/_sources/getting_started.txt

    r13151 r13316  
     1===============
     2Getting Started
     3===============
     4
     51) Get an account at the FACT data center at ISDC
     62) Setup your environment variables
     73) Checkout the pyfact software repository
     84) Try a few examples
     9
     101. 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
     282. Environment variables
     29=====================
     30set 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
     43the absolute path depends on where you have checked (or will check) out the pyscripts repository
     44
     453. Check out the repository
     46========================
     47svn co https://fact.isdc.unige.ch/svn/fact/tools/pyscripts/
     48
     494. Create pyfits library
     50========================
     51FACT 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
     55To 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
     59simple::
     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
     725. Run examples
     73============
     74
     75
    176=======
    277Classes
     
    883rawdata access
    984-------
    10 .. autoclass:: pyfact.rawdata
     85.. autoclass:: pyfact.RawData
    1186    :members:
    1287
  • fact/tools/pyscripts/doc/_build/html/_sources/index.txt

    r13151 r13316  
    1313
    1414   introduction
     15   getting_started
    1516   classes
    1617   examples
  • fact/tools/pyscripts/doc/_build/html/_sources/introduction.txt

    r13151 r13316  
    99* examples
    1010
    11 The code of pyfact follows the `Style Guide for python code <http://www.python.org/dev/peps/pep-0008/>_.
     11If 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
     15pyfact 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
     21Python version and modules used
     22-------------------------------
     23As 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
     27Style guide and coding conventions
     28----------------------------------
     29The 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  
    55 * Sphinx stylesheet -- basic theme.
    66 *
    7  * :copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS.
     7 * :copyright: Copyright 2007-2010 by the Sphinx team, see AUTHORS.
    88 * :license: BSD, see LICENSE for details.
    99 *
     
    7878    font-family: sans-serif;
    7979    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;
    8880}
    8981
     
    222214}
    223215
    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 
    242216.align-left {
    243217    text-align: left;
     
    245219
    246220.align-center {
     221    clear: both;
    247222    text-align: center;
    248223}
     
    421396
    422397.footnote:target  {
    423     background-color: #ffa;
     398    background-color: #ffa
    424399}
    425400
     
    448423}
    449424
    450 abbr, acronym {
    451     border-bottom: dotted 1px;
    452     cursor: help;
    453 }
    454 
    455425/* -- code displays --------------------------------------------------------- */
    456426
    457427pre {
    458428    overflow: auto;
    459     overflow-y: hidden;  /* fixes display issues on Chrome browsers */
    460429}
    461430
  • fact/tools/pyscripts/doc/_build/html/_static/default.css

    r13151 r13316  
    55 * Sphinx stylesheet -- default theme.
    66 *
    7  * :copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS.
     7 * :copyright: Copyright 2007-2010 by the Sphinx team, see AUTHORS.
    88 * :license: BSD, see LICENSE for details.
    99 *
  • fact/tools/pyscripts/doc/_build/html/_static/doctools.js

    r13151 r13316  
    33 * ~~~~~~~~~~~
    44 *
    5  * Sphinx JavaScript utilities for all documentation.
     5 * Sphinx JavaScript utilties for all documentation.
    66 *
    7  * :copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS.
     7 * :copyright: Copyright 2007-2010 by the Sphinx team, see AUTHORS.
    88 * :license: BSD, see LICENSE for details.
    99 *
     
    186186        });
    187187      }, 10);
    188       $('<p class="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'));
    191191    }
    192192  },
     
    214214   */
    215215  hideSearchWords : function() {
    216     $('#searchbox .highlight-link').fadeOut(300);
     216    $('.sidebar .this-page-menu li.highlight-link').fadeOut(300);
    217217    $('span.highlighted').removeClass('highlighted');
    218218  },
  • fact/tools/pyscripts/doc/_build/html/_static/searchtools.js

    r13151 r13316  
    11/*
    2  * searchtools.js_t
    3  * ~~~~~~~~~~~~~~~~
     2 * searchtools.js
     3 * ~~~~~~~~~~~~~~
    44 *
    55 * Sphinx JavaScript utilties for the full-text search.
    66 *
    7  * :copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS.
     7 * :copyright: Copyright 2007-2010 by the Sphinx team, see AUTHORS.
    88 * :license: BSD, see LICENSE for details.
    99 *
     
    3737}
    3838
    39 
    4039/**
    4140 * Porter Stemmer
    4241 */
    43 var Stemmer = function() {
     42var PorterStemmer = function() {
    4443
    4544  var step2list = {
     
    302301
    303302  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();
    308311    var searchterms = [];
    309312    var excluded = [];
    310313    var hlterms = [];
    311314    var tmp = query.split(/\s+/);
    312     var objectterms = [];
     315    var object = (tmp.length == 1) ? tmp[0].toLowerCase() : null;
    313316    for (var i = 0; i < tmp.length; i++) {
    314       if (tmp[i] != "") {
    315           objectterms.push(tmp[i].toLowerCase());
    316       }
    317 
    318317      if ($u.indexOf(stopwords, tmp[i]) != -1 || tmp[i].match(/^\d+$/) ||
    319318          tmp[i] == "") {
     
    346345    var titles = this._index.titles;
    347346    var terms = this._index.terms;
     347    var objects = this._index.objects;
     348    var objtypes = this._index.objtypes;
     349    var objnames = this._index.objnames;
    348350    var fileMap = {};
    349351    var files = null;
     
    356358
    357359    // 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
    370393
    371394    // perform the search on the required terms
     
    467490              displayNextItem();
    468491            });
    469           }, "text");
     492          });
    470493        } else {
    471494          // no source available, just display title
     
    488511    }
    489512    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 be
    510           // found in the name/title/description
    511           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 descending
    542     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]
    555513  }
    556514}
  • fact/tools/pyscripts/doc/_build/html/_static/sidebar.js

    r13151 r13316  
    1717 * reset to the default (expanded).
    1818 *
    19  * :copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS.
     19 * :copyright: Copyright 2007-2010 by the Sphinx team, see AUTHORS.
    2020 * :license: BSD, see LICENSE for details.
    2121 *
     
    2929  var sidebar = $('.sphinxsidebar');
    3030  var sidebarwrapper = $('.sphinxsidebarwrapper');
    31 
    32   // for some reason, the document has no sidebar; do not run into errors
    33   if (!sidebar.length) return;
    3431
    3532  // 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.5
    2 // (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/
    81(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,
    92a[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  
    44  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    55
    6 
    76<html xmlns="http://www.w3.org/1999/xhtml">
    87  <head>
    98    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    109   
    11     <title>Classes &mdash; pyfact 0.1 documentation</title>
    12    
     10    <title>Classes &mdash; pyfact v0.1 documentation</title>
    1311    <link rel="stylesheet" href="_static/default.css" type="text/css" />
    1412    <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    15    
    1613    <script type="text/javascript">
    1714      var DOCUMENTATION_OPTIONS = {
     
    2623    <script type="text/javascript" src="_static/underscore.js"></script>
    2724    <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" />
    2926    <link rel="next" title="Examples" href="examples.html" />
    3027    <link rel="prev" title="Introduction" href="introduction.html" />
     
    4340          <a href="introduction.html" title="Introduction"
    4441             accesskey="P">previous</a> |</li>
    45         <li><a href="index.html">pyfact 0.1 documentation</a> &raquo;</li>
     42        <li><a href="index.html">pyfact v0.1 documentation</a> &raquo;</li>
    4643      </ul>
    4744    </div> 
     
    6158<div class="section" id="fnames-of-a-data-run">
    6259<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>[ &#8216;DRS calibration file&#8217;, &#8216;Data file&#8217;, &#8216;YYYY&#8217;, &#8216;MM&#8217;, &#8216;DD&#8217;]</dd>
     67</dl>
     68<p>rpath     : directory path for the results; YYYYMMDD will be appended to rpath
     69zipped    : 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 { &#8216;data&#8217;, &#8216;drscal&#8217;, &#8216;results&#8217; }
     81data    : name of the data file
     82drscal  : name of the drs calibration file
     83results : radikal of file name(s) for results (to be completed  by suffixes)</p>
     84</dd></dl>
     85
     86</dd></dl>
     87
     88</div>
    6389</div>
    6490<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>
    6792</div>
    6893</div>
     
    80105<li><a class="reference internal" href="#rawdata-access">rawdata access</a></li>
    81106<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>
    83107</ul>
    84108</li>
     109<li><a class="reference internal" href="#fir-filter-functions">FIR filter functions</a></li>
    85110</ul>
    86111</li>
     
    101126  <h3>Quick search</h3>
    102127    <form class="search" action="search.html" method="get">
    103       <input type="text" name="q" />
     128      <input type="text" name="q" size="18" />
    104129      <input type="submit" value="Go" />
    105130      <input type="hidden" name="check_keywords" value="yes" />
     
    127152          <a href="introduction.html" title="Introduction"
    128153             >previous</a> |</li>
    129         <li><a href="index.html">pyfact 0.1 documentation</a> &raquo;</li>
     154        <li><a href="index.html">pyfact v0.1 documentation</a> &raquo;</li>
    130155      </ul>
    131156    </div>
    132157    <div class="footer">
    133158        &copy; 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.
    135160    </div>
    136161  </body>
  • fact/tools/pyscripts/doc/_build/html/examples.html

    r13151 r13316  
    44  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    55
    6 
    76<html xmlns="http://www.w3.org/1999/xhtml">
    87  <head>
    98    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    109   
    11     <title>Examples &mdash; pyfact 0.1 documentation</title>
    12    
     10    <title>Examples &mdash; pyfact v0.1 documentation</title>
    1311    <link rel="stylesheet" href="_static/default.css" type="text/css" />
    1412    <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    15    
    1613    <script type="text/javascript">
    1714      var DOCUMENTATION_OPTIONS = {
     
    2623    <script type="text/javascript" src="_static/underscore.js"></script>
    2724    <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" />
    2926    <link rel="next" title="phyton in FACT" href="python.html" />
    3027    <link rel="prev" title="Classes" href="classes.html" />
     
    4340          <a href="classes.html" title="Classes"
    4441             accesskey="P">previous</a> |</li>
    45         <li><a href="index.html">pyfact 0.1 documentation</a> &raquo;</li>
     42        <li><a href="index.html">pyfact v0.1 documentation</a> &raquo;</li>
    4643      </ul>
    4744    </div> 
     
    9794  <h3>Quick search</h3>
    9895    <form class="search" action="search.html" method="get">
    99       <input type="text" name="q" />
     96      <input type="text" name="q" size="18" />
    10097      <input type="submit" value="Go" />
    10198      <input type="hidden" name="check_keywords" value="yes" />
     
    123120          <a href="classes.html" title="Classes"
    124121             >previous</a> |</li>
    125         <li><a href="index.html">pyfact 0.1 documentation</a> &raquo;</li>
     122        <li><a href="index.html">pyfact v0.1 documentation</a> &raquo;</li>
    126123      </ul>
    127124    </div>
    128125    <div class="footer">
    129126        &copy; 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.
    131128    </div>
    132129  </body>
  • fact/tools/pyscripts/doc/_build/html/genindex.html

    r13151 r13316  
    1 
    2 
    31
    42
     
    64  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    75
    8 
    96<html xmlns="http://www.w3.org/1999/xhtml">
    107  <head>
    118    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    129   
    13     <title>Index &mdash; pyfact 0.1 documentation</title>
    14    
     10    <title>Index &mdash; pyfact v0.1 documentation</title>
    1511    <link rel="stylesheet" href="_static/default.css" type="text/css" />
    1612    <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    17    
    1813    <script type="text/javascript">
    1914      var DOCUMENTATION_OPTIONS = {
     
    2823    <script type="text/javascript" src="_static/underscore.js"></script>
    2924    <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" />
    3126  </head>
    3227  <body>
     
    3732          <a href="#" title="General Index"
    3833             accesskey="I">index</a></li>
    39         <li><a href="index.html">pyfact 0.1 documentation</a> &raquo;</li>
     34        <li><a href="index.html">pyfact v0.1 documentation</a> &raquo;</li>
    4035      </ul>
    4136    </div> 
     
    4742           
    4843
    49 <h1 id="index">Index</h1>
     44   <h1 id="index">Index</h1>
    5045
    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
    54131
    55132
     
    65142  <h3>Quick search</h3>
    66143    <form class="search" action="search.html" method="get">
    67       <input type="text" name="q" />
     144      <input type="text" name="q" size="18" />
    68145      <input type="submit" value="Go" />
    69146      <input type="hidden" name="check_keywords" value="yes" />
     
    85162          <a href="#" title="General Index"
    86163             >index</a></li>
    87         <li><a href="index.html">pyfact 0.1 documentation</a> &raquo;</li>
     164        <li><a href="index.html">pyfact v0.1 documentation</a> &raquo;</li>
    88165      </ul>
    89166    </div>
    90167    <div class="footer">
    91168        &copy; 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.
    93170    </div>
    94171  </body>
  • fact/tools/pyscripts/doc/_build/html/getting_started.html

    r13151 r13316  
    33<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    44  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    5 
    65
    76<html xmlns="http://www.w3.org/1999/xhtml">
     
    98    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    109   
    11     <title>Classes &mdash; pyfact 0.1 documentation</title>
    12    
     10    <title>Getting Started &mdash; pyfact v0.1 documentation</title>
    1311    <link rel="stylesheet" href="_static/default.css" type="text/css" />
    1412    <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    15    
    1613    <script type="text/javascript">
    1714      var DOCUMENTATION_OPTIONS = {
     
    2623    <script type="text/javascript" src="_static/underscore.js"></script>
    2724    <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" />
    2928  </head>
    3029  <body>
     
    3534          <a href="genindex.html" title="General Index"
    3635             accesskey="I">index</a></li>
    37         <li><a href="index.html">pyfact 0.1 documentation</a> &raquo;</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> &raquo;</li>
    3843      </ul>
    3944    </div> 
     
    4449          <div class="body">
    4550           
    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> &lt;<a class="reference external" href="http://www.isdc.unige.ch/fact/datacenter">http://www.isdc.unige.ch/fact/datacenter</a>&gt;**</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> &lt;<a class="reference external" href="https://fact.isdc.unige.ch/svn/fact/">https://fact.isdc.unige.ch/svn/fact/</a>&gt;</dt>
     65<dd>hosts all FACT software (including pyfact)</dd>
     66<dt><strong>FACT run database</strong> &lt;<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>&gt;</dt>
     67<dd>here you find information about all available runs</dd>
     68<dt><strong>eLogbook</strong> &lt;<a class="reference external" href="https://www.fact-project.org/logbook/">https://www.fact-project.org/logbook/</a>&gt;</dt>
     69<dd>telescope logbook used since Dec. 1, 2012; for logbook information before this date have a look here: &lt;<a class="reference external" href="http://fact.ethz.ch/FACTelog/index.jsp">http://fact.ethz.ch/FACTelog/index.jsp</a>&gt;</dd>
     70<dt><strong>FACT La Palma pages</strong> &lt;<a class="reference external" href="https://www.fact-project.org/">https://www.fact-project.org/</a>&gt;</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 &lt;http://www.stsci.edu/institute/software_hardware/pyfits&gt;</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&gt;</cite> module.</p>
     112<p>simple:</p>
     113<div class="highlight-python"><pre>[pceth118] /home/luster/py &gt; root
     114ROOT 5.28/00h (branches/v5-28-00-patches@42209, Feb 13 2012, 23:52:00 on linux)
     115CINT/ROOT C/C++ Interpreter version 5.18.00, July 2, 2010
     116Type ? for help. Commands must be C++ statements.
     117Enclose multiple statements between { }.
     118root [0] .L fits.h++
     119Info in &lt;TUnixSystem::ACLiC&gt;: creating shared library /home/luster/py/./fits_h.so
     120root [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">
    47128<h1>Classes<a class="headerlink" href="#classes" title="Permalink to this headline">¶</a></h1>
    48129<div class="section" id="pyfact-py">
     
    50131<div class="section" id="rawdata-access">
    51132<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=&lt;function &lt;lambda&gt; at 0xa818844&gt;</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:
     142row = number of pixel
     143col = length of region of interest</li>
     144</ul>
     145<p>initialize object</p>
     146<p>open data file and calibration data file
     147get basic information about the data in data_file_name
     148allocate buffers for data access</p>
     149<p>data_file_name   : fits or fits.gz file of the data including the path
     150calib_file_name : fits or fits.gz file containing DRS calibration data
     151baseline_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
     162file       name of the root file
     163bsl_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
    52240</div>
    53241<div class="section" id="fnames-of-a-data-run">
    54242<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>[ &#8216;DRS calibration file&#8217;, &#8216;Data file&#8217;, &#8216;YYYY&#8217;, &#8216;MM&#8217;, &#8216;DD&#8217;]</dd>
     250</dl>
     251<p>rpath     : directory path for the results; YYYYMMDD will be appended to rpath
     252zipped    : 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 { &#8216;data&#8217;, &#8216;drscal&#8217;, &#8216;results&#8217; }
     264data    : name of the data file
     265drscal  : name of the drs calibration file
     266results : radikal of file name(s) for results (to be completed  by suffixes)</p>
     267</dd></dl>
     268
     269</dd></dl>
     270
    55271</div>
    56272</div>
     
    65281  <h3><a href="index.html">Table Of Contents</a></h3>
    66282  <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>
    68292<li><a class="reference internal" href="#pyfact-py">pyfact.py</a><ul>
    69293<li><a class="reference internal" href="#rawdata-access">rawdata access</a></li>
     
    75299</ul>
    76300
     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>
    77307  <h3>This Page</h3>
    78308  <ul class="this-page-menu">
     
    83313  <h3>Quick search</h3>
    84314    <form class="search" action="search.html" method="get">
    85       <input type="text" name="q" />
     315      <input type="text" name="q" size="18" />
    86316      <input type="submit" value="Go" />
    87317      <input type="hidden" name="check_keywords" value="yes" />
     
    103333          <a href="genindex.html" title="General Index"
    104334             >index</a></li>
    105         <li><a href="index.html">pyfact 0.1 documentation</a> &raquo;</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> &raquo;</li>
    106342      </ul>
    107343    </div>
    108344    <div class="footer">
    109345        &copy; 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.
    111347    </div>
    112348  </body>
  • fact/tools/pyscripts/doc/_build/html/index.html

    r13151 r13316  
    44  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    55
    6 
    76<html xmlns="http://www.w3.org/1999/xhtml">
    87  <head>
    98    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    109   
    11     <title>Welcome to pyfact’s documentation! &mdash; pyfact 0.1 documentation</title>
    12    
     10    <title>Welcome to pyfact’s documentation! &mdash; pyfact v0.1 documentation</title>
    1311    <link rel="stylesheet" href="_static/default.css" type="text/css" />
    1412    <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    15    
    1613    <script type="text/javascript">
    1714      var DOCUMENTATION_OPTIONS = {
     
    2623    <script type="text/javascript" src="_static/underscore.js"></script>
    2724    <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="#" />
    2926    <link rel="next" title="Introduction" href="introduction.html" />
    3027  </head>
     
    3936          <a href="introduction.html" title="Introduction"
    4037             accesskey="N">next</a> |</li>
    41         <li><a href="#">pyfact 0.1 documentation</a> &raquo;</li>
     38        <li><a href="#">pyfact v0.1 documentation</a> &raquo;</li>
    4239      </ul>
    4340    </div> 
     
    5350<div class="toctree-wrapper compound">
    5451<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>
    5673<li class="toctree-l1"><a class="reference internal" href="classes.html">Classes</a><ul>
    5774<li class="toctree-l2"><a class="reference internal" href="classes.html#pyfact-py">pyfact.py</a><ul>
    5875<li class="toctree-l3"><a class="reference internal" href="classes.html#rawdata-access">rawdata access</a></li>
    5976<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>
    6177</ul>
    6278</li>
     79<li class="toctree-l2"><a class="reference internal" href="classes.html#fir-filter-functions">FIR filter functions</a></li>
    6380</ul>
    6481</li>
     
    105122  <h3>Quick search</h3>
    106123    <form class="search" action="search.html" method="get">
    107       <input type="text" name="q" />
     124      <input type="text" name="q" size="18" />
    108125      <input type="submit" value="Go" />
    109126      <input type="hidden" name="check_keywords" value="yes" />
     
    128145          <a href="introduction.html" title="Introduction"
    129146             >next</a> |</li>
    130         <li><a href="#">pyfact 0.1 documentation</a> &raquo;</li>
     147        <li><a href="#">pyfact v0.1 documentation</a> &raquo;</li>
    131148      </ul>
    132149    </div>
    133150    <div class="footer">
    134151        &copy; 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.
    136153    </div>
    137154  </body>
  • fact/tools/pyscripts/doc/_build/html/introduction.html

    r13151 r13316  
    44  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    55
    6 
    76<html xmlns="http://www.w3.org/1999/xhtml">
    87  <head>
    98    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    109   
    11     <title>Introduction &mdash; pyfact 0.1 documentation</title>
    12    
     10    <title>Introduction &mdash; pyfact v0.1 documentation</title>
    1311    <link rel="stylesheet" href="_static/default.css" type="text/css" />
    1412    <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    15    
    1613    <script type="text/javascript">
    1714      var DOCUMENTATION_OPTIONS = {
     
    2623    <script type="text/javascript" src="_static/underscore.js"></script>
    2724    <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" />
    3027    <link rel="prev" title="Welcome to pyfact’s documentation!" href="index.html" />
    3128  </head>
     
    3835             accesskey="I">index</a></li>
    3936        <li class="right" >
    40           <a href="classes.html" title="Classes"
     37          <a href="getting_started.html" title="Getting Started"
    4138             accesskey="N">next</a> |</li>
    4239        <li class="right" >
    4340          <a href="index.html" title="Welcome to pyfact’s documentation!"
    4441             accesskey="P">previous</a> |</li>
    45         <li><a href="index.html">pyfact 0.1 documentation</a> &raquo;</li>
     42        <li><a href="index.html">pyfact v0.1 documentation</a> &raquo;</li>
    4643      </ul>
    4744    </div> 
     
    6158<li>examples</li>
    6259</ul>
    63 <p>The code of pyfact follows the <a href="#id1"><span class="problematic" id="id2">`</span></a>Style Guide for python code &lt;<a class="reference external" href="http://www.python.org/dev/peps/pep-0008/">http://www.python.org/dev/peps/pep-0008/</a>&gt;_.</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>&#8212; 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 &lt;<a class="reference external" href="http://www.python.org/dev/peps/pep-0008/">http://www.python.org/dev/peps/pep-0008/</a>&gt;.</p>
     74</div>
    6475</div>
    6576
     
    7081      <div class="sphinxsidebar">
    7182        <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
    7292  <h4>Previous topic</h4>
    7393  <p class="topless"><a href="index.html"
    7494                        title="previous chapter">Welcome to pyfact&#8217;s documentation!</a></p>
    7595  <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>
    7898  <h3>This Page</h3>
    7999  <ul class="this-page-menu">
     
    84104  <h3>Quick search</h3>
    85105    <form class="search" action="search.html" method="get">
    86       <input type="text" name="q" />
     106      <input type="text" name="q" size="18" />
    87107      <input type="submit" value="Go" />
    88108      <input type="hidden" name="check_keywords" value="yes" />
     
    105125             >index</a></li>
    106126        <li class="right" >
    107           <a href="classes.html" title="Classes"
     127          <a href="getting_started.html" title="Getting Started"
    108128             >next</a> |</li>
    109129        <li class="right" >
    110130          <a href="index.html" title="Welcome to pyfact’s documentation!"
    111131             >previous</a> |</li>
    112         <li><a href="index.html">pyfact 0.1 documentation</a> &raquo;</li>
     132        <li><a href="index.html">pyfact v0.1 documentation</a> &raquo;</li>
    113133      </ul>
    114134    </div>
    115135    <div class="footer">
    116136        &copy; 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.
    118138    </div>
    119139  </body>
  • fact/tools/pyscripts/doc/_build/html/python.html

    r13151 r13316  
    44  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    55
    6 
    76<html xmlns="http://www.w3.org/1999/xhtml">
    87  <head>
    98    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    109   
    11     <title>phyton in FACT &mdash; pyfact 0.1 documentation</title>
    12    
     10    <title>phyton in FACT &mdash; pyfact v0.1 documentation</title>
    1311    <link rel="stylesheet" href="_static/default.css" type="text/css" />
    1412    <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    15    
    1613    <script type="text/javascript">
    1714      var DOCUMENTATION_OPTIONS = {
     
    2623    <script type="text/javascript" src="_static/underscore.js"></script>
    2724    <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" />
    2926    <link rel="prev" title="Examples" href="examples.html" />
    3027  </head>
     
    3936          <a href="examples.html" title="Examples"
    4037             accesskey="P">previous</a> |</li>
    41         <li><a href="index.html">pyfact 0.1 documentation</a> &raquo;</li>
     38        <li><a href="index.html">pyfact v0.1 documentation</a> &raquo;</li>
    4239      </ul>
    4340    </div> 
     
    8279  <h3>Quick search</h3>
    8380    <form class="search" action="search.html" method="get">
    84       <input type="text" name="q" />
     81      <input type="text" name="q" size="18" />
    8582      <input type="submit" value="Go" />
    8683      <input type="hidden" name="check_keywords" value="yes" />
     
    105102          <a href="examples.html" title="Examples"
    106103             >previous</a> |</li>
    107         <li><a href="index.html">pyfact 0.1 documentation</a> &raquo;</li>
     104        <li><a href="index.html">pyfact v0.1 documentation</a> &raquo;</li>
    108105      </ul>
    109106    </div>
    110107    <div class="footer">
    111108        &copy; 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.
    113110    </div>
    114111  </body>
  • fact/tools/pyscripts/doc/_build/html/search.html

    r13151 r13316  
    44  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    55
    6 
    76<html xmlns="http://www.w3.org/1999/xhtml">
    87  <head>
    98    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    109   
    11     <title>Search &mdash; pyfact 0.1 documentation</title>
    12    
     10    <title>Search &mdash; pyfact v0.1 documentation</title>
    1311    <link rel="stylesheet" href="_static/default.css" type="text/css" />
    1412    <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    15    
    1613    <script type="text/javascript">
    1714      var DOCUMENTATION_OPTIONS = {
     
    2724    <script type="text/javascript" src="_static/doctools.js"></script>
    2825    <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" />
    3027  <script type="text/javascript">
    3128    jQuery(function() { Search.loadIndex("searchindex.js"); });
     
    4138          <a href="genindex.html" title="General Index"
    4239             accesskey="I">index</a></li>
    43         <li><a href="index.html">pyfact 0.1 documentation</a> &raquo;</li>
     40        <li><a href="index.html">pyfact v0.1 documentation</a> &raquo;</li>
    4441      </ul>
    4542    </div> 
     
    8986          <a href="genindex.html" title="General Index"
    9087             >index</a></li>
    91         <li><a href="index.html">pyfact 0.1 documentation</a> &raquo;</li>
     88        <li><a href="index.html">pyfact v0.1 documentation</a> &raquo;</li>
    9289      </ul>
    9390    </div>
    9491    <div class="footer">
    9592        &copy; 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.
    9794    </div>
    9895  </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&#8217;s documentation!","Introduction","phyton in FACT","Classes","Examples","Classes"],objnames:{},filenames:["index","introduction","python","classes","examples","getting_started"]})
     1Search.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&#8217;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===============
     2Getting Started
     3===============
     4
     51) Get an account at the FACT data center at ISDC
     62) Setup your environment variables
     73) Checkout the pyfact software repository
     84) Try a few examples
     9
     101. 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
     282. Environment variables
     29=====================
     30set 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
     43the absolute path depends on where you have checked (or will check) out the pyscripts repository
     44
     453. Check out the repository
     46========================
     47svn co https://fact.isdc.unige.ch/svn/fact/tools/pyscripts/
     48
     494. Create pyfits library
     50========================
     51FACT 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
     55To 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
     59simple::
     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
     725. Run examples
     73============
     74
     75
    176=======
    277Classes
     
    883rawdata access
    984-------
    10 .. autoclass:: pyfact.rawdata
     85.. autoclass:: pyfact.RawData
    1186    :members:
    1287
  • fact/tools/pyscripts/doc/index.rst

    r13151 r13316  
    1313
    1414   introduction
     15   getting_started
    1516   classes
    1617   examples
  • fact/tools/pyscripts/doc/introduction.rst

    r13151 r13316  
    99* examples
    1010
    11 The code of pyfact follows the `Style Guide for python code <http://www.python.org/dev/peps/pep-0008/>_.
     11If 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
     15pyfact 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
     21Python version and modules used
     22-------------------------------
     23As 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
     27Style guide and coding conventions
     28----------------------------------
     29The 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  
    6969    #print singles[0], a, b, data[a,b-1], data[a,b], data[1,b+1]
    7070
    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'
     71data_file_name = '/home/luster/win7/FACT/data/raw/20111124/20111124_117.fits.gz'
     72calib_file_name = '/home/luster/win7/FACT/data/raw/20111124/20111124_114.drs.fits.gz'
    7373run = RawData( data_file_name, calib_file_name )
    7474
     
    8080    print 'event ', ev
    8181    ev += 1
    82     if ev == 10:
     82    if ev == 100:
    8383        break
    8484    remove_spikes(data)
Note: See TracChangeset for help on using the changeset viewer.