1 | % Generated by Sphinx.
|
---|
2 | \def\sphinxdocclass{report}
|
---|
3 | \documentclass[letterpaper,10pt,english]{sphinxmanual}
|
---|
4 | \usepackage[utf8]{inputenc}
|
---|
5 | \DeclareUnicodeCharacter{00A0}{\nobreakspace}
|
---|
6 | \usepackage[T1]{fontenc}
|
---|
7 | \usepackage{babel}
|
---|
8 | \usepackage{times}
|
---|
9 | \usepackage[Bjarne]{fncychap}
|
---|
10 | \usepackage{longtable}
|
---|
11 | \usepackage{sphinx}
|
---|
12 |
|
---|
13 |
|
---|
14 | \title{pyfact Documentation}
|
---|
15 | \date{February 09, 2012}
|
---|
16 | \release{0.1}
|
---|
17 | \author{Werner Lustermann}
|
---|
18 | \newcommand{\sphinxlogo}{}
|
---|
19 | \renewcommand{\releasename}{Release}
|
---|
20 | \makeindex
|
---|
21 |
|
---|
22 | \makeatletter
|
---|
23 | \def\PYG@reset{\let\PYG@it=\relax \let\PYG@bf=\relax%
|
---|
24 | \let\PYG@ul=\relax \let\PYG@tc=\relax%
|
---|
25 | \let\PYG@bc=\relax \let\PYG@ff=\relax}
|
---|
26 | \def\PYG@tok#1{\csname PYG@tok@#1\endcsname}
|
---|
27 | \def\PYG@toks#1+{\ifx\relax#1\empty\else%
|
---|
28 | \PYG@tok{#1}\expandafter\PYG@toks\fi}
|
---|
29 | \def\PYG@do#1{\PYG@bc{\PYG@tc{\PYG@ul{%
|
---|
30 | \PYG@it{\PYG@bf{\PYG@ff{#1}}}}}}}
|
---|
31 | \def\PYG#1#2{\PYG@reset\PYG@toks#1+\relax+\PYG@do{#2}}
|
---|
32 |
|
---|
33 | \def\PYG@tok@gu{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.50,0.00,0.50}{##1}}}
|
---|
34 | \def\PYG@tok@gt{\def\PYG@tc##1{\textcolor[rgb]{0.00,0.25,0.82}{##1}}}
|
---|
35 | \def\PYG@tok@gs{\let\PYG@bf=\textbf}
|
---|
36 | \def\PYG@tok@gr{\def\PYG@tc##1{\textcolor[rgb]{1.00,0.00,0.00}{##1}}}
|
---|
37 | \def\PYG@tok@cm{\let\PYG@it=\textit\def\PYG@tc##1{\textcolor[rgb]{0.25,0.50,0.56}{##1}}}
|
---|
38 | \def\PYG@tok@vg{\def\PYG@tc##1{\textcolor[rgb]{0.73,0.38,0.84}{##1}}}
|
---|
39 | \def\PYG@tok@m{\def\PYG@tc##1{\textcolor[rgb]{0.13,0.50,0.31}{##1}}}
|
---|
40 | \def\PYG@tok@mh{\def\PYG@tc##1{\textcolor[rgb]{0.13,0.50,0.31}{##1}}}
|
---|
41 | \def\PYG@tok@go{\def\PYG@tc##1{\textcolor[rgb]{0.19,0.19,0.19}{##1}}}
|
---|
42 | \def\PYG@tok@ge{\let\PYG@it=\textit}
|
---|
43 | \def\PYG@tok@gd{\def\PYG@tc##1{\textcolor[rgb]{0.63,0.00,0.00}{##1}}}
|
---|
44 | \def\PYG@tok@il{\def\PYG@tc##1{\textcolor[rgb]{0.13,0.50,0.31}{##1}}}
|
---|
45 | \def\PYG@tok@cs{\def\PYG@tc##1{\textcolor[rgb]{0.25,0.50,0.56}{##1}}\def\PYG@bc##1{\colorbox[rgb]{1.00,0.94,0.94}{##1}}}
|
---|
46 | \def\PYG@tok@cp{\def\PYG@tc##1{\textcolor[rgb]{0.00,0.44,0.13}{##1}}}
|
---|
47 | \def\PYG@tok@gi{\def\PYG@tc##1{\textcolor[rgb]{0.00,0.63,0.00}{##1}}}
|
---|
48 | \def\PYG@tok@gh{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.00,0.00,0.50}{##1}}}
|
---|
49 | \def\PYG@tok@ni{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.84,0.33,0.22}{##1}}}
|
---|
50 | \def\PYG@tok@nl{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.00,0.13,0.44}{##1}}}
|
---|
51 | \def\PYG@tok@nn{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.05,0.52,0.71}{##1}}}
|
---|
52 | \def\PYG@tok@no{\def\PYG@tc##1{\textcolor[rgb]{0.38,0.68,0.84}{##1}}}
|
---|
53 | \def\PYG@tok@na{\def\PYG@tc##1{\textcolor[rgb]{0.25,0.44,0.63}{##1}}}
|
---|
54 | \def\PYG@tok@nb{\def\PYG@tc##1{\textcolor[rgb]{0.00,0.44,0.13}{##1}}}
|
---|
55 | \def\PYG@tok@nc{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.05,0.52,0.71}{##1}}}
|
---|
56 | \def\PYG@tok@nd{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.33,0.33,0.33}{##1}}}
|
---|
57 | \def\PYG@tok@ne{\def\PYG@tc##1{\textcolor[rgb]{0.00,0.44,0.13}{##1}}}
|
---|
58 | \def\PYG@tok@nf{\def\PYG@tc##1{\textcolor[rgb]{0.02,0.16,0.49}{##1}}}
|
---|
59 | \def\PYG@tok@si{\let\PYG@it=\textit\def\PYG@tc##1{\textcolor[rgb]{0.44,0.63,0.82}{##1}}}
|
---|
60 | \def\PYG@tok@s2{\def\PYG@tc##1{\textcolor[rgb]{0.25,0.44,0.63}{##1}}}
|
---|
61 | \def\PYG@tok@vi{\def\PYG@tc##1{\textcolor[rgb]{0.73,0.38,0.84}{##1}}}
|
---|
62 | \def\PYG@tok@nt{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.02,0.16,0.45}{##1}}}
|
---|
63 | \def\PYG@tok@nv{\def\PYG@tc##1{\textcolor[rgb]{0.73,0.38,0.84}{##1}}}
|
---|
64 | \def\PYG@tok@s1{\def\PYG@tc##1{\textcolor[rgb]{0.25,0.44,0.63}{##1}}}
|
---|
65 | \def\PYG@tok@vc{\def\PYG@tc##1{\textcolor[rgb]{0.73,0.38,0.84}{##1}}}
|
---|
66 | \def\PYG@tok@sh{\def\PYG@tc##1{\textcolor[rgb]{0.25,0.44,0.63}{##1}}}
|
---|
67 | \def\PYG@tok@ow{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.00,0.44,0.13}{##1}}}
|
---|
68 | \def\PYG@tok@mf{\def\PYG@tc##1{\textcolor[rgb]{0.13,0.50,0.31}{##1}}}
|
---|
69 | \def\PYG@tok@bp{\def\PYG@tc##1{\textcolor[rgb]{0.00,0.44,0.13}{##1}}}
|
---|
70 | \def\PYG@tok@c1{\let\PYG@it=\textit\def\PYG@tc##1{\textcolor[rgb]{0.25,0.50,0.56}{##1}}}
|
---|
71 | \def\PYG@tok@kc{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.00,0.44,0.13}{##1}}}
|
---|
72 | \def\PYG@tok@c{\let\PYG@it=\textit\def\PYG@tc##1{\textcolor[rgb]{0.25,0.50,0.56}{##1}}}
|
---|
73 | \def\PYG@tok@sx{\def\PYG@tc##1{\textcolor[rgb]{0.78,0.36,0.04}{##1}}}
|
---|
74 | \def\PYG@tok@err{\def\PYG@bc##1{\fcolorbox[rgb]{1.00,0.00,0.00}{1,1,1}{##1}}}
|
---|
75 | \def\PYG@tok@kd{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.00,0.44,0.13}{##1}}}
|
---|
76 | \def\PYG@tok@ss{\def\PYG@tc##1{\textcolor[rgb]{0.32,0.47,0.09}{##1}}}
|
---|
77 | \def\PYG@tok@sr{\def\PYG@tc##1{\textcolor[rgb]{0.14,0.33,0.53}{##1}}}
|
---|
78 | \def\PYG@tok@mo{\def\PYG@tc##1{\textcolor[rgb]{0.13,0.50,0.31}{##1}}}
|
---|
79 | \def\PYG@tok@kn{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.00,0.44,0.13}{##1}}}
|
---|
80 | \def\PYG@tok@mi{\def\PYG@tc##1{\textcolor[rgb]{0.13,0.50,0.31}{##1}}}
|
---|
81 | \def\PYG@tok@gp{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.78,0.36,0.04}{##1}}}
|
---|
82 | \def\PYG@tok@o{\def\PYG@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
|
---|
83 | \def\PYG@tok@kr{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.00,0.44,0.13}{##1}}}
|
---|
84 | \def\PYG@tok@s{\def\PYG@tc##1{\textcolor[rgb]{0.25,0.44,0.63}{##1}}}
|
---|
85 | \def\PYG@tok@kp{\def\PYG@tc##1{\textcolor[rgb]{0.00,0.44,0.13}{##1}}}
|
---|
86 | \def\PYG@tok@w{\def\PYG@tc##1{\textcolor[rgb]{0.73,0.73,0.73}{##1}}}
|
---|
87 | \def\PYG@tok@kt{\def\PYG@tc##1{\textcolor[rgb]{0.56,0.13,0.00}{##1}}}
|
---|
88 | \def\PYG@tok@sc{\def\PYG@tc##1{\textcolor[rgb]{0.25,0.44,0.63}{##1}}}
|
---|
89 | \def\PYG@tok@sb{\def\PYG@tc##1{\textcolor[rgb]{0.25,0.44,0.63}{##1}}}
|
---|
90 | \def\PYG@tok@k{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.00,0.44,0.13}{##1}}}
|
---|
91 | \def\PYG@tok@se{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.25,0.44,0.63}{##1}}}
|
---|
92 | \def\PYG@tok@sd{\let\PYG@it=\textit\def\PYG@tc##1{\textcolor[rgb]{0.25,0.44,0.63}{##1}}}
|
---|
93 |
|
---|
94 | \def\PYGZbs{\char`\\}
|
---|
95 | \def\PYGZus{\char`\_}
|
---|
96 | \def\PYGZob{\char`\{}
|
---|
97 | \def\PYGZcb{\char`\}}
|
---|
98 | \def\PYGZca{\char`\^}
|
---|
99 | \def\PYGZsh{\char`\#}
|
---|
100 | \def\PYGZpc{\char`\%}
|
---|
101 | \def\PYGZdl{\char`\$}
|
---|
102 | \def\PYGZti{\char`\~}
|
---|
103 | % for compatibility with earlier versions
|
---|
104 | \def\PYGZat{@}
|
---|
105 | \def\PYGZlb{[}
|
---|
106 | \def\PYGZrb{]}
|
---|
107 | \makeatother
|
---|
108 |
|
---|
109 | \begin{document}
|
---|
110 |
|
---|
111 | \maketitle
|
---|
112 | \tableofcontents
|
---|
113 | \phantomsection\label{index::doc}
|
---|
114 |
|
---|
115 |
|
---|
116 | Contents:
|
---|
117 |
|
---|
118 |
|
---|
119 | \chapter{Introduction}
|
---|
120 | \label{introduction:welcome-to-pyfact-s-documentation}\label{introduction:introduction}\label{introduction::doc}
|
---|
121 | pyfact provides support for analysing FACT data using python. This comprises:
|
---|
122 | \begin{itemize}
|
---|
123 | \item {}
|
---|
124 | classes for accessing and analysing FACT data
|
---|
125 |
|
---|
126 | \item {}
|
---|
127 | tools for specific tasks
|
---|
128 |
|
---|
129 | \item {}
|
---|
130 | general python language support
|
---|
131 |
|
---|
132 | \item {}
|
---|
133 | examples
|
---|
134 |
|
---|
135 | \end{itemize}
|
---|
136 |
|
---|
137 |
|
---|
138 | \chapter{Classes}
|
---|
139 | \label{classes:classes}\label{classes::doc}
|
---|
140 |
|
---|
141 | \section{pyfact.py}
|
---|
142 | \label{classes:pyfact-py}
|
---|
143 |
|
---|
144 | \subsection{rawdata access}
|
---|
145 | \label{classes:rawdata-access}
|
---|
146 |
|
---|
147 | \subsection{fnames of a data run}
|
---|
148 | \label{classes:fnames-of-a-data-run}
|
---|
149 |
|
---|
150 | \chapter{Examples}
|
---|
151 | \label{examples::doc}\label{examples:examples}
|
---|
152 |
|
---|
153 | \section{calling a system command}
|
---|
154 | \label{examples:calling-a-system-command}
|
---|
155 | Using the os module any command executable on the command line can be called within a script. This is in particular true for your own python scripts:
|
---|
156 |
|
---|
157 | \begin{Verbatim}[commandchars=\\\{\}]
|
---|
158 | \PYG{k+kn}{import} \PYG{n+nn}{os}
|
---|
159 | \PYG{n}{os}\PYG{o}{.}\PYG{n}{system}\PYG{p}{(}\PYG{l+s}{'}\PYG{l+s}{echo long listing of dir; pwd; ls -l}\PYG{l+s}{'}\PYG{p}{)}
|
---|
160 | \end{Verbatim}
|
---|
161 |
|
---|
162 | or suppose you created a script my\_script.py:
|
---|
163 |
|
---|
164 | \begin{Verbatim}[commandchars=\\\{\}]
|
---|
165 | \PYG{k+kn}{from} \PYG{n+nn}{os} \PYG{k+kn}{import} \PYG{n}{system}
|
---|
166 | \PYG{n}{system}\PYG{p}{(}\PYG{l+s}{'}\PYG{l+s}{python my\PYGZus{}scrip.py}\PYG{l+s}{'}\PYG{p}{)}
|
---|
167 | \end{Verbatim}
|
---|
168 |
|
---|
169 |
|
---|
170 | \chapter{phyton in FACT}
|
---|
171 | \label{python:phyton-in-fact}\label{python::doc}
|
---|
172 | Python is installed on the fact cluster at ISDC.
|
---|
173 | Presently python 2.4.3 an upgrade, is planned soon.
|
---|
174 |
|
---|
175 | The presence of the following python modules is supposed. They are not part of the standard distribution.:
|
---|
176 | \begin{itemize}
|
---|
177 | \item {}
|
---|
178 | \href{http://numpy.scipy.org/}{numpy}: basis of numerical computation in python
|
---|
179 |
|
---|
180 | \item {}
|
---|
181 | \href{http://www.scipy.org/}{scipy}: scientific computation in python including Fourier transforms, signal processing
|
---|
182 |
|
---|
183 | \item {}
|
---|
184 | \href{http://matplotlib.sourceforge.net/}{matplotlib}: provides a matlab like plotting environment (still missing!!!)
|
---|
185 |
|
---|
186 | \item {}
|
---|
187 | \href{http://www.stsci.edu/institute/software\_hardware/pyfits}{pyfits}: easy access to fits files
|
---|
188 |
|
---|
189 | \end{itemize}
|
---|
190 |
|
---|
191 | Other packages used in pyfact being part of a standard python installation:
|
---|
192 | \begin{itemize}
|
---|
193 | \item {}
|
---|
194 | \href{http://docs.python.org/library/os.html}{os}: misc functions providing access to the operating system. Among others a function \href{http://docs.python.org/library/os.html?highlight=system\#os.system}{system} is provided, allowing to run system commands.
|
---|
195 |
|
---|
196 | \end{itemize}
|
---|
197 |
|
---|
198 |
|
---|
199 | \chapter{Indices and tables}
|
---|
200 | \label{index:indices-and-tables}\begin{itemize}
|
---|
201 | \item {}
|
---|
202 | \emph{genindex}
|
---|
203 |
|
---|
204 | \item {}
|
---|
205 | \emph{modindex}
|
---|
206 |
|
---|
207 | \item {}
|
---|
208 | \emph{search}
|
---|
209 |
|
---|
210 | \end{itemize}
|
---|
211 |
|
---|
212 |
|
---|
213 |
|
---|
214 | \renewcommand{\indexname}{Index}
|
---|
215 | \printindex
|
---|
216 | \end{document}
|
---|