source: TI03-DataExtractor/branches/old_stuff/dx_source/for_usr_local/dx/doc/operations.html @ 793

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI03-DataExtractor/branches/old_stuff/dx_source/for_usr_local/dx/doc/operations.html@793
Revision 793, 6.3 KB checked in by astephen, 13 years ago (diff)

Put all the old code in the old_stuff branch.

Line 
1
2<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
3<html><head><title>Python: module operations</title>
4</head><body bgcolor="#f0f0f8">
5
6<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
7<tr bgcolor="#7799ee">
8<td valign=bottom>&nbsp;<br>
9<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong>operations</strong></big></big></font></td
10><td align=right valign=bottom
11><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/usr/local/dx-0.1.1/operations.py">/usr/local/dx-0.1.1/operations.py</a></font></td></tr></table>
12    <p><tt>operations.py<br>
13=============<br>
14&nbsp;<br>
15Holds&nbsp;the&nbsp;<a href="#Operations">Operations</a>&nbsp;class&nbsp;used&nbsp;to&nbsp;decide&nbsp;and&nbsp;undertake&nbsp;various&nbsp;mathematical<br>
16operations&nbsp;involving&nbsp;two&nbsp;variables.</tt></p>
17<p>
18<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
19<tr bgcolor="#aa55cc">
20<td colspan=3 valign=bottom>&nbsp;<br>
21<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
22   
23<tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
24<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="cdms.html">cdms</a><br>
25</td><td width="25%" valign=top><a href="os.html">os</a><br>
26</td><td width="25%" valign=top><a href="sys.html">sys</a><br>
27</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
28<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
29<tr bgcolor="#ee77aa">
30<td colspan=3 valign=bottom>&nbsp;<br>
31<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
32   
33<tr><td bgcolor="#ee77aa"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
34<td width="100%"><dl>
35<dt><font face="helvetica, arial"><a href="operations.html#Operations">Operations</a>
36</font></dt></dl>
37 <p>
38<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
39<tr bgcolor="#ffc8d8">
40<td colspan=3 valign=bottom>&nbsp;<br>
41<font color="#000000" face="helvetica, arial"><a name="Operations">class <strong>Operations</strong></a></font></td></tr>
42   
43<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
44<td colspan=2><tt>Class&nbsp;to&nbsp;decide&nbsp;which&nbsp;type&nbsp;of&nbsp;operation&nbsp;should&nbsp;be&nbsp;performed&nbsp;and&nbsp;then&nbsp;to&nbsp;<br>
45undertake&nbsp;the&nbsp;operation.<br>&nbsp;</tt></td></tr>
46<tr><td>&nbsp;</td>
47<td width="100%">Methods defined here:<br>
48<dl><dt><a name="Operations-__init__"><strong>__init__</strong></a>(self, opstring, variables)</dt><dd><tt>Method&nbsp;to&nbsp;take&nbsp;in&nbsp;the&nbsp;operation&nbsp;string&nbsp;and&nbsp;map&nbsp;it&nbsp;to&nbsp;an&nbsp;operation&nbsp;using<br>
49variables&nbsp;provided.</tt></dd></dl>
50
51<dl><dt><a name="Operations-processOperation"><strong>processOperation</strong></a>(self)</dt><dd><tt>Method&nbsp;to&nbsp;actually&nbsp;process&nbsp;the&nbsp;operation&nbsp;chosen&nbsp;in&nbsp;_chooseOperation.</tt></dd></dl>
52
53<dl><dt><a name="Operations-v1minusv2"><strong>v1minusv2</strong></a>(self)</dt><dd><tt>Method&nbsp;to&nbsp;subtract&nbsp;var2&nbsp;from&nbsp;var1.</tt></dd></dl>
54
55</td></tr></table></td></tr></table><p>
56<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
57<tr bgcolor="#55aa55">
58<td colspan=3 valign=bottom>&nbsp;<br>
59<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
60   
61<tr><td bgcolor="#55aa55"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
62<td width="100%"><strong>ADMIN_MAIL_ADDRESS</strong> = 'yourmail@yourhost'<br>
63<strong>ADMIN_NOTIFICATION</strong> = 0<br>
64<strong>BASEDIR</strong> = '/usr/local/dx'<br>
65<strong>CDAT_BIN_PATH</strong> = '/usr/local/cdat/bin'<br>
66<strong>CF_METADATA_GLOBAL_ATTRIBUTES</strong> = {'comments': 'Created by test data extractor.'}<br>
67<strong>CGI_NAME</strong> = 'http://localhost/cgi-bin/dxui.py'<br>
68<strong>CONFIRMATION_PAGE</strong> = 1<br>
69<strong>DEBUG</strong> = 1<br>
70<strong>EXTRAS_DIR</strong> = '/dx_extra'<br>
71<strong>HTML_DIR</strong> = '/usr/local/dx/html'<br>
72<strong>HTTP_OUTPUT_DIR</strong> = 'http://localhost/output'<br>
73<strong>HTTP_REQUEST_XML_DIR</strong> = 'http://localhost/request_xmls'<br>
74<strong>INPUT_DATASETS_FILE</strong> = '/usr/local/dx/datasets/inputDatasets.xml'<br>
75<strong>LEFT_LOGO</strong> = 'dx_logo.jpg'<br>
76<strong>LOCAL_CGI_NAME</strong> = '/srv/www/cgi-bin/cgiInterface.py'<br>
77<strong>LOCAL_MAIL_HOST</strong> = 'youroutbox.yourdomain'<br>
78<strong>LOCAL_PYTHONPATH</strong> = ['YOUR_CDAT/lib/python2.4', 'YOUR_CDAT/lib/python2.4/site-packages', 'YOUR_CDAT/cdat/lib/python2.4/site-packages/Numeric', 'YOUR_CDAT/lib/python2.3', 'YOUR_CDAT/lib/python2.3/site-packages', 'YOUR_CDAT/cdat/lib/python2.3/site-packages/Numeric']<br>
79<strong>LOCAL_RULES</strong> = 0<br>
80<strong>LOGO_DIR</strong> = '/dx_extra/logos'<br>
81<strong>MAP_APPLET</strong> = '/dx_extra/LiveMap_30/extractorMap.html'<br>
82<strong>MAX_FILE_SIZE</strong> = 1<br>
83<strong>MAX_NUM_DATASETS</strong> = 2<br>
84<strong>MESSAGE_TO_USERS</strong> = 'This is a test version of the Data Extractor so ...error occurs so that we can improve this service.'<br>
85<strong>NAPPY_PATH</strong> = '/usr/local/nappy'<br>
86<strong>OUTPUT_DIR</strong> = '/srv/www/htdocs/output'<br>
87<strong>OUTPUT_DIR_PERMISSION</strong> = 493<br>
88<strong>OUTPUT_FILE_GROUP</strong> = 'users'<br>
89<strong>OUTPUT_FILE_PERMISSION</strong> = 420<br>
90<strong>OUTPUT_FILE_USER</strong> = 'wwwrun'<br>
91<strong>OUTPUT_FORMATS</strong> = ['NetCDF', 'NASA Ames']<br>
92<strong>PACKAGE_NAME</strong> = 'Data Extractor'<br>
93<strong>PROCESS_LIST_DIR</strong> = '/usr/local/dx/processes'<br>
94<strong>REGISTRATION_PAGE</strong> = 'http://yourhost/your_link.html'<br>
95<strong>REQUEST_DIR</strong> = '/usr/local/dx/requests'<br>
96<strong>REQUEST_SIZE_LIMIT</strong> = 100<br>
97<strong>REQUEST_XML_DIR</strong> = '/srv/www/htdocs/request_xmls'<br>
98<strong>RESTRICTED_DATA</strong> = 0<br>
99<strong>RIGHT_LOGO</strong> = 'dx_logo.jpg'<br>
100<strong>TIMING_SCALE_FACTOR</strong> = 1.0000000000000001e-05<br>
101<strong>TOP_LEVEL</strong> = 'datasetGroup'<br>
102<strong>USER_HOMEDIR</strong> = '/var/lib/wwwrun'<br>
103<strong>VISUALISOR_NAME</strong> = '/cgi-bin/splatui-0.1.1.py'</td></tr></table>
104</body></html>
Note: See TracBrowser for help on using the repository browser.