-
Notifications
You must be signed in to change notification settings - Fork 0
/
definitions.py
118 lines (112 loc) · 4.7 KB
/
definitions.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
import os
def define_paths():
# SETTING UP ENVIRONMENT VARIABLES
os.environ["MST-STR-MON-HOME"] = '/lustre/fs23/group/cta/users/vimartin/dish-backup'
os.environ["MST-STR-MON-DATA"] = os.environ["MST-STR-MON-HOME"] + '/rawdata'
os.environ["MST-STR-MON-WEATHERDATA"] = os.environ["MST-STR-MON-HOME"] + '/weather-data'
os.environ["MST-STR-MON-RESULTS"] = '/lustre/fs23/group/cta/users/vimartin/dish-backup/victor-scratch/output'
os.environ["MST-STR-MON-ONEFILERESULTS"] = os.environ["MST-STR-MON-RESULTS"] + '/onefileanalysis'
os.environ["MST-STR-MON-RAWDATAPLOTS"] = os.environ["MST-STR-MON-ONEFILERESULTS"] + '/rawdata'
os.environ["MST-STR-MON-ONEFILEOMA"] = os.environ["MST-STR-MON-ONEFILERESULTS"] + '/analysisresults'
os.environ["MST-STR-MON-WEATHERRESULTS"] = os.environ["MST-STR-MON-ONEFILERESULTS"] + '/weather'
os.environ["MST-STR-MON-MULTIPLEFILESRESULTS"] = os.environ["MST-STR-MON-RESULTS"] + '/multiplefileanalysis'
os.environ["MST-STR-MON-MULTIPLEFILESWEATHERRESULTS"] = os.environ["MST-STR-MON-MULTIPLEFILESRESULTS"] + '/weather'
os.environ["MST-STR-MON-REPORTS"] = os.environ["MST-STR-MON-RESULTS"] + '/reports'
os.environ["MST-STR-MON-DATA-CONVERTED"] = '/lustre/fs23/group/cta/users/vimartin/dish-backup/victor-scratch/data'
os.environ["MST-STR-EMAIL-LIST-FOLDER"] = '/afs/ifh.de/group/hess/scratch/user/vimartin/CTA/mstmonitoring'
# SETTING UP NAMES OF FILES
MERGING = '_files-merged'
RAW_ALL = '_raw-data-all-Ch'
RAW_CH = '_raw-data-Ch'
WIND = '_wind'
TEMPERATURE = '_temp'
PRESSURE = '_pressure'
HUMIDITY = '_humidity'
RAINRATE = '_rain-rate'
FDD = '_FDD-Chs-'
PEAKS = '_peaks'
DECIMATION = '_dec'
CHANNELS_USED = '_Ch.'
MACVALUE_ALL = '_MAC-all'
MACVALUE_SELECTED = '_MAC-selected'
SPECTOGRAM = '_spect-Ch-'
EFDD_FREQ_DAMP = '_EFDD-modal-freqs'
EFDD_MODE_SHAPE = '_EFDD-mode-shapes'
SHIFT = '_shift-Ch-'
SHIFTAVG = '_shift-avg'
LOGDEC = '_log-dec'
ZEROCROSSING = '_zero-cross'
AUTOCORREL = '_auto-correl'
BELLSHAPE = '_bell-shape'
CHISQUARE_FREQ = '_chi-square-freq'
CHISQUARE_MODE_SHAPE = '_chi-square-mode-shape'
CHISQUARE_DAMPING = '_chi-square-damp'
ALLFILES = '_all-files'
SELECTEDFILES = '_selected-files'
CHANGE_FACTOR_FREQ = '_change-factor-freq'
CHANGE_FACTOR_DAMP = '_change-factor-damp'
NUM_CORRELATION = '_num-of-correl'
TRACK_FREQ = '_track-freq'
TRACK_MODE_SHAPE = '_track-mode-shape'
TRACK_DAMP = '_track-damp'
FREQXDAMP = '_freqxdamp'
REPORTS = 'Reports-'
EMAILS_LIST = 'emails-list'
WIND_DAYS = 'wind-days'
#TO USE IN THE LOCAL COMPUTER ONLY
"""import os
def definepaths():
# SETTING UP ENVIRONMENT VARIABLES
os.environ["MST-STR-MON-HOME"] = '/home/vimartin'
os.environ["MST-STR-MON-DATA"] = '/scratch/hadoop/gantner/gerrit'
os.environ["MST-STR-MON-DATA-CONVERTED"] = '/scratch/users/vimartin/data'
os.environ["MST-STR-MON-WEATHERDATA"] = '/home/actlop/WeatherStation/data'
os.environ["MST-STR-MON-RESULTS"] = '/scratch/users/vimartin/output'
os.environ["MST-STR-MON-ONEFILERESULTS"] = os.environ["MST-STR-MON-RESULTS"] + '/onefileanalysis'
os.environ["MST-STR-MON-RAWDATAPLOTS"] = os.environ["MST-STR-MON-ONEFILERESULTS"] + '/rawdata'
os.environ["MST-STR-MON-ONEFILEOMA"] = os.environ["MST-STR-MON-ONEFILERESULTS"] + '/analysisresults'
os.environ["MST-STR-MON-WEATHERRESULTS"] = os.environ["MST-STR-MON-ONEFILERESULTS"] + '/weather'
os.environ["MST-STR-MON-MULTIPLEFILESRESULTS"] = os.environ["MST-STR-MON-RESULTS"] + '/multiplefileanalysis'
os.environ["MST-STR-MON-MULTIPLEFILESWEATHERRESULTS"] = os.environ["MST-STR-MON-MULTIPLEFILESRESULTS"] + '/weather'
os.environ["MST-STR-MON-REPORTS"] = os.environ["MST-STR-MON-RESULTS"] + '/reports'
"""
# SETTING UP NAMES OF FILES
MERGING = '_files-merged'
RAW_ALL = '_raw-data-all-Ch'
RAW_CH = '_raw-data-Ch'
WIND = '_wind'
TEMPERATURE = '_temp'
PRESSURE = '_pressure'
HUMIDITY = '_humidity'
RAINRATE = '_rain-rate'
FDD = '_FDD-Chs-'
PEAKS = '_peaks'
DECIMATION = '_dec'
CHANNELS_USED = '_Ch.'
MACVALUE_ALL = '_MAC-all'
MACVALUE_SELECTED = '_MAC-selected'
SPECTOGRAM = '_spect-Ch-'
EFDD_FREQ_DAMP = '_EFDD-modal-freqs'
EFDD_MODE_SHAPE = '_EFDD-mode-shapes'
SHIFT = '_shift-Ch-'
SHIFTAVG = '_shift-avg'
LOGDEC = '_log-dec'
ZEROCROSSING = '_zero-cross'
AUTOCORREL = '_auto-correl'
BELLSHAPE = '_bell-shape'
CHISQUARE_FREQ = '_chi-square-freq'
CHISQUARE_MODE_SHAPE = '_chi-square-mode-shape'
CHISQUARE_DAMPING = '_chi-square-damp'
ALLFILES = '_all-files'
SELECTEDFILES = '_selected-files'
CHANGE_FACTOR_FREQ = '_change-factor-freq'
CHANGE_FACTOR_DAMP = '_change-factor-damp'
NUM_CORRELATION = '_num-of-correl'
TRACK_FREQ = '_track-freq'
TRACK_MODE_SHAPE = '_track-mode-shape'
TRACK_DAMP = '_track-damp'
FREQXDAMP = '_freqxdamp'
REPORTS = 'Reports-'
EMAILS_LIST = 'emails-list'
WIND_DAYS = 'wind-days'
TEMP_DAYS = 'temp-days'