Source code for constants

######################################
#    Created on Jun 11, 2015
#
#    @author: nqian
#
#    Module for all constants
######################################

import os
from os.path import expanduser
from sys import platform as _platform

from tools.config import Config


[docs]class Plot(object): baseplot = 0 backscattered = 1 depolarized = 2 vfm = 3 iwp = 4 horiz_avg = 5 aerosol_subtype = 6 colorratio = 8 parallel = 9 not_available = 10
# DEBUG Switch Values # Debug will eventually control the verboseness of the logger.info: # however, during integration testing it is very verbose # 99 = Old versions of everything + vfm and iwp # 0 = New datablock # 1 = verbose logging #10 = Runs the stress_test() functino as opposed to UI debug_switch = 1 plot_type_enum = {'base_plot': Plot.baseplot, 'backscattered': Plot.backscattered, 'depolarized': Plot.depolarized, 'vfm': Plot.vfm, 'iwp': Plot.iwp, 'horiz_avg': Plot.horiz_avg, 'aerosol_subtype':Plot.aerosol_subtype} PLOTS = ['base_plot', 'backscattered', 'depolarized', 'vfm','iwp','horiz_avg','parrallel]'] EFFECT_ON = {'relief': 'sunken'} EFFECT_OFF = {'relief': 'raised'} DATEFORMAT = '%Y-%m-%d %H:%M:%S' HEIGHT = 665 WIDTH = 1265 CHILDWIDTH = 200 CHILDHEIGHT = 350 IMPORTWIDTH = 1000 IMPORTHEIGH = 500 IMADVWIDTH = 400 IMADVHEIGHT = 300 TXT = 0 CSV = 1 # READ ONLY TAGS = ['aerosol', 'aerosol LC', 'clean continental', 'clean marine', 'cloud', 'cloud LC', 'dust', 'polluted continental', 'polluted continental dust', 'polluted dust', 'polluted marine', 'smoke', 'stratospheric layer', 'volcanic plume', 'polar stratospheric cloud'] LOG_FILENAME = 'log/CALIPSO_debug.log' HELP_PAGE = 'http://nasa-develop.github.io/VOCAL/developer_index.html' TIME_VARIANCE = 0.001 ALTITUDE_VARIANCE = 0.3 PATH = '.' HOMEPATH = expanduser('~') # Makes a single persistent instance of the config for VOCAL to grab CONF = Config(PATH + '/dat/config.json') ICO = PATH + '/ico/broadcasting.ico' if _platform == 'linux' or _platform == 'linux2': ICO = '' if os.name == 'posix': EFFECT_ON = {'highlightbackground': 'red'} EFFECT_OFF = {'highlightbackground': 'white'} # Update every term ABOUT = \ "VOCAL v1.17.7\nBeta build\n\n" \ " LaRC Summer 2017 Term\n Project Lead: Collin Pampalone"