Exemplo n.º 1
0
elif platform == "win32":
    print 'Runing EvtBrowser in Windows platform'

ports = []
'''load config file'''
suncasa_dir = os.path.expandvars("${SUNCASA}") + '/'
DButil.initconfig(suncasa_dir)
'''load config file'''
config_main = DButil.loadjsonfile(suncasa_dir + 'DataBrowser/config.json')

database_dir = os.path.expandvars(
    config_main['datadir']['database']) + '/aiaBrowserData/'
if not os.path.exists(database_dir):
    os.makedirs(database_dir)

SDOdir = DButil.getSDOdir(config_main, database_dir, suncasa_dir)
print SDOdir
if not os.path.exists(SDOdir):
    os.makedirs(SDOdir)

YY_select_st = Select(
    title="Start Time: Year",
    value="2014",
    options=['{:04d}'.format(ll) for ll in range(2010, 2025)],
    width=config_main['plot_config']['tab_aiaBrowser']['YY_select_wdth'])
MM_select_st = Select(
    title="Month",
    value="01",
    options=['{:02d}'.format(ll) for ll in range(1, 13)],
    width=config_main['plot_config']['tab_aiaBrowser']['MM_select_wdth'])
DD_select_st = Select(
Exemplo n.º 2
0
            .format(ll))
        os.system(
            'port=($(lsof -i tcp:{}|grep Google |cut -f2 -d" ")); [[ -n "$port" ]] && kill -9 $port'
            .format(ll))
elif platform == "win32":
    print 'Runing QLook in Windows platform'
'''load config file'''
suncasa_dir = os.path.expandvars("${SUNCASA}") + '/'
DButil.initconfig(suncasa_dir)
'''load config file'''
config_main = DButil.loadjsonfile(suncasa_dir + 'DataBrowser/config.json')
database_dir = config_main['datadir']['database']
database_dir = os.path.expandvars(database_dir) + '/'
config_EvtID = DButil.loadjsonfile(
    '{}config_EvtID_curr.json'.format(database_dir))
SDOdir = DButil.getSDOdir(config_main, database_dir + '/aiaBrowserData/',
                          suncasa_dir)
spec_square_rs_tmax = config_main['plot_config']['tab_FSview_base'][
    'spec_square_rs_tmax']
spec_square_rs_fmax = config_main['plot_config']['tab_FSview_base'][
    'spec_square_rs_fmax']
spec_image_rs_ratio = config_main['plot_config']['tab_FSview_base'][
    'spec_image_rs_ratio']

# do_spec_regrid = False
'''define the colormaps'''
colormap_jet = cm.get_cmap("jet")  # choose any matplotlib colormap here
bokehpalette_jet = [
    colors.rgb2hex(m) for m in colormap_jet(np.arange(colormap_jet.N))
]
colormap = cm.get_cmap("cubehelix")  # choose any matplotlib colormap here
bokehpalette_SynthesisImg = [