requestDict
index
/usr/local/dx-0.1.1/requestDict.py

requestDict.py
==============
 
Holds a wrapper class to improve access to request dictionary objects.

 
Modules
       
os
shelve

 
Classes
       
RequestDict

 
class RequestDict
    Class wrapper around request object to group access to certain variables
in the dictionary.
 
  Methods defined here:
__getitem__(self, key)
Method - wrap get item method on the internal dictionary.
__init__(self, requestDict)
Method to create instance pointer to requestDict.
__repr__(self)
Method - wrap print method for the internaldictionary.
getHorizontalBounds(self)
getHorizontalBounds method - returns the tuple of horizontal bounds
or None if they don't exist.
getNumDatasets(self)
Method - returns the current number of datasets selected.
getTemporalDimension(self, dsetNumber)
Method to return the start date time, end date time and time interval (value, units).
getTemporalDimensionOld(self, dsetNumber)
Method to return the start time, end time and time interval (value, units).
getVariableID(self, dsetNumber)
getVariableID method - chops up the variable name we have to create
the variable ID to call in the file.
getVerticalDimension(self, dsetNumber)
getVerticalDimension method - returns the tuple of (level_list, level_units).
has_key(self, key)
Method - wrap has_key method on the internal dictionary.
keys(self)
Method - wrapper for the internal dictionary.

 
Data
        ADMIN_MAIL_ADDRESS = 'yourmail@yourhost'
ADMIN_NOTIFICATION = 0
BASEDIR = '/usr/local/dx'
CDAT_BIN_PATH = '/usr/local/cdat/bin'
CF_METADATA_GLOBAL_ATTRIBUTES = {'comments': 'Created by test data extractor.'}
CF_METADATA_GLOBAL_ATTRIBUTE_KEYS = ['Conventions', 'title', 'source', 'institution', 'history', 'references', 'comment']
CGI_NAME = 'http://localhost/cgi-bin/dxui.py'
CONFIRMATION_PAGE = 1
DEBUG = 1
DOMAIN_PARAMS = ('start_time', 'end_time', 'time_interval', 'horiz_domain', 'resolution', 'vertical_units', 'vertical_domain', 'outputFormat')
EXTRAS_DIR = '/dx_extra'
HORIZ_KEYS = ['northernExtent', 'easternExtent', 'southernExtent', 'westernExtent']
HTML_DIR = '/usr/local/dx/html'
HTTP_HEADER = 'Content-Type: text/html\n\n'
HTTP_OUTPUT_DIR = 'http://localhost/output'
HTTP_REQUEST_XML_DIR = 'http://localhost/request_xmls'
INPUT_DATASETS_FILE = '/usr/local/dx/datasets/inputDatasets.xml'
LEFT_LOGO = 'dx_logo.jpg'
LOCAL_CGI_NAME = '/srv/www/cgi-bin/cgiInterface.py'
LOCAL_MAIL_HOST = 'youroutbox.yourdomain'
LOCAL_PYTHONPATH = ['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']
LOCAL_RULES = 0
LOGO_DIR = '/dx_extra/logos'
MAP_APPLET = '/dx_extra/LiveMap_30/extractorMap.html'
MAX_FILE_SIZE = 1
MAX_NUM_DATASETS = 2
MESSAGE_TO_USERS = 'This is a test version of the Data Extractor so ...error occurs so that we can improve this service.'
NAPPY_PATH = '/usr/local/nappy'
OUTPUT_DIR = '/srv/www/htdocs/output'
OUTPUT_DIR_PERMISSION = 493
OUTPUT_FILE_GROUP = 'users'
OUTPUT_FILE_PERMISSION = 420
OUTPUT_FILE_USER = 'wwwrun'
OUTPUT_FORMATS = ['NetCDF', 'NASA Ames']
PACKAGE_NAME = 'Data Extractor'
PROCESS_LIST_DIR = '/usr/local/dx/processes'
REGISTRATION_PAGE = 'http://yourhost/your_link.html'
REQUEST_DIR = '/usr/local/dx/requests'
REQUEST_SIZE_LIMIT = 100
REQUEST_XML_DIR = '/srv/www/htdocs/request_xmls'
RESTRICTED_DATA = 0
RIGHT_LOGO = 'dx_logo.jpg'
STAGES = ['DatasetGroupPage', 'DatasetPage', 'VariablesPage', 'DomainPage', 'ResultsPage']
TIME_KEYS = ['Year', 'Month', 'Day', 'Hour', 'Minute', 'Second']
TIMING_SCALE_FACTOR = 1.0000000000000001e-05
TOP_LEVEL = 'datasetGroup'
USER_HOMEDIR = '/var/lib/wwwrun'
VISUALISOR_NAME = '/cgi-bin/splatui-0.1.1.py'