Skip to content

Commit 6cb25ee

Browse files
author
Julian Kates-Harbeck
committed
added many more d3d profile signals
1 parent 83db2b6 commit 6cb25ee

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

data/signals.py

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,24 @@ def fetch_nstx_data(signal_path,shot_num,c):
136136
all_machines = [d3d,jet]
137137

138138
profile_num_channels = 64
139+
#ZIPFIT comes from actual measurements
139140
etemp_profile = ProfileSignal("Electron temperature profile",["ZIPFIT01/PROFILES.ETEMPFIT"],[d3d],causal_shifts=[10],mapping_range=(0,1),num_channels=profile_num_channels,data_avail_tolerance=0.02)
140141
edens_profile = ProfileSignal("Electron density profile",["ZIPFIT01/PROFILES.EDENSFIT"],[d3d],causal_shifts=[10],mapping_range=(0,1),num_channels=profile_num_channels,data_avail_tolerance=0.02)
142+
itemp_profile = ProfileSignal("Ion temperature profile",["ZIPFIT01/PROFILES.ITEMPFIT"],[d3d],causal_shifts=[10],mapping_range=(0,1),num_channels=profile_num_channels,data_avail_tolerance=0.02)
143+
zdens_profile = ProfileSignal("Impurity density profile",["ZIPFIT01/PROFILES.ZDENSFIT"],[d3d],causal_shifts=[10],mapping_range=(0,1),num_channels=profile_num_channels,data_avail_tolerance=0.02)
144+
trot_profile = ProfileSignal("Rotation profile",["ZIPFIT01/PROFILES.TROTFIT"],[d3d],causal_shifts=[10],mapping_range=(0,1),num_channels=profile_num_channels,data_avail_tolerance=0.02)
145+
pthm_profile = ProfileSignal("Thermal pressure profile",["ZIPFIT01/PROFILES.PTHMFIT"],[d3d],causal_shifts=[10],mapping_range=(0,1),num_channels=profile_num_channels,data_avail_tolerance=0.02)# thermal pressure doesn't include fast ions
146+
neut_profile = ProfileSignal("Neutrals profile",["ZIPFIT01/PROFILES.NEUTFIT"],[d3d],causal_shifts=[10],mapping_range=(0,1),num_channels=profile_num_channels,data_avail_tolerance=0.02)
147+
148+
q_profile = ProfileSignal("Q profile",["ZIPFIT01/PROFILES.BOOTSTRAP.QRHO"],[d3d],causal_shifts=[10],mapping_range=(0,1),num_channels=profile_num_channels,data_avail_tolerance=0.02)#compare to just q95
149+
bootstrap_current_profile = ProfileSignal("Rotation profile",["ZIPFIT01/PROFILES.BOOTSTRAP.JBS_SAUTER"],[d3d],causal_shifts=[10],mapping_range=(0,1),num_channels=profile_num_channels,data_avail_tolerance=0.02)
150+
151+
#equilibrium_image = 2DSignal("2D Magnetic Equilibrium",["EFIT01/RESULTS.GEQDSK.PSIRZ"],[d3d],causal_shifts=[10],mapping_range=(0,1),num_channels=profile_num_channels,data_avail_tolerance=0.02)
152+
153+
#EFIT is the inverse problem from external magnetic measurements
154+
#pressure_profile = ProfileSignal("Pressure profile",["EFIT01/RESULTS.GEQDSK.PRES"],[d3d],causal_shifts=[10],mapping_range=(0,1),num_channels=profile_num_channels,data_avail_tolerance=0.02)# pressure might be unphysical since it is not constrained by measurements, only the EFIT which does not know about density and temperature
155+
q_psi_profile = ProfileSignal("Q(psi) profile",["EFIT01/RESULTS.GEQDSK.QPSI"],[d3d],causal_shifts=[10],mapping_range=(0,1),num_channels=profile_num_channels,data_avail_tolerance=0.02)
156+
141157

142158
# epress_profile_spatial = ProfileSignal("Electron pressure profile",["ppf/hrts/pe/"],[jet],causal_shifts=[25],mapping_range=(2,4),num_channels=profile_num_channels)
143159
etemp_profile_spatial = ProfileSignal("Electron temperature profile",["ppf/hrts/te"],[jet],causal_shifts=[25],mapping_range=(2,4),num_channels=profile_num_channels,data_avail_tolerance=0.05)
@@ -193,10 +209,15 @@ def fetch_nstx_data(signal_path,shot_num,c):
193209
'pradcore':pradcore,'pradedge':pradedge,'pradtot':pradtot,
194210
'pin':pin,'torquein':torquein,
195211
'energydt':energydt,
196-
'etemp_profile':etemp_profile,'edens_profile':edens_profile,
197212
'ipdirect':ipdirect,'iptarget':iptarget,'iperr':iperr
198213
#'tmamp1':tmamp1,'tmamp2':tmamp2,'tmfreq1':tmfreq1,'tmfreq2':tmfreq2,'pechin':pechin,
199214
# 'etemp_profile_spatial':etemp_profile_spatial,'edens_profile_spatial':edens_profile_spatial,'etemp':etemp
215+
'etemp_profile':etemp_profile,'edens_profile':edens_profile,
216+
'itemp_profile':itemp_profile,'zdens_profile':zdens_profile,
217+
'trot_profile':trot_profile,'pthm_profile':pthm_profile,
218+
'neut_profile':neut_profile,'q_profile':q_profile,
219+
'bootstrap_current_profile':bootstrap_current_profile,
220+
'q_psi_profile':q_psi_profile
200221
}
201222

202223
#new signals are not downloaded yet

0 commit comments

Comments
 (0)