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

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

Put all the old code in the old_stuff branch.

  • Property svn:executable set to *
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> = 'badc@rl.ac.uk'<br>
63<strong>ADMIN_NOTIFICATION</strong> = 0<br>
64<strong>BASEDIR</strong> = '/usr/local/dx_wv'<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-0.1.1.py'<br>
68<strong>DATASETS</strong> = {'Test Data Group 1': (('Test Dataset 1', '/usr/local/dx_wv/testdata/testdata1.xml', 'dataset1-unused-code'),), 'Test Data Group 2': (('Test Dataset 2', '/usr/local/dx_wv/testdata/testdata2.xml', 'dataset2-unused-code'),), 'Test Data Group 3': (('Test Dataset 3', '/usr/local/dx_wv/testdata/testdata3.xml', 'dataset3-unused-code'),)}<br>
69<strong>DATASET_GROUPS</strong> = {'Test Data Group 1': None, 'Test Data Group 2': None, 'Test Data Group 3': None}<br>
70<strong>DEBUG</strong> = 1<br>
71<strong>EXTRAS_DIR</strong> = '/dx_extra'<br>
72<strong>HTML_DIR</strong> = '/usr/local/dx_wv/html'<br>
73<strong>HTTP_OUTPUT_DIR</strong> = 'http://localhost/output'<br>
74<strong>LEFT_LOGO</strong> = 'dx_logo.jpg'<br>
75<strong>LOCAL_CGI_NAME</strong> = '/srv/www/cgi-bin/dxui-0.1.1.py'<br>
76<strong>LOCAL_MAIL_HOST</strong> = 'outbox.rl.ac.uk'<br>
77<strong>LOCAL_PYTHONPATH</strong> = ['/usr/local/badcdat/lib', '/usr/local/badcdat/lib/python', '/home/tornado/internal/badc/software/pythonlib/badc', '/usr/local/cdat/lib/python2.3', '/usr/local/cdat/lib/python2.3/site-packages', '/usr/local/cdat/lib/python2.3/site-packages/Numeric']<br>
78<strong>LOCAL_RULES</strong> = 0<br>
79<strong>LOGO_DIR</strong> = '/dx_extra/logos'<br>
80<strong>MAP_APPLET</strong> = '/dx_extra/LiveMap_30/extractorMap.html'<br>
81<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>
82<strong>OUTPUT_DIR</strong> = '/srv/www/htdocs/output'<br>
83<strong>OUTPUT_DIR_PERMISSION</strong> = 488<br>
84<strong>OUTPUT_FILE_GROUP</strong> = 'users'<br>
85<strong>OUTPUT_FILE_PERMISSION</strong> = 416<br>
86<strong>OUTPUT_FILE_USER</strong> = 'wwwrun'<br>
87<strong>OUTPUT_FORMATS</strong> = ['NetCDF']<br>
88<strong>PACKAGE_NAME</strong> = 'Data Extractor'<br>
89<strong>REGISTRATION_PAGE</strong> = 'http://badc.nerc.ac.uk/data/list_all_datasets.html?source=home'<br>
90<strong>REQUEST_DIR</strong> = '/usr/local/dx_wv/requests'<br>
91<strong>REQUEST_SIZE_LIMIT</strong> = 100<br>
92<strong>RESTRICTED_DATA</strong> = 0<br>
93<strong>RIGHT_LOGO</strong> = 'dx_logo.jpg'<br>
94<strong>TIMING_SCALE_FACTOR</strong> = 0.001<br>
95<strong>USER_HOMEDIR</strong> = '/var/lib/wwwrun'<br>
96<strong>VISUALISOR_NAME</strong> = '/cgi-bin/splatui-0.1.1.py'</td></tr></table>
97</body></html>
Note: See TracBrowser for help on using the repository browser.