-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdatabase_settings.py
50 lines (46 loc) · 2.04 KB
/
database_settings.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
import numpy as np
# must be lowercase (does comparison of the lowercased version to this)
# signal names that are integers, e.g. waveforms in PCS.
# code will take mode in the averaging interval rather than mean
modal_sig_names=['dsifbonoff']
thomson_mds_scale={'density': 1e19, 'temp': 1e3}
thomson_pcs_scale={'density': 1, 'temp': 1}
thomson_mds_areas=['CORE','TANGENTIAL','DIVERTOR']
thomson_pcs_areas=['CORE']
cer_scale={'temp': 1e3, 'rot': 1}
cer_areas=['TANGENTIAL', 'VERTICAL']
cer_channels_realtime={'TANGENTIAL': np.arange(5,25), #np.arange(1,33); np.arange(5,25) for realtime
'VERTICAL': []} #np.arange(1,49); [] for realtime
cer_channels_all={'TANGENTIAL': np.arange(1,33),
'VERTICAL': np.arange(1,49)}
thomson_pcs_max_channels={'CORE': np.arange(50),
'DIVERTOR': [],
'TANGENTIAL': []}
thomson_pcs_area_mapping={'CORE': 'cor', 'TANGENTIAL': 'tan', 'DIVERTOR': 'div'}
thomson_pcs_signal_mapping={'density': 'ne', 'temp': 'te'}
zipfit_pairs={'cer_temp': 'itempfit',
'cer_rot': 'trotfit',
'thomson_temp': 'etempfit',
'thomson_density': 'edensfit'}
# our PCS algo stuff
etemp_sigs=['etstein', 'etsnein','etscrin', 'etsctin','etsinq', 'etsinprs',
'etsteout', 'etsneout', 'etsqout', 'etsprsout',
'etste', 'etsne','etscr','etsct']
pcs_length={sig_name: np.arange(0,33) for sig_name in etemp_sigs}
for sig in ['ftscrot','ftscpsin','ftsc1v1d']:
pcs_length[sig]=np.arange(1,16)
for sig in ['ftsspsin','pftssrot','ftsspsin','ftssmhat']:
pcs_length[sig]=np.arange(1,76)
for sig in ['ftstemp','ftsterr','ftsdens','ftsnerr','ftspsin','ftsrho']:
pcs_length[sig]=np.arange(1,82)
for sig in ['ftxfitne','ftxfitte']:
pcs_length[sig]=121
# {'zipfit_trotfit': 'rotation',
# 'zipfit_itempfit': 'itemp',
# 'zipfit_etempfit': 'temp',
# 'zipfit_edensfit': 'dens',
# 'qpsi': 'q',
# 'pres': 'press',
# 'ipsiptargt': 'curr_target',
# 'ip': 'curr',
# }