Index: /fact/tools/pyscripts/doc/_build/html/.buildinfo
===================================================================
--- /fact/tools/pyscripts/doc/_build/html/.buildinfo	(revision 13315)
+++ /fact/tools/pyscripts/doc/_build/html/.buildinfo	(revision 13316)
@@ -1,4 +1,4 @@
 # Sphinx build info version 1
 # This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
-config: 4ccce79467c3c1e26dd2c30bdca24749
+config: ba772b99f74f3e46a3c0f95d44c9931e
 tags: fbb0d17656682115ca4d033fb2f83ba1
Index: /fact/tools/pyscripts/doc/_build/html/_sources/classes.txt
===================================================================
--- /fact/tools/pyscripts/doc/_build/html/_sources/classes.txt	(revision 13315)
+++ /fact/tools/pyscripts/doc/_build/html/_sources/classes.txt	(revision 13316)
@@ -18,5 +18,5 @@
 
 FIR filter functions
---------------------
+=====================
 .. autoclass:: fir_filter
 	:members:
Index: /fact/tools/pyscripts/doc/_build/html/_sources/getting_started.txt
===================================================================
--- /fact/tools/pyscripts/doc/_build/html/_sources/getting_started.txt	(revision 13315)
+++ /fact/tools/pyscripts/doc/_build/html/_sources/getting_started.txt	(revision 13316)
@@ -1,2 +1,77 @@
+===============
+Getting Started
+===============
+
+1) Get an account at the FACT data center at ISDC
+2) Setup your environment variables
+3) Checkout the pyfact software repository
+4) Try a few examples
+
+1. Important links
+=================================
+
+**FACT data center at ISDC** <http://www.isdc.unige.ch/fact/datacenter>**
+    here you find instructions how to get an account, how to set it up and how to use it
+
+**SVN repository** <https://fact.isdc.unige.ch/svn/fact/>
+    hosts all FACT software (including pyfact)
+
+**FACT run database** <https://www.fact-project.org/run_db/db/fact_runinfo.php>
+    here you find information about all available runs
+
+**eLogbook** <https://www.fact-project.org/logbook/>
+  telescope logbook used since Dec. 1, 2012; for logbook information before this date have a look here: <http://fact.ethz.ch/FACTelog/index.jsp>
+
+**FACT La Palma pages** <https://www.fact-project.org/>
+  plenty of information concerning the telescope in La Palma
+
+2. Environment variables
+=====================
+set the following env variables depending on the SHELL you are using, for instance in .bashrc or .tcshrc
+
+* **ROOTSYS**: /swdev_nfs/root_v5.28.00
+* **PATH**: add $ROOTSYS/bin
+* **PATH**: add /swdev_nfs/FACT++
+* **LD_LIBRARY_PATH**: $ROOTSYS/lib:/swdev_nfs/FACT++/.libs
+* **PYTHONPATH**: $ROOTSYS/lib
+* **PYTHONPATH**: add all directories where python should search for modules. At least:
+    * pyscripts/pyfact
+    * pyscript/tools
+    * pyscripts/ecamples
+    * py
+
+the absolute path depends on where you have checked (or will check) out the pyscripts repository
+
+3. Check out the repository
+========================
+svn co https://fact.isdc.unige.ch/svn/fact/tools/pyscripts/
+
+4. Create pyfits library
+========================
+FACT data are stored in (gzipped) fits files, but the data files are too large to be read by the default tool: 
+
+`pyfits <http://www.stsci.edu/institute/software_hardware/pyfits>`.
+
+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 
+
+`pyroot http://root.cern.ch/drupal/category/package-context/pyroot>` module.
+
+simple::
+
+  [pceth118] /home/luster/py > root
+  ROOT 5.28/00h (branches/v5-28-00-patches@42209, Feb 13 2012, 23:52:00 on linux)
+  CINT/ROOT C/C++ Interpreter version 5.18.00, July 2, 2010
+  Type ? for help. Commands must be C++ statements.
+  Enclose multiple statements between { }.
+  root [0] .L fits.h++
+  Info in <TUnixSystem::ACLiC>: creating shared library /home/luster/py/./fits_h.so
+  root [1]
+
+
+
+5. Run examples
+============
+
+
 =======
 Classes
@@ -8,5 +83,5 @@
 rawdata access
 -------
-.. autoclass:: pyfact.rawdata
+.. autoclass:: pyfact.RawData
     :members:
 
Index: /fact/tools/pyscripts/doc/_build/html/_sources/index.txt
===================================================================
--- /fact/tools/pyscripts/doc/_build/html/_sources/index.txt	(revision 13315)
+++ /fact/tools/pyscripts/doc/_build/html/_sources/index.txt	(revision 13316)
@@ -13,4 +13,5 @@
 
    introduction
+   getting_started
    classes
    examples
Index: /fact/tools/pyscripts/doc/_build/html/_sources/introduction.txt
===================================================================
--- /fact/tools/pyscripts/doc/_build/html/_sources/introduction.txt	(revision 13315)
+++ /fact/tools/pyscripts/doc/_build/html/_sources/introduction.txt	(revision 13316)
@@ -9,3 +9,21 @@
 * examples
 
-The code of pyfact follows the `Style Guide for python code <http://www.python.org/dev/peps/pep-0008/>_.
+If you are new to python you need to learn the basics. In any case it would be wise to study the following book:
+
+*A Primer on Scientific Programming with Python - Hans Petter Langtangen* 
+
+pyfact is supposed to follow closely the programming style thought in this book.
+
+`python documentation pages <http://docs.python.org/>`_
+
+`astropython.org <http://www.astropython.org/resources>`_
+
+Python version and modules used
+-------------------------------
+As long as you work on the ISDC FACT cluster most things should be just fine. 
+|python version: 2.6.6
+|--- add later: list of modules
+
+Style guide and coding conventions
+----------------------------------
+The code of pyfact follows the `Style Guide for python code <http://www.python.org/dev/peps/pep-0008/>.
Index: /fact/tools/pyscripts/doc/_build/html/_static/basic.css
===================================================================
--- /fact/tools/pyscripts/doc/_build/html/_static/basic.css	(revision 13315)
+++ /fact/tools/pyscripts/doc/_build/html/_static/basic.css	(revision 13316)
@@ -5,5 +5,5 @@
  * Sphinx stylesheet -- basic theme.
  *
- * :copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS.
+ * :copyright: Copyright 2007-2010 by the Sphinx team, see AUTHORS.
  * :license: BSD, see LICENSE for details.
  *
@@ -78,12 +78,4 @@
     font-family: sans-serif;
     font-size: 1em;
-}
-
-div.sphinxsidebar input[type="text"] {
-    width: 170px;
-}
-
-div.sphinxsidebar input[type="submit"] {
-    width: 30px;
 }
 
@@ -222,22 +214,4 @@
 }
 
-img.align-left, .figure.align-left, object.align-left {
-    clear: left;
-    float: left;
-    margin-right: 1em;
-}
-
-img.align-right, .figure.align-right, object.align-right {
-    clear: right;
-    float: right;
-    margin-left: 1em;
-}
-
-img.align-center, .figure.align-center, object.align-center {
-  display: block;
-  margin-left: auto;
-  margin-right: auto;
-}
-
 .align-left {
     text-align: left;
@@ -245,4 +219,5 @@
 
 .align-center {
+    clear: both;
     text-align: center;
 }
@@ -421,5 +396,5 @@
 
 .footnote:target  {
-    background-color: #ffa;
+    background-color: #ffa
 }
 
@@ -448,14 +423,8 @@
 }
 
-abbr, acronym {
-    border-bottom: dotted 1px;
-    cursor: help;
-}
-
 /* -- code displays --------------------------------------------------------- */
 
 pre {
     overflow: auto;
-    overflow-y: hidden;  /* fixes display issues on Chrome browsers */
 }
 
Index: /fact/tools/pyscripts/doc/_build/html/_static/default.css
===================================================================
--- /fact/tools/pyscripts/doc/_build/html/_static/default.css	(revision 13315)
+++ /fact/tools/pyscripts/doc/_build/html/_static/default.css	(revision 13316)
@@ -5,5 +5,5 @@
  * Sphinx stylesheet -- default theme.
  *
- * :copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS.
+ * :copyright: Copyright 2007-2010 by the Sphinx team, see AUTHORS.
  * :license: BSD, see LICENSE for details.
  *
Index: /fact/tools/pyscripts/doc/_build/html/_static/doctools.js
===================================================================
--- /fact/tools/pyscripts/doc/_build/html/_static/doctools.js	(revision 13315)
+++ /fact/tools/pyscripts/doc/_build/html/_static/doctools.js	(revision 13316)
@@ -3,7 +3,7 @@
  * ~~~~~~~~~~~
  *
- * Sphinx JavaScript utilities for all documentation.
+ * Sphinx JavaScript utilties for all documentation.
  *
- * :copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS.
+ * :copyright: Copyright 2007-2010 by the Sphinx team, see AUTHORS.
  * :license: BSD, see LICENSE for details.
  *
@@ -186,7 +186,7 @@
         });
       }, 10);
-      $('<p class="highlight-link"><a href="javascript:Documentation.' +
-        'hideSearchWords()">' + _('Hide Search Matches') + '</a></p>')
-          .appendTo($('#searchbox'));
+      $('<li class="highlight-link"><a href="javascript:Documentation.' +
+        'hideSearchWords()">' + _('Hide Search Matches') + '</a></li>')
+          .appendTo($('.sidebar .this-page-menu'));
     }
   },
@@ -214,5 +214,5 @@
    */
   hideSearchWords : function() {
-    $('#searchbox .highlight-link').fadeOut(300);
+    $('.sidebar .this-page-menu li.highlight-link').fadeOut(300);
     $('span.highlighted').removeClass('highlighted');
   },
Index: /fact/tools/pyscripts/doc/_build/html/_static/pygments.css
===================================================================
--- /fact/tools/pyscripts/doc/_build/html/_static/pygments.css	(revision 13315)
+++ /fact/tools/pyscripts/doc/_build/html/_static/pygments.css	(revision 13316)
Index: /fact/tools/pyscripts/doc/_build/html/_static/searchtools.js
===================================================================
--- /fact/tools/pyscripts/doc/_build/html/_static/searchtools.js	(revision 13315)
+++ /fact/tools/pyscripts/doc/_build/html/_static/searchtools.js	(revision 13316)
@@ -1,9 +1,9 @@
 /*
- * searchtools.js_t
- * ~~~~~~~~~~~~~~~~
+ * searchtools.js
+ * ~~~~~~~~~~~~~~
  *
  * Sphinx JavaScript utilties for the full-text search.
  *
- * :copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS.
+ * :copyright: Copyright 2007-2010 by the Sphinx team, see AUTHORS.
  * :license: BSD, see LICENSE for details.
  *
@@ -37,9 +37,8 @@
 }
 
-
 /**
  * Porter Stemmer
  */
-var Stemmer = function() {
+var PorterStemmer = function() {
 
   var step2list = {
@@ -302,18 +301,18 @@
 
   query : function(query) {
-    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"];
-
-    // Stem the searchterms and add them to the correct list
-    var stemmer = new Stemmer();
+    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'];
+
+    // stem the searchterms and add them to the correct list
+    var stemmer = new PorterStemmer();
     var searchterms = [];
     var excluded = [];
     var hlterms = [];
     var tmp = query.split(/\s+/);
-    var objectterms = [];
+    var object = (tmp.length == 1) ? tmp[0].toLowerCase() : null;
     for (var i = 0; i < tmp.length; i++) {
-      if (tmp[i] != "") {
-          objectterms.push(tmp[i].toLowerCase());
-      }
-
       if ($u.indexOf(stopwords, tmp[i]) != -1 || tmp[i].match(/^\d+$/) ||
           tmp[i] == "") {
@@ -346,4 +345,7 @@
     var titles = this._index.titles;
     var terms = this._index.terms;
+    var objects = this._index.objects;
+    var objtypes = this._index.objtypes;
+    var objnames = this._index.objnames;
     var fileMap = {};
     var files = null;
@@ -356,16 +358,37 @@
 
     // lookup as object
-    for (var i = 0; i < objectterms.length; i++) {
-      var others = [].concat(objectterms.slice(0,i),
-                             objectterms.slice(i+1, objectterms.length))
-      var results = this.performObjectSearch(objectterms[i], others);
-      // Assume first word is most likely to be the object,
-      // other words more likely to be in description.
-      // Therefore put matches for earlier words first.
-      // (Results are eventually used in reverse order).
-      objectResults = results[0].concat(objectResults);
-      importantResults = results[1].concat(importantResults);
-      unimportantResults = results[2].concat(unimportantResults);
-    }
+    if (object != null) {
+      for (var prefix in objects) {
+        for (var name in objects[prefix]) {
+          var fullname = (prefix ? prefix + '.' : '') + name;
+          if (fullname.toLowerCase().indexOf(object) > -1) {
+            match = objects[prefix][name];
+            descr = objnames[match[1]] + _(', in ') + titles[match[0]];
+            // XXX the generated anchors are not generally correct
+            // XXX there may be custom prefixes
+            result = [filenames[match[0]], fullname, '#'+fullname, descr];
+            switch (match[2]) {
+            case 1: objectResults.push(result); break;
+            case 0: importantResults.push(result); break;
+            case 2: unimportantResults.push(result); break;
+            }
+          }
+        }
+      }
+    }
+
+    // sort results descending
+    objectResults.sort(function(a, b) {
+      return (a[1] > b[1]) ? -1 : ((a[1] < b[1]) ? 1 : 0);
+    });
+
+    importantResults.sort(function(a, b) {
+      return (a[1] > b[1]) ? -1 : ((a[1] < b[1]) ? 1 : 0);
+    });
+
+    unimportantResults.sort(function(a, b) {
+      return (a[1] > b[1]) ? -1 : ((a[1] < b[1]) ? 1 : 0);
+    });
+
 
     // perform the search on the required terms
@@ -467,5 +490,5 @@
               displayNextItem();
             });
-          }, "text");
+          });
         } else {
           // no source available, just display title
@@ -488,69 +511,4 @@
     }
     displayNextItem();
-  },
-
-  performObjectSearch : function(object, otherterms) {
-    var filenames = this._index.filenames;
-    var objects = this._index.objects;
-    var objnames = this._index.objnames;
-    var titles = this._index.titles;
-
-    var importantResults = [];
-    var objectResults = [];
-    var unimportantResults = [];
-
-    for (var prefix in objects) {
-      for (var name in objects[prefix]) {
-        var fullname = (prefix ? prefix + '.' : '') + name;
-        if (fullname.toLowerCase().indexOf(object) > -1) {
-          var match = objects[prefix][name];
-          var objname = objnames[match[1]][2];
-          var title = titles[match[0]];
-          // If more than one term searched for, we require other words to be
-          // found in the name/title/description
-          if (otherterms.length > 0) {
-            var haystack = (prefix + ' ' + name + ' ' +
-                            objname + ' ' + title).toLowerCase();
-            var allfound = true;
-            for (var i = 0; i < otherterms.length; i++) {
-              if (haystack.indexOf(otherterms[i]) == -1) {
-                allfound = false;
-                break;
-              }
-            }
-            if (!allfound) {
-              continue;
-            }
-          }
-          var descr = objname + _(', in ') + title;
-          anchor = match[3];
-          if (anchor == '')
-            anchor = fullname;
-          else if (anchor == '-')
-            anchor = objnames[match[1]][1] + '-' + fullname;
-          result = [filenames[match[0]], fullname, '#'+anchor, descr];
-          switch (match[2]) {
-          case 1: objectResults.push(result); break;
-          case 0: importantResults.push(result); break;
-          case 2: unimportantResults.push(result); break;
-          }
-        }
-      }
-    }
-
-    // sort results descending
-    objectResults.sort(function(a, b) {
-      return (a[1] > b[1]) ? -1 : ((a[1] < b[1]) ? 1 : 0);
-    });
-
-    importantResults.sort(function(a, b) {
-      return (a[1] > b[1]) ? -1 : ((a[1] < b[1]) ? 1 : 0);
-    });
-
-    unimportantResults.sort(function(a, b) {
-      return (a[1] > b[1]) ? -1 : ((a[1] < b[1]) ? 1 : 0);
-    });
-
-    return [importantResults, objectResults, unimportantResults]
   }
 }
Index: /fact/tools/pyscripts/doc/_build/html/_static/sidebar.js
===================================================================
--- /fact/tools/pyscripts/doc/_build/html/_static/sidebar.js	(revision 13315)
+++ /fact/tools/pyscripts/doc/_build/html/_static/sidebar.js	(revision 13316)
@@ -17,5 +17,5 @@
  * reset to the default (expanded).
  *
- * :copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS.
+ * :copyright: Copyright 2007-2010 by the Sphinx team, see AUTHORS.
  * :license: BSD, see LICENSE for details.
  *
@@ -29,7 +29,4 @@
   var sidebar = $('.sphinxsidebar');
   var sidebarwrapper = $('.sphinxsidebarwrapper');
-
-  // for some reason, the document has no sidebar; do not run into errors
-  if (!sidebar.length) return;
 
   // original margin-left of the bodywrapper and width of the sidebar
Index: /fact/tools/pyscripts/doc/_build/html/_static/underscore.js
===================================================================
--- /fact/tools/pyscripts/doc/_build/html/_static/underscore.js	(revision 13315)
+++ /fact/tools/pyscripts/doc/_build/html/_static/underscore.js	(revision 13316)
@@ -1,9 +1,2 @@
-// Underscore.js 0.5.5
-// (c) 2009 Jeremy Ashkenas, DocumentCloud Inc.
-// Underscore is freely distributable under the terms of the MIT license.
-// Portions of Underscore are inspired by or borrowed from Prototype.js,
-// Oliver Steele's Functional, and John Resig's Micro-Templating.
-// For all details and documentation:
-// http://documentcloud.github.com/underscore/
 (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,
 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);
Index: /fact/tools/pyscripts/doc/_build/html/classes.html
===================================================================
--- /fact/tools/pyscripts/doc/_build/html/classes.html	(revision 13315)
+++ /fact/tools/pyscripts/doc/_build/html/classes.html	(revision 13316)
@@ -4,14 +4,11 @@
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
-
 <html xmlns="http://www.w3.org/1999/xhtml">
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     
-    <title>Classes &mdash; pyfact 0.1 documentation</title>
-    
+    <title>Classes &mdash; pyfact v0.1 documentation</title>
     <link rel="stylesheet" href="_static/default.css" type="text/css" />
     <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
-    
     <script type="text/javascript">
       var DOCUMENTATION_OPTIONS = {
@@ -26,5 +23,5 @@
     <script type="text/javascript" src="_static/underscore.js"></script>
     <script type="text/javascript" src="_static/doctools.js"></script>
-    <link rel="top" title="pyfact 0.1 documentation" href="index.html" />
+    <link rel="top" title="pyfact v0.1 documentation" href="index.html" />
     <link rel="next" title="Examples" href="examples.html" />
     <link rel="prev" title="Introduction" href="introduction.html" /> 
@@ -43,5 +40,5 @@
           <a href="introduction.html" title="Introduction"
              accesskey="P">previous</a> |</li>
-        <li><a href="index.html">pyfact 0.1 documentation</a> &raquo;</li> 
+        <li><a href="index.html">pyfact v0.1 documentation</a> &raquo;</li> 
       </ul>
     </div>  
@@ -61,8 +58,36 @@
 <div class="section" id="fnames-of-a-data-run">
 <h3>fnames of a data run<a class="headerlink" href="#fnames-of-a-data-run" title="Permalink to this headline">¶</a></h3>
+<dl class="class">
+<dt id="pyfact.fnames">
+<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>
+<dd><p>organize file names of a FACT data run</p>
+<dl class="docutils">
+<dt>specifier <span class="classifier-delimiter">:</span> <span class="classifier">list of strings defined as:</span></dt>
+<dd>[ &#8216;DRS calibration file&#8217;, &#8216;Data file&#8217;, &#8216;YYYY&#8217;, &#8216;MM&#8217;, &#8216;DD&#8217;]</dd>
+</dl>
+<p>rpath     : directory path for the results; YYYYMMDD will be appended to rpath
+zipped    : use zipped (True) or unzipped (Data)</p>
+<dl class="method">
+<dt id="pyfact.fnames.info">
+<tt class="descname">info</tt><big>(</big><big>)</big><a class="headerlink" href="#pyfact.fnames.info" title="Permalink to this definition">¶</a></dt>
+<dd><p>print complete filenames</p>
+</dd></dl>
+
+<dl class="method">
+<dt id="pyfact.fnames.make">
+<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>
+<dd><p>create (make) the filenames</p>
+<p>names   : dictionary of filenames, tags { &#8216;data&#8217;, &#8216;drscal&#8217;, &#8216;results&#8217; }
+data    : name of the data file
+drscal  : name of the drs calibration file
+results : radikal of file name(s) for results (to be completed  by suffixes)</p>
+</dd></dl>
+
+</dd></dl>
+
+</div>
 </div>
 <div class="section" id="fir-filter-functions">
-<h3>FIR filter functions<a class="headerlink" href="#fir-filter-functions" title="Permalink to this headline">¶</a></h3>
-</div>
+<h2>FIR filter functions<a class="headerlink" href="#fir-filter-functions" title="Permalink to this headline">¶</a></h2>
 </div>
 </div>
@@ -80,7 +105,7 @@
 <li><a class="reference internal" href="#rawdata-access">rawdata access</a></li>
 <li><a class="reference internal" href="#fnames-of-a-data-run">fnames of a data run</a></li>
-<li><a class="reference internal" href="#fir-filter-functions">FIR filter functions</a></li>
 </ul>
 </li>
+<li><a class="reference internal" href="#fir-filter-functions">FIR filter functions</a></li>
 </ul>
 </li>
@@ -101,5 +126,5 @@
   <h3>Quick search</h3>
     <form class="search" action="search.html" method="get">
-      <input type="text" name="q" />
+      <input type="text" name="q" size="18" />
       <input type="submit" value="Go" />
       <input type="hidden" name="check_keywords" value="yes" />
@@ -127,10 +152,10 @@
           <a href="introduction.html" title="Introduction"
              >previous</a> |</li>
-        <li><a href="index.html">pyfact 0.1 documentation</a> &raquo;</li> 
+        <li><a href="index.html">pyfact v0.1 documentation</a> &raquo;</li> 
       </ul>
     </div>
     <div class="footer">
         &copy; Copyright 2012, Werner Lustermann.
-      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.2.
+      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.4.
     </div>
   </body>
Index: /fact/tools/pyscripts/doc/_build/html/examples.html
===================================================================
--- /fact/tools/pyscripts/doc/_build/html/examples.html	(revision 13315)
+++ /fact/tools/pyscripts/doc/_build/html/examples.html	(revision 13316)
@@ -4,14 +4,11 @@
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
-
 <html xmlns="http://www.w3.org/1999/xhtml">
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     
-    <title>Examples &mdash; pyfact 0.1 documentation</title>
-    
+    <title>Examples &mdash; pyfact v0.1 documentation</title>
     <link rel="stylesheet" href="_static/default.css" type="text/css" />
     <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
-    
     <script type="text/javascript">
       var DOCUMENTATION_OPTIONS = {
@@ -26,5 +23,5 @@
     <script type="text/javascript" src="_static/underscore.js"></script>
     <script type="text/javascript" src="_static/doctools.js"></script>
-    <link rel="top" title="pyfact 0.1 documentation" href="index.html" />
+    <link rel="top" title="pyfact v0.1 documentation" href="index.html" />
     <link rel="next" title="phyton in FACT" href="python.html" />
     <link rel="prev" title="Classes" href="classes.html" /> 
@@ -43,5 +40,5 @@
           <a href="classes.html" title="Classes"
              accesskey="P">previous</a> |</li>
-        <li><a href="index.html">pyfact 0.1 documentation</a> &raquo;</li> 
+        <li><a href="index.html">pyfact v0.1 documentation</a> &raquo;</li> 
       </ul>
     </div>  
@@ -97,5 +94,5 @@
   <h3>Quick search</h3>
     <form class="search" action="search.html" method="get">
-      <input type="text" name="q" />
+      <input type="text" name="q" size="18" />
       <input type="submit" value="Go" />
       <input type="hidden" name="check_keywords" value="yes" />
@@ -123,10 +120,10 @@
           <a href="classes.html" title="Classes"
              >previous</a> |</li>
-        <li><a href="index.html">pyfact 0.1 documentation</a> &raquo;</li> 
+        <li><a href="index.html">pyfact v0.1 documentation</a> &raquo;</li> 
       </ul>
     </div>
     <div class="footer">
         &copy; Copyright 2012, Werner Lustermann.
-      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.2.
+      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.4.
     </div>
   </body>
Index: /fact/tools/pyscripts/doc/_build/html/genindex.html
===================================================================
--- /fact/tools/pyscripts/doc/_build/html/genindex.html	(revision 13315)
+++ /fact/tools/pyscripts/doc/_build/html/genindex.html	(revision 13316)
@@ -1,4 +1,2 @@
-
-
 
 
@@ -6,14 +4,11 @@
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
-
 <html xmlns="http://www.w3.org/1999/xhtml">
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     
-    <title>Index &mdash; pyfact 0.1 documentation</title>
-    
+    <title>Index &mdash; pyfact v0.1 documentation</title>
     <link rel="stylesheet" href="_static/default.css" type="text/css" />
     <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
-    
     <script type="text/javascript">
       var DOCUMENTATION_OPTIONS = {
@@ -28,5 +23,5 @@
     <script type="text/javascript" src="_static/underscore.js"></script>
     <script type="text/javascript" src="_static/doctools.js"></script>
-    <link rel="top" title="pyfact 0.1 documentation" href="index.html" /> 
+    <link rel="top" title="pyfact v0.1 documentation" href="index.html" /> 
   </head>
   <body>
@@ -37,5 +32,5 @@
           <a href="#" title="General Index"
              accesskey="I">index</a></li>
-        <li><a href="index.html">pyfact 0.1 documentation</a> &raquo;</li> 
+        <li><a href="index.html">pyfact v0.1 documentation</a> &raquo;</li> 
       </ul>
     </div>  
@@ -47,9 +42,91 @@
             
 
-<h1 id="index">Index</h1>
+   <h1 id="index">Index</h1>
 
-<div class="genindex-jumpbox">
- 
-</div>
+   <div class="genindex-jumpbox">
+   <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> 
+   </div>
+<h2 id="B">B</h2>
+<table width="100%" class="indextable genindextable"><tr>
+  <td width="33%" valign="top"><dl>
+    <dt><a href="getting_started.html#pyfact.RawData.baseline_correct">baseline_correct() (pyfact.RawData method)</a></dt>
+    <dt><a href="getting_started.html#pyfact.RawData.baseline_read_values">baseline_read_values() (pyfact.RawData method)</a></dt>
+</dl></td>
+  <td width="33%" valign="top"><dl>
+    <dt><a href="getting_started.html#pyfact.RawData.board_times">board_times (pyfact.RawData attribute)</a></dt>
+</dl></td>
+</tr></table>
+
+<h2 id="C">C</h2>
+<table width="100%" class="indextable genindextable"><tr>
+  <td width="33%" valign="top"><dl>
+    <dt><a href="getting_started.html#pyfact.RawData.calib_file">calib_file (pyfact.RawData attribute)</a></dt>
+</dl></td>
+  <td width="33%" valign="top"><dl>
+    <dt><a href="getting_started.html#pyfact.RawData.calibrate_drs_amplitude">calibrate_drs_amplitude() (pyfact.RawData method)</a></dt>
+</dl></td>
+</tr></table>
+
+<h2 id="D">D</h2>
+<table width="100%" class="indextable genindextable"><tr>
+  <td width="33%" valign="top"><dl>
+    <dt><a href="getting_started.html#pyfact.RawData.data">data (pyfact.RawData attribute)</a></dt>
+</dl></td>
+  <td width="33%" valign="top"><dl>
+    <dt><a href="getting_started.html#pyfact.RawData.data_file">data_file (pyfact.RawData attribute)</a></dt>
+</dl></td>
+</tr></table>
+
+<h2 id="F">F</h2>
+<table width="100%" class="indextable genindextable"><tr>
+  <td width="33%" valign="top"><dl>
+    <dt><a href="classes.html#pyfact.fnames">fnames (class in pyfact)</a>, <a href="getting_started.html#pyfact.fnames">[1]</a></dt>
+</dl></td>
+</tr></table>
+
+<h2 id="I">I</h2>
+<table width="100%" class="indextable genindextable"><tr>
+  <td width="33%" valign="top"><dl>
+    <dt><a href="classes.html#pyfact.fnames.info">info() (pyfact.fnames method)</a>, <a href="getting_started.html#pyfact.fnames.info">[1]</a></dt>
+    <dd><dl>
+      <dt><a href="getting_started.html#pyfact.RawData.info">(pyfact.RawData method)</a></dt>
+  </dl></dd>
+</dl></td>
+</tr></table>
+
+<h2 id="M">M</h2>
+<table width="100%" class="indextable genindextable"><tr>
+  <td width="33%" valign="top"><dl>
+    <dt><a href="classes.html#pyfact.fnames.make">make() (pyfact.fnames method)</a>, <a href="getting_started.html#pyfact.fnames.make">[1]</a></dt>
+</dl></td>
+</tr></table>
+
+<h2 id="N">N</h2>
+<table width="100%" class="indextable genindextable"><tr>
+  <td width="33%" valign="top"><dl>
+    <dt><a href="getting_started.html#pyfact.RawData.nevents">nevents (pyfact.RawData attribute)</a></dt>
+    <dt><a href="getting_started.html#pyfact.RawData.next">next() (pyfact.RawData method)</a></dt>
+    <dt><a href="getting_started.html#pyfact.RawData.next_event">next_event() (pyfact.RawData method)</a></dt>
+</dl></td>
+  <td width="33%" valign="top"><dl>
+    <dt><a href="getting_started.html#pyfact.RawData.npix">npix (pyfact.RawData attribute)</a></dt>
+    <dt><a href="getting_started.html#pyfact.RawData.nroi">nroi (pyfact.RawData attribute)</a></dt>
+</dl></td>
+</tr></table>
+
+<h2 id="R">R</h2>
+<table width="100%" class="indextable genindextable"><tr>
+  <td width="33%" valign="top"><dl>
+    <dt><a href="getting_started.html#pyfact.RawData">RawData (class in pyfact)</a></dt>
+</dl></td>
+</tr></table>
+
+<h2 id="S">S</h2>
+<table width="100%" class="indextable genindextable"><tr>
+  <td width="33%" valign="top"><dl>
+    <dt><a href="getting_started.html#pyfact.RawData.start_cells">start_cells (pyfact.RawData attribute)</a></dt>
+</dl></td>
+</tr></table>
+
 
 
@@ -65,5 +142,5 @@
   <h3>Quick search</h3>
     <form class="search" action="search.html" method="get">
-      <input type="text" name="q" />
+      <input type="text" name="q" size="18" />
       <input type="submit" value="Go" />
       <input type="hidden" name="check_keywords" value="yes" />
@@ -85,10 +162,10 @@
           <a href="#" title="General Index"
              >index</a></li>
-        <li><a href="index.html">pyfact 0.1 documentation</a> &raquo;</li> 
+        <li><a href="index.html">pyfact v0.1 documentation</a> &raquo;</li> 
       </ul>
     </div>
     <div class="footer">
         &copy; Copyright 2012, Werner Lustermann.
-      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.2.
+      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.4.
     </div>
   </body>
Index: /fact/tools/pyscripts/doc/_build/html/getting_started.html
===================================================================
--- /fact/tools/pyscripts/doc/_build/html/getting_started.html	(revision 13315)
+++ /fact/tools/pyscripts/doc/_build/html/getting_started.html	(revision 13316)
@@ -3,5 +3,4 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
 
 <html xmlns="http://www.w3.org/1999/xhtml">
@@ -9,9 +8,7 @@
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     
-    <title>Classes &mdash; pyfact 0.1 documentation</title>
-    
+    <title>Getting Started &mdash; pyfact v0.1 documentation</title>
     <link rel="stylesheet" href="_static/default.css" type="text/css" />
     <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
-    
     <script type="text/javascript">
       var DOCUMENTATION_OPTIONS = {
@@ -26,5 +23,7 @@
     <script type="text/javascript" src="_static/underscore.js"></script>
     <script type="text/javascript" src="_static/doctools.js"></script>
-    <link rel="top" title="pyfact 0.1 documentation" href="index.html" /> 
+    <link rel="top" title="pyfact v0.1 documentation" href="index.html" />
+    <link rel="next" title="Classes" href="classes.html" />
+    <link rel="prev" title="Introduction" href="introduction.html" /> 
   </head>
   <body>
@@ -35,5 +34,11 @@
           <a href="genindex.html" title="General Index"
              accesskey="I">index</a></li>
-        <li><a href="index.html">pyfact 0.1 documentation</a> &raquo;</li> 
+        <li class="right" >
+          <a href="classes.html" title="Classes"
+             accesskey="N">next</a> |</li>
+        <li class="right" >
+          <a href="introduction.html" title="Introduction"
+             accesskey="P">previous</a> |</li>
+        <li><a href="index.html">pyfact v0.1 documentation</a> &raquo;</li> 
       </ul>
     </div>  
@@ -44,5 +49,81 @@
           <div class="body">
             
-  <div class="section" id="classes">
+  <div class="section" id="getting-started">
+<h1>Getting Started<a class="headerlink" href="#getting-started" title="Permalink to this headline">¶</a></h1>
+<ol class="arabic simple">
+<li>Get an account at the FACT data center at ISDC</li>
+<li>Setup your environment variables</li>
+<li>Checkout the pyfact software repository</li>
+<li>Try a few examples</li>
+</ol>
+<div class="section" id="important-links">
+<h2>1. Important links<a class="headerlink" href="#important-links" title="Permalink to this headline">¶</a></h2>
+<dl class="docutils">
+<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>
+<dd>here you find instructions how to get an account, how to set it up and how to use it</dd>
+<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>
+<dd>hosts all FACT software (including pyfact)</dd>
+<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>
+<dd>here you find information about all available runs</dd>
+<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>
+<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>
+<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>
+<dd>plenty of information concerning the telescope in La Palma</dd>
+</dl>
+</div>
+<div class="section" id="environment-variables">
+<h2>2. Environment variables<a class="headerlink" href="#environment-variables" title="Permalink to this headline">¶</a></h2>
+<p>set the following env variables depending on the SHELL you are using, for instance in .bashrc or .tcshrc</p>
+<ul>
+<li><p class="first"><strong>ROOTSYS</strong>: /swdev_nfs/root_v5.28.00</p>
+</li>
+<li><p class="first"><strong>PATH</strong>: add $ROOTSYS/bin</p>
+</li>
+<li><p class="first"><strong>PATH</strong>: add /swdev_nfs/FACT++</p>
+</li>
+<li><p class="first"><strong>LD_LIBRARY_PATH</strong>: $ROOTSYS/lib:/swdev_nfs/FACT++/.libs</p>
+</li>
+<li><p class="first"><strong>PYTHONPATH</strong>: $ROOTSYS/lib</p>
+</li>
+<li><dl class="first docutils">
+<dt><strong>PYTHONPATH</strong>: add all directories where python should search for modules. At least:</dt>
+<dd><ul class="first last simple">
+<li>pyscripts/pyfact</li>
+<li>pyscript/tools</li>
+<li>pyscripts/ecamples</li>
+<li>py</li>
+</ul>
+</dd>
+</dl>
+</li>
+</ul>
+<p>the absolute path depends on where you have checked (or will check) out the pyscripts repository</p>
+</div>
+<div class="section" id="check-out-the-repository">
+<h2>3. Check out the repository<a class="headerlink" href="#check-out-the-repository" title="Permalink to this headline">¶</a></h2>
+<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>
+</div>
+<div class="section" id="create-pyfits-library">
+<h2>4. Create pyfits library<a class="headerlink" href="#create-pyfits-library" title="Permalink to this headline">¶</a></h2>
+<p>FACT data are stored in (gzipped) fits files, but the data files are too large to be read by the default tool:</p>
+<p><cite>pyfits &lt;http://www.stsci.edu/institute/software_hardware/pyfits&gt;</cite>.</p>
+<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>
+<p><cite>pyroot http://root.cern.ch/drupal/category/package-context/pyroot&gt;</cite> module.</p>
+<p>simple:</p>
+<div class="highlight-python"><pre>[pceth118] /home/luster/py &gt; root
+ROOT 5.28/00h (branches/v5-28-00-patches@42209, Feb 13 2012, 23:52:00 on linux)
+CINT/ROOT C/C++ Interpreter version 5.18.00, July 2, 2010
+Type ? for help. Commands must be C++ statements.
+Enclose multiple statements between { }.
+root [0] .L fits.h++
+Info in &lt;TUnixSystem::ACLiC&gt;: creating shared library /home/luster/py/./fits_h.so
+root [1]</pre>
+</div>
+</div>
+<div class="section" id="run-examples">
+<h2>5. Run examples<a class="headerlink" href="#run-examples" title="Permalink to this headline">¶</a></h2>
+</div>
+</div>
+<div class="section" id="classes">
 <h1>Classes<a class="headerlink" href="#classes" title="Permalink to this headline">¶</a></h1>
 <div class="section" id="pyfact-py">
@@ -50,7 +131,142 @@
 <div class="section" id="rawdata-access">
 <h3>rawdata access<a class="headerlink" href="#rawdata-access" title="Permalink to this headline">¶</a></h3>
+<dl class="class">
+<dt id="pyfact.RawData">
+<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>
+<dd><p>raw data access and calibration</p>
+<ul class="simple">
+<li>open raw data file and drs calibration file</li>
+<li>performs amplitude calibration</li>
+<li>performs baseline substraction if wanted</li>
+<li>provides all data in an array:
+row = number of pixel
+col = length of region of interest</li>
+</ul>
+<p>initialize object</p>
+<p>open data file and calibration data file
+get basic information about the data in data_file_name
+allocate buffers for data access</p>
+<p>data_file_name   : fits or fits.gz file of the data including the path
+calib_file_name : fits or fits.gz file containing DRS calibration data
+baseline_file_name : npy file containing the baseline values</p>
+<dl class="method">
+<dt id="pyfact.RawData.baseline_correct">
+<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>
+<dd><p>subtract baseline from the data</p>
+</dd></dl>
+
+<dl class="method">
+<dt id="pyfact.RawData.baseline_read_values">
+<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>
+<dd><p>open ROOT file with baseline histogram and read baseline values
+file       name of the root file
+bsl_hist   path to the histogram containing the basline values</p>
+</dd></dl>
+
+<dl class="attribute">
+<dt id="pyfact.RawData.board_times">
+<tt class="descname">board_times</tt><a class="headerlink" href="#pyfact.RawData.board_times" title="Permalink to this definition">¶</a></dt>
+<dd><p>time when the FAD was triggered, in some strange units...</p>
+</dd></dl>
+
+<dl class="attribute">
+<dt id="pyfact.RawData.calib_file">
+<tt class="descname">calib_file</tt><a class="headerlink" href="#pyfact.RawData.calib_file" title="Permalink to this definition">¶</a></dt>
+<dd><p>drs calibration file</p>
+</dd></dl>
+
+<dl class="method">
+<dt id="pyfact.RawData.calibrate_drs_amplitude">
+<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>
+<dd><p>perform the drs amplitude calibration of the event data</p>
+</dd></dl>
+
+<dl class="attribute">
+<dt id="pyfact.RawData.data">
+<tt class="descname">data</tt><a class="headerlink" href="#pyfact.RawData.data" title="Permalink to this definition">¶</a></dt>
+<dd><p>1D array with raw data</p>
+</dd></dl>
+
+<dl class="attribute">
+<dt id="pyfact.RawData.data_file">
+<tt class="descname">data_file</tt><a class="headerlink" href="#pyfact.RawData.data_file" title="Permalink to this definition">¶</a></dt>
+<dd><p>data file (fits object)</p>
+</dd></dl>
+
+<dl class="method">
+<dt id="pyfact.RawData.info">
+<tt class="descname">info</tt><big>(</big><big>)</big><a class="headerlink" href="#pyfact.RawData.info" title="Permalink to this definition">¶</a></dt>
+<dd><p>print run information</p>
+</dd></dl>
+
+<dl class="attribute">
+<dt id="pyfact.RawData.nevents">
+<tt class="descname">nevents</tt><a class="headerlink" href="#pyfact.RawData.nevents" title="Permalink to this definition">¶</a></dt>
+<dd><p>number of events in the data run</p>
+</dd></dl>
+
+<dl class="method">
+<dt id="pyfact.RawData.next">
+<tt class="descname">next</tt><big>(</big><big>)</big><a class="headerlink" href="#pyfact.RawData.next" title="Permalink to this definition">¶</a></dt>
+<dd><p>used by __iter__</p>
+</dd></dl>
+
+<dl class="method">
+<dt id="pyfact.RawData.next_event">
+<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>
+<dd><p>load the next event from disk and calibrate it</p>
+</dd></dl>
+
+<dl class="attribute">
+<dt id="pyfact.RawData.npix">
+<tt class="descname">npix</tt><a class="headerlink" href="#pyfact.RawData.npix" title="Permalink to this definition">¶</a></dt>
+<dd><p>number of pixels (should be 1440)</p>
+</dd></dl>
+
+<dl class="attribute">
+<dt id="pyfact.RawData.nroi">
+<tt class="descname">nroi</tt><a class="headerlink" href="#pyfact.RawData.nroi" title="Permalink to this definition">¶</a></dt>
+<dd><p>region of interest (number of DRS slices read)</p>
+</dd></dl>
+
+<dl class="attribute">
+<dt id="pyfact.RawData.start_cells">
+<tt class="descname">start_cells</tt><a class="headerlink" href="#pyfact.RawData.start_cells" title="Permalink to this definition">¶</a></dt>
+<dd><p>slice where drs readout started</p>
+</dd></dl>
+
+</dd></dl>
+
 </div>
 <div class="section" id="fnames-of-a-data-run">
 <h3>fnames of a data run<a class="headerlink" href="#fnames-of-a-data-run" title="Permalink to this headline">¶</a></h3>
+<dl class="class">
+<dt id="pyfact.fnames">
+<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>
+<dd><p>organize file names of a FACT data run</p>
+<dl class="docutils">
+<dt>specifier <span class="classifier-delimiter">:</span> <span class="classifier">list of strings defined as:</span></dt>
+<dd>[ &#8216;DRS calibration file&#8217;, &#8216;Data file&#8217;, &#8216;YYYY&#8217;, &#8216;MM&#8217;, &#8216;DD&#8217;]</dd>
+</dl>
+<p>rpath     : directory path for the results; YYYYMMDD will be appended to rpath
+zipped    : use zipped (True) or unzipped (Data)</p>
+<dl class="method">
+<dt id="pyfact.fnames.info">
+<tt class="descname">info</tt><big>(</big><big>)</big><a class="headerlink" href="#pyfact.fnames.info" title="Permalink to this definition">¶</a></dt>
+<dd><p>print complete filenames</p>
+</dd></dl>
+
+<dl class="method">
+<dt id="pyfact.fnames.make">
+<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>
+<dd><p>create (make) the filenames</p>
+<p>names   : dictionary of filenames, tags { &#8216;data&#8217;, &#8216;drscal&#8217;, &#8216;results&#8217; }
+data    : name of the data file
+drscal  : name of the drs calibration file
+results : radikal of file name(s) for results (to be completed  by suffixes)</p>
+</dd></dl>
+
+</dd></dl>
+
 </div>
 </div>
@@ -65,5 +281,13 @@
   <h3><a href="index.html">Table Of Contents</a></h3>
   <ul>
-<li><a class="reference internal" href="#">Classes</a><ul>
+<li><a class="reference internal" href="#">Getting Started</a><ul>
+<li><a class="reference internal" href="#important-links">1. Important links</a></li>
+<li><a class="reference internal" href="#environment-variables">2. Environment variables</a></li>
+<li><a class="reference internal" href="#check-out-the-repository">3. Check out the repository</a></li>
+<li><a class="reference internal" href="#create-pyfits-library">4. Create pyfits library</a></li>
+<li><a class="reference internal" href="#run-examples">5. Run examples</a></li>
+</ul>
+</li>
+<li><a class="reference internal" href="#classes">Classes</a><ul>
 <li><a class="reference internal" href="#pyfact-py">pyfact.py</a><ul>
 <li><a class="reference internal" href="#rawdata-access">rawdata access</a></li>
@@ -75,4 +299,10 @@
 </ul>
 
+  <h4>Previous topic</h4>
+  <p class="topless"><a href="introduction.html"
+                        title="previous chapter">Introduction</a></p>
+  <h4>Next topic</h4>
+  <p class="topless"><a href="classes.html"
+                        title="next chapter">Classes</a></p>
   <h3>This Page</h3>
   <ul class="this-page-menu">
@@ -83,5 +313,5 @@
   <h3>Quick search</h3>
     <form class="search" action="search.html" method="get">
-      <input type="text" name="q" />
+      <input type="text" name="q" size="18" />
       <input type="submit" value="Go" />
       <input type="hidden" name="check_keywords" value="yes" />
@@ -103,10 +333,16 @@
           <a href="genindex.html" title="General Index"
              >index</a></li>
-        <li><a href="index.html">pyfact 0.1 documentation</a> &raquo;</li> 
+        <li class="right" >
+          <a href="classes.html" title="Classes"
+             >next</a> |</li>
+        <li class="right" >
+          <a href="introduction.html" title="Introduction"
+             >previous</a> |</li>
+        <li><a href="index.html">pyfact v0.1 documentation</a> &raquo;</li> 
       </ul>
     </div>
     <div class="footer">
         &copy; Copyright 2012, Werner Lustermann.
-      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.2.
+      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.4.
     </div>
   </body>
Index: /fact/tools/pyscripts/doc/_build/html/index.html
===================================================================
--- /fact/tools/pyscripts/doc/_build/html/index.html	(revision 13315)
+++ /fact/tools/pyscripts/doc/_build/html/index.html	(revision 13316)
@@ -4,14 +4,11 @@
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
-
 <html xmlns="http://www.w3.org/1999/xhtml">
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     
-    <title>Welcome to pyfact’s documentation! &mdash; pyfact 0.1 documentation</title>
-    
+    <title>Welcome to pyfact’s documentation! &mdash; pyfact v0.1 documentation</title>
     <link rel="stylesheet" href="_static/default.css" type="text/css" />
     <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
-    
     <script type="text/javascript">
       var DOCUMENTATION_OPTIONS = {
@@ -26,5 +23,5 @@
     <script type="text/javascript" src="_static/underscore.js"></script>
     <script type="text/javascript" src="_static/doctools.js"></script>
-    <link rel="top" title="pyfact 0.1 documentation" href="#" />
+    <link rel="top" title="pyfact v0.1 documentation" href="#" />
     <link rel="next" title="Introduction" href="introduction.html" /> 
   </head>
@@ -39,5 +36,5 @@
           <a href="introduction.html" title="Introduction"
              accesskey="N">next</a> |</li>
-        <li><a href="#">pyfact 0.1 documentation</a> &raquo;</li> 
+        <li><a href="#">pyfact v0.1 documentation</a> &raquo;</li> 
       </ul>
     </div>  
@@ -53,12 +50,32 @@
 <div class="toctree-wrapper compound">
 <ul>
-<li class="toctree-l1"><a class="reference internal" href="introduction.html">Introduction</a></li>
+<li class="toctree-l1"><a class="reference internal" href="introduction.html">Introduction</a><ul>
+<li class="toctree-l2"><a class="reference internal" href="introduction.html#python-version-and-modules-used">Python version and modules used</a></li>
+<li class="toctree-l2"><a class="reference internal" href="introduction.html#style-guide-and-coding-conventions">Style guide and coding conventions</a></li>
+</ul>
+</li>
+<li class="toctree-l1"><a class="reference internal" href="getting_started.html">Getting Started</a><ul>
+<li class="toctree-l2"><a class="reference internal" href="getting_started.html#important-links">1. Important links</a></li>
+<li class="toctree-l2"><a class="reference internal" href="getting_started.html#environment-variables">2. Environment variables</a></li>
+<li class="toctree-l2"><a class="reference internal" href="getting_started.html#check-out-the-repository">3. Check out the repository</a></li>
+<li class="toctree-l2"><a class="reference internal" href="getting_started.html#create-pyfits-library">4. Create pyfits library</a></li>
+<li class="toctree-l2"><a class="reference internal" href="getting_started.html#run-examples">5. Run examples</a></li>
+</ul>
+</li>
+<li class="toctree-l1"><a class="reference internal" href="getting_started.html#classes">Classes</a><ul>
+<li class="toctree-l2"><a class="reference internal" href="getting_started.html#pyfact-py">pyfact.py</a><ul>
+<li class="toctree-l3"><a class="reference internal" href="getting_started.html#rawdata-access">rawdata access</a></li>
+<li class="toctree-l3"><a class="reference internal" href="getting_started.html#fnames-of-a-data-run">fnames of a data run</a></li>
+</ul>
+</li>
+</ul>
+</li>
 <li class="toctree-l1"><a class="reference internal" href="classes.html">Classes</a><ul>
 <li class="toctree-l2"><a class="reference internal" href="classes.html#pyfact-py">pyfact.py</a><ul>
 <li class="toctree-l3"><a class="reference internal" href="classes.html#rawdata-access">rawdata access</a></li>
 <li class="toctree-l3"><a class="reference internal" href="classes.html#fnames-of-a-data-run">fnames of a data run</a></li>
-<li class="toctree-l3"><a class="reference internal" href="classes.html#fir-filter-functions">FIR filter functions</a></li>
 </ul>
 </li>
+<li class="toctree-l2"><a class="reference internal" href="classes.html#fir-filter-functions">FIR filter functions</a></li>
 </ul>
 </li>
@@ -105,5 +122,5 @@
   <h3>Quick search</h3>
     <form class="search" action="search.html" method="get">
-      <input type="text" name="q" />
+      <input type="text" name="q" size="18" />
       <input type="submit" value="Go" />
       <input type="hidden" name="check_keywords" value="yes" />
@@ -128,10 +145,10 @@
           <a href="introduction.html" title="Introduction"
              >next</a> |</li>
-        <li><a href="#">pyfact 0.1 documentation</a> &raquo;</li> 
+        <li><a href="#">pyfact v0.1 documentation</a> &raquo;</li> 
       </ul>
     </div>
     <div class="footer">
         &copy; Copyright 2012, Werner Lustermann.
-      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.2.
+      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.4.
     </div>
   </body>
Index: /fact/tools/pyscripts/doc/_build/html/introduction.html
===================================================================
--- /fact/tools/pyscripts/doc/_build/html/introduction.html	(revision 13315)
+++ /fact/tools/pyscripts/doc/_build/html/introduction.html	(revision 13316)
@@ -4,14 +4,11 @@
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
-
 <html xmlns="http://www.w3.org/1999/xhtml">
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     
-    <title>Introduction &mdash; pyfact 0.1 documentation</title>
-    
+    <title>Introduction &mdash; pyfact v0.1 documentation</title>
     <link rel="stylesheet" href="_static/default.css" type="text/css" />
     <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
-    
     <script type="text/javascript">
       var DOCUMENTATION_OPTIONS = {
@@ -26,6 +23,6 @@
     <script type="text/javascript" src="_static/underscore.js"></script>
     <script type="text/javascript" src="_static/doctools.js"></script>
-    <link rel="top" title="pyfact 0.1 documentation" href="index.html" />
-    <link rel="next" title="Classes" href="classes.html" />
+    <link rel="top" title="pyfact v0.1 documentation" href="index.html" />
+    <link rel="next" title="Getting Started" href="getting_started.html" />
     <link rel="prev" title="Welcome to pyfact’s documentation!" href="index.html" /> 
   </head>
@@ -38,10 +35,10 @@
              accesskey="I">index</a></li>
         <li class="right" >
-          <a href="classes.html" title="Classes"
+          <a href="getting_started.html" title="Getting Started"
              accesskey="N">next</a> |</li>
         <li class="right" >
           <a href="index.html" title="Welcome to pyfact’s documentation!"
              accesskey="P">previous</a> |</li>
-        <li><a href="index.html">pyfact 0.1 documentation</a> &raquo;</li> 
+        <li><a href="index.html">pyfact v0.1 documentation</a> &raquo;</li> 
       </ul>
     </div>  
@@ -61,5 +58,19 @@
 <li>examples</li>
 </ul>
-<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>
+<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>
+<p><em>A Primer on Scientific Programming with Python - Hans Petter Langtangen</em></p>
+<p>pyfact is supposed to follow closely the programming style thought in this book.</p>
+<p><a class="reference external" href="http://docs.python.org/">python documentation pages</a></p>
+<p><a class="reference external" href="http://www.astropython.org/resources">astropython.org</a></p>
+<div class="section" id="python-version-and-modules-used">
+<h2>Python version and modules used<a class="headerlink" href="#python-version-and-modules-used" title="Permalink to this headline">¶</a></h2>
+<p>As long as you work on the ISDC FACT cluster most things should be just fine.
+<a href="#id1"><span class="problematic" id="id2">|</span></a>python version: 2.6.6
+<a href="#id3"><span class="problematic" id="id4">|</span></a>&#8212; add later: list of modules</p>
+</div>
+<div class="section" id="style-guide-and-coding-conventions">
+<h2>Style guide and coding conventions<a class="headerlink" href="#style-guide-and-coding-conventions" title="Permalink to this headline">¶</a></h2>
+<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>
+</div>
 </div>
 
@@ -70,10 +81,19 @@
       <div class="sphinxsidebar">
         <div class="sphinxsidebarwrapper">
+  <h3><a href="index.html">Table Of Contents</a></h3>
+  <ul>
+<li><a class="reference internal" href="#">Introduction</a><ul>
+<li><a class="reference internal" href="#python-version-and-modules-used">Python version and modules used</a></li>
+<li><a class="reference internal" href="#style-guide-and-coding-conventions">Style guide and coding conventions</a></li>
+</ul>
+</li>
+</ul>
+
   <h4>Previous topic</h4>
   <p class="topless"><a href="index.html"
                         title="previous chapter">Welcome to pyfact&#8217;s documentation!</a></p>
   <h4>Next topic</h4>
-  <p class="topless"><a href="classes.html"
-                        title="next chapter">Classes</a></p>
+  <p class="topless"><a href="getting_started.html"
+                        title="next chapter">Getting Started</a></p>
   <h3>This Page</h3>
   <ul class="this-page-menu">
@@ -84,5 +104,5 @@
   <h3>Quick search</h3>
     <form class="search" action="search.html" method="get">
-      <input type="text" name="q" />
+      <input type="text" name="q" size="18" />
       <input type="submit" value="Go" />
       <input type="hidden" name="check_keywords" value="yes" />
@@ -105,15 +125,15 @@
              >index</a></li>
         <li class="right" >
-          <a href="classes.html" title="Classes"
+          <a href="getting_started.html" title="Getting Started"
              >next</a> |</li>
         <li class="right" >
           <a href="index.html" title="Welcome to pyfact’s documentation!"
              >previous</a> |</li>
-        <li><a href="index.html">pyfact 0.1 documentation</a> &raquo;</li> 
+        <li><a href="index.html">pyfact v0.1 documentation</a> &raquo;</li> 
       </ul>
     </div>
     <div class="footer">
         &copy; Copyright 2012, Werner Lustermann.
-      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.2.
+      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.4.
     </div>
   </body>
Index: /fact/tools/pyscripts/doc/_build/html/python.html
===================================================================
--- /fact/tools/pyscripts/doc/_build/html/python.html	(revision 13315)
+++ /fact/tools/pyscripts/doc/_build/html/python.html	(revision 13316)
@@ -4,14 +4,11 @@
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
-
 <html xmlns="http://www.w3.org/1999/xhtml">
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     
-    <title>phyton in FACT &mdash; pyfact 0.1 documentation</title>
-    
+    <title>phyton in FACT &mdash; pyfact v0.1 documentation</title>
     <link rel="stylesheet" href="_static/default.css" type="text/css" />
     <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
-    
     <script type="text/javascript">
       var DOCUMENTATION_OPTIONS = {
@@ -26,5 +23,5 @@
     <script type="text/javascript" src="_static/underscore.js"></script>
     <script type="text/javascript" src="_static/doctools.js"></script>
-    <link rel="top" title="pyfact 0.1 documentation" href="index.html" />
+    <link rel="top" title="pyfact v0.1 documentation" href="index.html" />
     <link rel="prev" title="Examples" href="examples.html" /> 
   </head>
@@ -39,5 +36,5 @@
           <a href="examples.html" title="Examples"
              accesskey="P">previous</a> |</li>
-        <li><a href="index.html">pyfact 0.1 documentation</a> &raquo;</li> 
+        <li><a href="index.html">pyfact v0.1 documentation</a> &raquo;</li> 
       </ul>
     </div>  
@@ -82,5 +79,5 @@
   <h3>Quick search</h3>
     <form class="search" action="search.html" method="get">
-      <input type="text" name="q" />
+      <input type="text" name="q" size="18" />
       <input type="submit" value="Go" />
       <input type="hidden" name="check_keywords" value="yes" />
@@ -105,10 +102,10 @@
           <a href="examples.html" title="Examples"
              >previous</a> |</li>
-        <li><a href="index.html">pyfact 0.1 documentation</a> &raquo;</li> 
+        <li><a href="index.html">pyfact v0.1 documentation</a> &raquo;</li> 
       </ul>
     </div>
     <div class="footer">
         &copy; Copyright 2012, Werner Lustermann.
-      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.2.
+      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.4.
     </div>
   </body>
Index: /fact/tools/pyscripts/doc/_build/html/search.html
===================================================================
--- /fact/tools/pyscripts/doc/_build/html/search.html	(revision 13315)
+++ /fact/tools/pyscripts/doc/_build/html/search.html	(revision 13316)
@@ -4,14 +4,11 @@
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
-
 <html xmlns="http://www.w3.org/1999/xhtml">
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     
-    <title>Search &mdash; pyfact 0.1 documentation</title>
-    
+    <title>Search &mdash; pyfact v0.1 documentation</title>
     <link rel="stylesheet" href="_static/default.css" type="text/css" />
     <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
-    
     <script type="text/javascript">
       var DOCUMENTATION_OPTIONS = {
@@ -27,5 +24,5 @@
     <script type="text/javascript" src="_static/doctools.js"></script>
     <script type="text/javascript" src="_static/searchtools.js"></script>
-    <link rel="top" title="pyfact 0.1 documentation" href="index.html" />
+    <link rel="top" title="pyfact v0.1 documentation" href="index.html" />
   <script type="text/javascript">
     jQuery(function() { Search.loadIndex("searchindex.js"); });
@@ -41,5 +38,5 @@
           <a href="genindex.html" title="General Index"
              accesskey="I">index</a></li>
-        <li><a href="index.html">pyfact 0.1 documentation</a> &raquo;</li> 
+        <li><a href="index.html">pyfact v0.1 documentation</a> &raquo;</li> 
       </ul>
     </div>  
@@ -89,10 +86,10 @@
           <a href="genindex.html" title="General Index"
              >index</a></li>
-        <li><a href="index.html">pyfact 0.1 documentation</a> &raquo;</li> 
+        <li><a href="index.html">pyfact v0.1 documentation</a> &raquo;</li> 
       </ul>
     </div>
     <div class="footer">
         &copy; Copyright 2012, Werner Lustermann.
-      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.2.
+      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.4.
     </div>
   </body>
Index: /fact/tools/pyscripts/doc/_build/html/searchindex.js
===================================================================
--- /fact/tools/pyscripts/doc/_build/html/searchindex.js	(revision 13315)
+++ /fact/tools/pyscripts/doc/_build/html/searchindex.js	(revision 13316)
@@ -1,1 +1,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"]})
+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&#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"]})
Index: /fact/tools/pyscripts/doc/getting_started.rst
===================================================================
--- /fact/tools/pyscripts/doc/getting_started.rst	(revision 13315)
+++ /fact/tools/pyscripts/doc/getting_started.rst	(revision 13316)
@@ -1,2 +1,77 @@
+===============
+Getting Started
+===============
+
+1) Get an account at the FACT data center at ISDC
+2) Setup your environment variables
+3) Checkout the pyfact software repository
+4) Try a few examples
+
+1. Important links
+=================================
+
+**FACT data center at ISDC** <http://www.isdc.unige.ch/fact/datacenter>**
+    here you find instructions how to get an account, how to set it up and how to use it
+
+**SVN repository** <https://fact.isdc.unige.ch/svn/fact/>
+    hosts all FACT software (including pyfact)
+
+**FACT run database** <https://www.fact-project.org/run_db/db/fact_runinfo.php>
+    here you find information about all available runs
+
+**eLogbook** <https://www.fact-project.org/logbook/>
+  telescope logbook used since Dec. 1, 2012; for logbook information before this date have a look here: <http://fact.ethz.ch/FACTelog/index.jsp>
+
+**FACT La Palma pages** <https://www.fact-project.org/>
+  plenty of information concerning the telescope in La Palma
+
+2. Environment variables
+=====================
+set the following env variables depending on the SHELL you are using, for instance in .bashrc or .tcshrc
+
+* **ROOTSYS**: /swdev_nfs/root_v5.28.00
+* **PATH**: add $ROOTSYS/bin
+* **PATH**: add /swdev_nfs/FACT++
+* **LD_LIBRARY_PATH**: $ROOTSYS/lib:/swdev_nfs/FACT++/.libs
+* **PYTHONPATH**: $ROOTSYS/lib
+* **PYTHONPATH**: add all directories where python should search for modules. At least:
+    * pyscripts/pyfact
+    * pyscript/tools
+    * pyscripts/ecamples
+    * py
+
+the absolute path depends on where you have checked (or will check) out the pyscripts repository
+
+3. Check out the repository
+========================
+svn co https://fact.isdc.unige.ch/svn/fact/tools/pyscripts/
+
+4. Create pyfits library
+========================
+FACT data are stored in (gzipped) fits files, but the data files are too large to be read by the default tool: 
+
+`pyfits <http://www.stsci.edu/institute/software_hardware/pyfits>`.
+
+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 
+
+`pyroot http://root.cern.ch/drupal/category/package-context/pyroot>` module.
+
+simple::
+
+  [pceth118] /home/luster/py > root
+  ROOT 5.28/00h (branches/v5-28-00-patches@42209, Feb 13 2012, 23:52:00 on linux)
+  CINT/ROOT C/C++ Interpreter version 5.18.00, July 2, 2010
+  Type ? for help. Commands must be C++ statements.
+  Enclose multiple statements between { }.
+  root [0] .L fits.h++
+  Info in <TUnixSystem::ACLiC>: creating shared library /home/luster/py/./fits_h.so
+  root [1]
+
+
+
+5. Run examples
+============
+
+
 =======
 Classes
@@ -8,5 +83,5 @@
 rawdata access
 -------
-.. autoclass:: pyfact.rawdata
+.. autoclass:: pyfact.RawData
     :members:
 
Index: /fact/tools/pyscripts/doc/index.rst
===================================================================
--- /fact/tools/pyscripts/doc/index.rst	(revision 13315)
+++ /fact/tools/pyscripts/doc/index.rst	(revision 13316)
@@ -13,4 +13,5 @@
 
    introduction
+   getting_started
    classes
    examples
Index: /fact/tools/pyscripts/doc/introduction.rst
===================================================================
--- /fact/tools/pyscripts/doc/introduction.rst	(revision 13315)
+++ /fact/tools/pyscripts/doc/introduction.rst	(revision 13316)
@@ -9,3 +9,21 @@
 * examples
 
-The code of pyfact follows the `Style Guide for python code <http://www.python.org/dev/peps/pep-0008/>_.
+If you are new to python you need to learn the basics. In any case it would be wise to study the following book:
+
+*A Primer on Scientific Programming with Python - Hans Petter Langtangen* 
+
+pyfact is supposed to follow closely the programming style thought in this book.
+
+`python documentation pages <http://docs.python.org/>`_
+
+`astropython.org <http://www.astropython.org/resources>`_
+
+Python version and modules used
+-------------------------------
+As long as you work on the ISDC FACT cluster most things should be just fine. 
+|python version: 2.6.6
+|--- add later: list of modules
+
+Style guide and coding conventions
+----------------------------------
+The code of pyfact follows the `Style Guide for python code <http://www.python.org/dev/peps/pep-0008/>.
Index: /fact/tools/pyscripts/tools/spike_ana.py
===================================================================
--- /fact/tools/pyscripts/tools/spike_ana.py	(revision 13315)
+++ /fact/tools/pyscripts/tools/spike_ana.py	(revision 13316)
@@ -69,6 +69,6 @@
     #print singles[0], a, b, data[a,b-1], data[a,b], data[1,b+1]
 
-data_file_name = '/data00/fact-construction/raw/2011/11/24/20111124_117.fits.gz'
-calib_file_name = '/data00/fact-construction/raw/2011/11/24/20111124_111.drs.fits.gz'
+data_file_name = '/home/luster/win7/FACT/data/raw/20111124/20111124_117.fits.gz'
+calib_file_name = '/home/luster/win7/FACT/data/raw/20111124/20111124_114.drs.fits.gz'
 run = RawData( data_file_name, calib_file_name )
 
@@ -80,5 +80,5 @@
     print 'event ', ev
     ev += 1
-    if ev == 10:
+    if ev == 100:
         break
     remove_spikes(data)
