-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfname_tds.py
More file actions
497 lines (451 loc) · 24.7 KB
/
fname_tds.py
File metadata and controls
497 lines (451 loc) · 24.7 KB
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
'''
NAME: fname_tds.pro
AUTHOR: swjtang
DATE: 21 May 2021
DESCRIPTION: Returns filenames of TDS .hdf5 files with a single call number
INPUTS: callnumber = the id of the file to be read
full = (optional) returns the filename only if set to 0
'''
import socket
def fname_tds(callnumber, full=1, old=0):
if socket.gethostname() == 'midas':
if old == 1:
datafolder = '/data_old'
else:
datafolder = '/data'
else:
if old == 1:
datafolder = '/data'
else:
datafolder = '/data_new'
# list of directories that store TDS file data
dir1 = '/BAPSF_Data/LaB6_Cathode/HighFreq_FluxRope/'
dir2 = '/BAPSF_Data/LaB6_Cathode/HighFreq_FluxRope2/'
dir3 = '/BAPSF_Data/LaB6_Cathode/TDS_FluxRopes/'
dir4 = '/BAPSF_Data/TDS/May_18/'
dir5 = '/BAPSF_Data/TDS/18_July/'
dir6 = '/BAPSF_Data/TDS/18_Nov/'
dir7 = '/BAPSF_Data/TDS/19_Apr/'
dir8 = '/BAPSF_Data/TDS/19_July/'
dir9 = '/BAPSF_Data/TDS/21_Feb/'
dirA = '/data_old/BAPSF_Data/LaB6_Cathode/FluxRopes_2_14/'
dirS = '/BAPSF_Data/LaB6_Cathode/Single5cmFluxRope/'
filenames = {
'test': [dirS, 'I75_V100_Bz330_B24_B45_M35_Plane_2014_05_24_'
'926AM.hdf5'],
# --------------------------------------------------------------------
# DATARUN 1 (HighFreq_FluxRope1): DEC 2016 - JAN 2017
# --------------------------------------------------------------------
101: [dir1, 'Line_NoFR_EBp40_12_15.hdf5'],
102: [dir1, 'Line_EBp40_12_14.hdf5'],
# SINGLE CHANNEL: 1x51 plane, 100 shots per position
103: [dir1, 'XZ_12_15.hdf5'],
104: [dir1, 'XZ_12_16.hdf5'],
# 103: 41x41 plane, 104: 61x41 plane
# 7 channels, 30 shots per position
# CHANNELS = 0-2: Ex,Ey,Ez mov , 3-5 Ex,Ey,Ez ref, 6= ???
105: [dir1, 'XZ_12_20.hdf5'],
# INCOMPLETE RUN, 51x41 plane
# CHANNELS: 0-5: Vx+/Vx-/Vy+/Vy-/Vz+/Vz- ref, 6: By ref,
# 8-13: Vx+/Vx-/Vy+/Vy-/Vz+/Vz- mov
106: [dir1, 'XY_1_3.hdf5'],
# 17 channels, 21x21 plane, 30 shots per position
# CHANNELS (50 MHz): 0-5: Vx+/Vx-/Vy+/Vy-/Vz+/Vz- mov
# 6-8: Bx/By/Bz ref, 9-11: Bx/By/Bz mov
# 12-17: Vx+/Vx-/Vy+/Vy-/Vz+/Vz- ref
# cant really look at the B-field since the single turn loops
# are damaged
107: [dir1, 'XY_1_4.hdf5'],
108: [dir1, 'XY_1_5.hdf5'],
# files 107/108: 17 channels, 41x41 plane, 30 shots per position
# 107 is a small area near one rope edge
109: [dir1, '01-Efield-plane-NoFR-p33.hdf5'],
110: [dir1, '02-Efield-plane-NoFR-p33-330G.hdf5'],
# --------------------------------------------------------------------
# DATARUN 2 (HighFreq_FluxRope2): 01 MAY - 05 MAY 2017
# --------------------------------------------------------------------
201: [dir2, 'Plane_EP35_B29_May2.hdf5'],
# 8 channels: 0=LaB6 current, 1=diode, 2-4=Bx,By,Bz ref,
# 5-7=Bx,By,Bz mov 29
# use motionid=2
202: [dir2, 'Plane_V32_V33_V35_May4.hdf5'],
# 7 channels: 0=diode, 1=Vmov 32, 2=Vref 33, 3-5=Vx,Vy,Vz 35,
# 6=LaB6 current
# USE TCHANNUM=1 for file202
203: [dir2, 'Lang_line_port42.hdf5'],
# --------------------------------------------------------------------
# DATARUN 3 (TDS_FluxRopes): 28 AUG - 08 SEP 2017
# --------------------------------------------------------------------
# All data was digitized at 3.125 MHz (=100 MHz/32) unless otherwise
# specified. There might have been a 3dB attenuator on the current
# channel, so multiply current by: 10^0.3 (3dB attenuation)
# * 2 (50 ohm impedance) * 2.5e3 (conversion 2.5kA/mV)
# --------------------------------------------------------------------
301: [dir3, '01_Bplane31.hdf5'],
# 301 B-field data plane: 41x41 plane, 15 shots per position
# channel: 0-2=Bx,By,Bz, 3=LaB6 current, 4=LaB6 voltage, 5=Diode28
303: [dir3, '03_Bline31_refprobe.hdf5'],
304: [dir3, '04_Bplane31_refprobe.hdf5'],
306: [dir3, '06_Bplane31_refprobe_coherent.hdf5'],
# 303 Bline: 1x41 line at x=0, 15 shots per position
# 304 & 306 Bplane: 41x41 plane, 15 shots per position
# channel: 0=LaB6 current, 1= LaB6 voltage, 2-4=Bx,By,Bz mov,
# 5-7=Bx,By,Bz fix37
305: [dir3, '05_BrefprobeTest.hdf5'],
# to read this data override 'lapd_6k_configuration.pro L175 with
# [ny=1]'
# tim set a motion list on the run but destroyed the probe motion
# command
307: [dir3, '07_TDSpotentialA1_perp_move3.hdf5'],
# 307 plane: 41x41 plane, 15 shots per position
# channel: 0=LaB6 current, 1=LaB6 voltage, 2= TDS_A2_fix_L,
# 3-4=TDS_A1_mov_LRperp, 5-7= Bx,By,Bz fix37
308: [dir3, '08_TDSpotentialA1_parallel_Bplane31.hdf5'],
# 308 plane: 41x41 plane, 15 shots per position (both)
# board 1 : 0=LaB6 current, 1=LaB6 voltage, 2= TDS_A2_fix_L
# 3-4=TDS_A1_mov_LRparallel, 5-7= Bx,By,Bz fix21
# board 2 : 8-10=Bx,By,Bz mov31
309: [dir3, '09_TDSpotentialA1_parallel_Bplane31_Isatsweep29.hdf5'],
# 309 plane: 41x41 plane, 15 shots per position (all 3)
# board 1 (3.125MHz): 0=LaB6 current (3dB), 1=LaB6 voltage,
# 2= TDS_A2_fix_L, 3-4=TDS_A1_mov_LRparallel, 5-7= Bx,By,Bz fix21
# board 2 (3.125MHz): 8-10=Bx,By,Bz mov31, 11=V_sweep(L),
# 12=I_sweep(L), 13=Isat(R)
# --------------------------------------------------------------------
# DATARUN 4 (May_18): 14 - 21 MAY 2018
# --------------------------------------------------------------------
401: [dir4, '01_Bdot45_Dipole30_plane.hdf5'],
# 401 plane: 41x41 plane, 15 shots per position (0.75cm spacing)
# bfield plane & dipole plane
# board 1 (3.125MHz): 0-2: Bx,By,Bz mov45, 3-5: Bx,By,Bz fix33
# board 2 (50MHz): 6: B1dipole30 left, 7: B1dipole30 right
402: [dir4, '02a_Dipole30_line.hdf5'],
# 402 line sweep of potentials: 41x3 plane, 10 shots per position
# board 2 (digitized 50MHz): 0: B1dipole30 left, 7: B1dipole30 right
# 0.75cm spacing per line, 41 points, 3 lines at -3, 0 and 3 cm
403: [dir4, '02b_Dipole30_line_noLaB6.hdf5'],
# same conditions as 402 but no LaB6 cathode
404: [dir4, '04_Dipole30_line_varyI_1360A.hdf5'],
405: [dir4, '05_Dipole30_line_varyI_1215A.hdf5'],
406: [dir4, '06_Dipole30_line_varyI_1125A.hdf5'],
407: [dir4, '07_Dipole30_line_varyI_985A.hdf5'],
408: [dir4, '08_Dipole30_line_varyI_838A.hdf5'],
410: [dir4, '10_Dipole30_line_varyI_705A.hdf5'],
411: [dir4, '11_Dipole30_line_varyI_565A.hdf5'],
412: [dir4, '12_Dipole30_line_varyI_442A.hdf5'],
413: [dir4, '13_Dipole30_line_varyI_305A.hdf5'],
414: [dir4, '14_Dipole30_line_varyI_240A.hdf5'],
415: [dir4, '15_Dipole30_line_varyI_140A.hdf5'],
# 404-408, 410-415: line sweep of potentials, see how spikes vary
# with discharge current
409: [dir4, '09_Bdot37_Dipole30_plane.hdf5'],
# 409 plane: 41x41 plane, 15 shots per position (0.75cm spacing)
# board 1 (digitized 3.125MHz): 0-2: Bx,By,Bz mov37,
# 3-5: Bx,By,Bz fix33
# board 2 (digitized 50MHz): 6: B1dipole30 left, 7: B1dipole30 right
# NEW FLUX ROPE PARAMETERS 1000G FIELD
420: [dir4, '20_Dipole30_EB27_FR1000G_test.hdf5'],
421: [dir4, '21_Bdot37_Dipole30_EB27.hdf5'],
# 421 plane: 41x41 plane, 15 shots per position (0.75cm spacing)
# board 1 (digitized 3.125MHz): 0-2: Bx,By,Bz mov37,
# 3-5: Bx,By,Bz fix33, 6-7: Port 43/28 diode (10K Ohm)
# board 2 (digitized 50MHz): 8-13: Vx+/Vx-/Vy+/Vy-/Vz+/Vz- EB mov27
# board 3 (digitized 50MHz): 14: B1dipole30 left mov,
# 15: B1dipole30 right mov
422: [dir4, '22_Dipole30_EB27_FR800G_test.hdf5'],
423: [dir4, '23_Dipole30_EB27_FR1000G.hdf5'],
424: [dir4, '24_Dipole30_EB27_FR800G.hdf5'],
425: [dir4, '25_Bdot37_Dipole30_EB27_FR1000G_plane.hdf5'],
# 425 plane: 41x41 plane, 15 shots per position (0.75cm spacing)
# board 1 (digitized 3.125MHz): 0-2: Bx,By,Bz mov37,
# 3-5: Bx,By,Bz fix33, 6: Interferometer32, 7: UV light32 (He2+)
# board 2 (digitized 50MHz): 8-13: Vx+/Vx-/Vy+/Vy-/Vz+/Vz- EB mov27
# board 3 (digitized 50MHz): 14: B1dipole30 left mov,
# 15: B1dipole30 right mov, 16: B3dipole31 left, 17: B3dipole31 right
# 18: LaB6 current, 19:LaB6 voltage
# board 4 (digitized 3.125MHz): 20: Port 33 diode (450 Ohm)
# 21-22: Port 43/28 diode (10K Ohm)
# bdot amplifier changed from 10x to 100x
426: [dir4, '26_Mach32_EB27_FR1000G_bank200V.hdf5'],
427: [dir4, '27_Mach32_EB27_FR1000G_bank175V.hdf5'],
428: [dir4, '28_Mach32_EB27_FR1000G_bank150V.hdf5'],
429: [dir4, '29_Mach32_EB27_FR1000G_bank125V.hdf5'],
430: [dir4, '30_Mach32_EB27_FR1000G_bank100V.hdf5'],
431: [dir4, '31_Mach32_EB27_FR1000G_bank75V.hdf5'],
432: [dir4, '32_Mach32_EB27_FR1000G_bank150V(restart).hdf5'],
433: [dir4, '33_Mach32_EB27_FR1000G_bank175V(restart).hdf5'],
# 426-33 planes: 41x3 plane, 15 shots per position
# (0.75cm spacing in X, 3cm spacing in Y)
# board 1 (digitized 3.125MHz): 0: Interferometer32,
# 1: UV light32 (He2+)
# board 2 (digitized 50MHz): 2-7: Vx+/Vx-/Vy+/Vy-/Vz+/Vz- EB mov27
# board 3 (digitized 50MHz): 8-9: Isat+1/Isat-4 Mach32
# 10: B3dipole31 left, 11: B3dipole31 right, 12: LaB6 current,
# 13: LaB6 voltage, 14: Vfloat Mach32
# board 4 (digitized 3.125MHz): 15: Port 33 diode (450 Ohm)
# 16-17: Port 43/28 diode (10K Ohm)
434: [dir4, '34_Bdot37_Mach32_EB27_FR800G_bank200V.hdf5'],
# !!! Mach32 (Ch 14) failure at (x,y)=(29,7)
# 434 plane: 41x41 plane, 15 shots per position (0.75cm spacing)
# board 1 (digitized 3.125MHz): 0-2: Bx,By,Bz mov37,
# 3-5: Bx,By,Bz fix33, 6: Interferometer32, 7: UV light32 (He2+)
# board 2 (digitized 50MHz): 8-13: Vx+/Vx-/Vy+/Vy-/Vz+/Vz- EB mov27
# board 3 (digitized 50MHz): 14-15: Isat+1/Isat-4 Mach32
# 16: B3dipole31 left, 17: B3dipole31 right, 18: LaB6 current,
# 19:LaB6 voltage, 20: Vfloat Mach32
# board 4 (digitized 3.125MHz): 21: Port 33 diode (450 Ohm)
# 22-23: Port 43/28 diode (10K Ohm)
436: [dir4, '36_Bdot37_Mach32_EB27_FR500G_bank200V_planeII.hdf5'],
# 436 plane: 41x41 plane, 15 shots per position (0.75cm spacing)
# board 1 (digitized 3.125MHz): 0-2: Bx,By,Bz mov37,
# 3-5: Bx,By,Bz fix33, 6: Interferometer32, 7: UV light32 (He2+)
# board 2 (digitized 50MHz): 8-13: Vx+/Vx-/Vy+/Vy-/Vz+/Vz- EB mov27
# board 3 (digitized 50MHz): 14-15: Isat+1/Isat-4 Mach32
# 16: B3dipole31 left, 17: B3dipole31 right, 18: LaB6 current,
# 19:LaB6 voltage, 20: Vfloat Mach32
# board 4 (digitized 3.125MHz): 21: Port 33 diode (450 Ohm)
# 22-23: Port 43/28 diode (10K Ohm)
# INCOMPLETE DATA ----------------------------------------------------
435: [dir4, '35_Bdot37_Mach32_EB27_FR500G_bank200V.hdf5'],
# !!! INCOMPLETE PLANE (stopped after 12/41 lines)
# --------------------------------------------------------------------
# DATARUN 5 (18_July): 07 - 20 JUL 2018
# --------------------------------------------------------------------
# 44x planes: 41x41 plane, 15 shots per position (0.75cm spacing)
# --------------------------------------------------------------------
437: [dir5, 'A1_amplifier_test 2018-07-18.hdf5'],
438: [dir5, 'A2_amplifier_test 2018-07-18.hdf5'],
# bdot planes
440: [dir5, '01_Bmov35_41_45_Bfix30_32 2018-07-07.hdf5'],
# board 1 (3.125MHz): 0-2: Bx,By,Bz fix32 (edge),
# 3-5: Bx,By,Bz fix30 (center)
# board 2 (3.125MHz): 6-8: Bx,By,Bz mov45, 9-11: Bx,By,Bz mov41
# board 3 (3.125MHz): 12-14: Bx,By,Bz mov35
# board 4 (3.125MHz): 15: LaB6 current, 16: LaB6 voltage,
# 17: Port 28 Diode
441: [dir5, '02_Bmov33_41_43_Bfix30_32 2018-07-09.hdf5'],
# board 1 (3.125MHz): 0-2: Bx,By,Bz fix32 (edge),
# 3-5: Bx,By,Bz fix30 (center)
# board 2 (3.125MHz): 6-8: Bx,By,Bz mov43, 9-11: Bx,By,Bz mov41
# board 3 (3.125MHz): 12-14: Bx,By,Bz mov33
# board 4 (3.125MHz): 15: LaB6 current, 16: LaB6 voltage,
# 17: Port 28 Diode
442: [dir5, '03_Bmov29_37_Bfix30_32 2018-07-10.hdf5'],
# board 1 (3.125MHz): 0-2: Bx,By,Bz fix32 (edge),
# 3-5: Bx,By,Bz fix30 (center)
# board 2 (3.125MHz): 6-8: Bx,By,Bz mov37
# board 3 (3.125MHz): 9-11: Bx,By,Bz mov29
# board 4 (3.125MHz): 12: LaB6 current, 13: LaB6 voltage,
# 14: Port 28 Diode
443: [dir5, '04_Bmov29_37_39_Bfix30_32 2018-07-17.hdf5'],
# board 1 (3.125MHz): 0-2: Bx,By,Bz fix32 (edge),
# 3-5: Bx,By,Bz fix30 (center)
# board 2 (3.125MHz): 6-8: Bx,By,Bz mov39, 9-11: Bx,By,Bz mov37
# board 3 (3.125MHz): 12-14: Bx,By,Bz mov29
# board 4 (3.125MHz): 15: LaB6 current, 16: LaB6 voltage,
# 17: Port 28 Diode
444: [dir5, '05_Bmov19_25_27_Bfix30_32 2018-07-18.hdf5'],
# board 1 (3.125MHz): 0-2: Bx,By,Bz fix32 (edge),
# 3-5: Bx,By,Bz fix30 (center)
# board 2 (3.125MHz): 6-8: Bx,By,Bz mov27, 9-11: Bx,By,Bz mov25
# board 3 (3.125MHz): 12-14: Bx,By,Bz mov19
# board 4 (3.125MHz): 15: LaB6 current, 16: LaB6 voltage,
# 17: Port 28 Diode
# linesweeps with varying parameters
450: [dir5, '11_EB34_Bmov27_1000G_940A.hdf5'],
# ch11 died at pos 8, shot 12
451: [dir5, '12_EB34_Bmov27_800G_770A.hdf5'],
452: [dir5, '13_EB34_Bmov27_600G_470A.hdf5'],
453: [dir5, '14_EB34_Bmov27_400G_395A.hdf5'],
454: [dir5, '15_EB34_Bmov27_1000G_940A_plane.hdf5'],
455: [dir5, '16_EB34_Bmov27_1000G_725A.hdf5'],
456: [dir5, '17_EB34_Bmov27_1000G_475A.hdf5'],
# board 1 (3.125MHz): 0-2: Bx,By,Bz fix32 (edge),
# 3-5: Bx,By,Bz fix30 (center)
# board 2 (3.125MHz): 6-8: Bx,By,Bz mov27
# board 3 (3.125MHz): 9: Port28 Diode, 10-11: Vx+/Vx- EB34
# board 4 (3.125MHz): 12: LaB6 current, 13: LaB6 voltage
# --------------------------------------------------------------------
# DATARUN 6 (18_July): (18_Nov): 13 NOV 2018 - ??
# --------------------------------------------------------------------
# see excel file for details (500-533)
501: [dir6, '01_Bmov_40_37_Vfloat_34.hdf5'],
502: [dir6, '02_Bmov_40_37_Vfloat_34.hdf5'],
503: [dir6, '03_Bmov_45_37_Vfloat_34_short.hdf5'],
504: [dir6, '03b_Bmov_45_37_Vfloat_34_short.hdf5'],
505: [dir6, '04_Bmov_45_37_Vfloat_34.hdf5'],
506: [dir6, '05_Bmov27_EB31.hdf5'],
507: [dir6, '06_Bmov27_EB31_short.hdf5'],
510: [dir6, '10_line_Bmov27_EB31_1290A_2018-11-20_16.45.23.hdf5'],
511: [dir6, '11_line_Bmov27_EB31_1440A_2018-11-20_17.23.45.hdf5'],
512: [dir6, '12_line_Bmov27_EB31_900A_2018-11-20_18.53.36.hdf5'],
513: [dir6, '13_line_Bmov27_EB31_540A_2018-11-20_19.40.46.hdf5'],
521: [dir6, '21_line_Bmov27_EB31_1440A_2018-11-20_18.10.25.hdf5'],
530: [dir6, '30_Bmov_33_27_EB31_2018-11-20_21.44.33.hdf5'],
531: [dir6, '31_Bmov_33_27_EB31_short_2018-11-21_14.20.28.hdf5'],
532: [dir6, '32_Bmov_33_27_EB31_1010A_2018-11-21_18.00.40.hdf5'],
533: [dir6, '33_Bmov_33_27_EB31_610A_2018-11-22_13.07.49.hdf5'],
# --------------------------------------------------------------------
# DATARUN 7 (19_Apr): 08 - 14 APR 2019
# --------------------------------------------------------------------
# see excel file for details (551-563)
551: [dir7, '01_Bmov_43_31.hdf5'],
552: [dir7, '02_Bmov_43_31_line.hdf5'],
553: [dir7, '03_Bmov_43_31_line_2.hdf5'],
554: [dir7, '04_TDSdipole38_37_XZ.hdf5'],
555: [dir7, '05_Bmov_43(2).hdf5'],
556: [dir7, '06_TDSdipole38_37_XYZ.hdf5'], # incomplete data run
557: [dir7, '07_TDSdipole38_37_XYZ_1kG.hdf5'],
558: [dir7, '08_Bmov_43_31.hdf5'],
# Bdot corrupted by high freq noise 10x amplifier
559: [dir7, '09_TDSdipole38_37_XYZ_500G.hdf5'],
560: [dir7, '10_Bmov_43_line.hdf5'],
561: [dir7, '11_Bmov_43_31_500G.hdf5'],
562: [dir7, '12_TDSdipole38_37_XYZ_500G_lite.hdf5'],
563: [dir7, '13_Bmov_43_31_500G_lite_restart.hdf5'],
# ---------------------------------------------------------------------
# DATARUN 8 (19_July): 08 - 20 JUL 2019
# --------------------------------------------------------------------
# see excel file for details (600)
601: [dir8, '01_Bmov33_39_Bfix32_41.hdf5'],
602: [dir8, '02_Bmov31_37_Bfix32_42.hdf5'],
603: [dir8, '03_Bmov29_31_Bfix32_42.hdf5'],
'603a': [dir8, '03_amplifier pickup.hdf5'],
604: [dir8, '04_Bmov35_37_Bfix32_42.hdf5'],
'604a': [dir8, '04_amplifier pickup.hdf5'],
605: [dir8, '05_Bmov41_45_Bfix32_42.hdf5'],
606: [dir8, '06_Bmov27_43_Bfix32_42.hdf5'],
'606a': [dir8, '06_amplifier pickup.hdf5'],
607: [dir8, '07_Bmov25_31_Bfix32_42.hdf5'],
621: [dir8, '21_Mach35_41_Bfix32_41.hdf5'],
622: [dir8, '22_Mach33_39_Bfix32_42.hdf5'],
623: [dir8, '23_Mach31_37_Bfix32_42.hdf5'],
624: [dir8, '24_Mach29_45_Bfix32_42.hdf5'],
625: [dir8, '25_Mach27_43_Bmov31_Bfix32_42_aborted.hdf5'],
# ---------------------------------------------------------------------
# DATARUN 9 (21_Feb): 19 FEB - 28 MAR 2021
# --------------------------------------------------------------------
700: [dir9, '00_get_SIScrate_offsets.hdf5'],
701: [dir9, '01_newLaB6_intialize.hdf5'],
702: [dir9, '02_fluxrope_100V_Isat34_Bdot37.hdf5'],
# 702: motionid = 0 is stationary (fix probe on a probe drive)
# bdot data not good
703: [dir9, '03_fluxrope_80V_Isat34_Bdot37.hdf5'],
'704a': [dir9, '04a_fluxrope_120V_Bdot37.hdf5'],
704: [dir9, '04_fluxrope_120V_Isat34_Bdot37.hdf5'],
'705a': [dir9, '05a_fluxrope_120V_Bdot31.hdf5'],
'705b': [dir9, '05b_fluxrope_70V_Bdot31.hdf5'],
'705c': [dir9, '05c_fluxrope_80V_Bdot31.hdf5'],
'705d': [dir9, '05d_fluxrope_90V_Bdot31.hdf5'],
'705e': [dir9, '05e_fluxrope_100V_Bdot31.hdf5'],
'705f': [dir9, '05f_fluxrope_110V_Bdot31.hdf5'],
'705g': [dir9, '05g_fluxrope_130V_Bdot31.hdf5'],
'705h': [dir9, '05h_fluxrope_140V_Bdot31.hdf5'],
706: [dir9, '06_fluxrope_140V_Bdot37.hdf5'],
# 706: motionid = 0 is stationary (fix probe on a probe drive) use 1
707: [dir9, '07_fluxrope_120V_Bdot45.hdf5'],
# -----------------------------------------------------------
710: [dir9, '10_fluxrope_120V_RFEA34.hdf5'],
# 710: (x,y) = 3.41, -0.02 cm
711: [dir9, '11_fluxrope_120V_RFEA34.hdf5'],
# 711: (x,y) = 0, 0 cm
712: [dir9, '12_fluxrope_120V_RFEA34.hdf5'],
# 712: (x,y) = 10, 0 cm
713: [dir9, '13_fluxrope_120V_RFEA34.hdf5'],
714: [dir9, '14_fluxrope_120V_RFEA34_up.hdf5'],
715: [dir9, '15_fluxrope_120V_RFEA34_down.hdf5'],
716: [dir9, '16_fluxrope_120V_RFEA34_NE.hdf5'],
717: [dir9, '17_fluxrope_120V_RFEA34_NW.hdf5'],
719: [dir9, '19_fluxrope_120V_RFEA34_SW.hdf5'],
# Runs 713 - 719: (x,y) = 3.41, -0.02 cm
# 713: face main cathode
# 714: face up, +y
# 715: face down, -y
# 716: face up, towards old LaB6, +y, -z
# 717: face up, towards main LaB6, +y, +z
# There is no run 718.
# 719: face down, towards main LaB6, -y, -z
# -----------------------------------------------------------
'720b': [dir9, '20_fluxrope_120V_RFEA34_line_posy (stopped).hdf5'],
# 720b: Line sweep, stopped midway and had to restart
720: [dir9, '20_fluxrope_120V_RFEA34_line_posy.hdf5'],
# 720: Line sweep, x = 3.41 cm, y = 4, 8, 12, 16 cm
721: [dir9, '21_fluxrope_120V_RFEA34_line_negy.hdf5'],
# 721: Line sweep, x = 3.41 cm, y = -4, -8, -12, -16 cm
722: [dir9, '22_fluxrope_120V_RFEA34_line_posx.hdf5'],
# 722: Line sweep, x = 4, 8, 12, 16 cm, y = 3 cm
'723b': [dir9, '23_fluxrope_120V_RFEA34_line_negx (stopped).hdf5'],
# 723: x = -16 cm, y = 3 cm. Stopped midway had to restart
723: [dir9, '23_fluxrope_120V_RFEA34_line_negx.hdf5'],
# 723: Line sweep, x = 0, -4, -8, -12, y = 3 cm
# -----------------------------------------------------------
724: [dir9, '24_fluxrope_120V_RFEA34_plane_600mV.hdf5'],
725: [dir9, '25_fluxrope_120V_RFEA34_plane_700mV.hdf5'],
726: [dir9, '26_fluxrope_120V_RFEA34_plane_500mV.hdf5'],
727: [dir9, '27_fluxrope_120V_RFEA34_plane_550mV (stopped).hdf5'],
728: [dir9, '28_fluxrope_120V_RFEA34_plane_650mV.hdf5'],
# 724 - 728: 41x41 plane, 100 shots
# run 727 stopped midway, aborted
729: [dir9, '29_fluxrope_80V_RFEA34.hdf5'],
730: [dir9, '30_fluxrope_80V_RFEA34_plane_525mV.hdf5'],
731: [dir9, '31_fluxrope_80V_RFEA34_2point.hdf5'],
# 729 - 731: 80V flux rope discharge
'732b': [dir9, '32_fluxrope_120V_RFEA45 (stopped).hdf5'],
732: [dir9, '32_fluxrope_120V_RFEA45_restart.hdf5'],
733: [dir9, '33_fluxrope_120V_RFEA45_edge_2point.hdf5'],
# 732 - 733: RFEA moved to port 45
734: [dir9, '34_fluxrope_120V_dipole34_plane.hdf5'],
# 734: dipole probe at port 34
735: [dir9, '35_fluxrope_120V_RFEA45_2point.hdf5'],
736: [dir9, '36_fluxrope_120V_RFEA45_plane_600mV.hdf5'],
# 735 - 736: continuation of 732, 733
# May 2021 B-dot run
741: [dir9, '41_fluxrope_Bmov35_Bfix25_line.hdf5'],
742: [dir9, '42_fluxrope_Bmov35_Bfix25_plane.hdf5'],
743: [dir9, '43_fluxrope_Bmov35_Bfix25_line.hdf5'],
744: [dir9, '44_fluxrope_Bmov43_Bfix25_line.hdf5'],
'745a': [dir9, '45_fluxrope_Bmov43_Bfix25_plane_1of6.hdf5'],
'745b': [dir9, '45_fluxrope_Bmov43_Bfix25_plane_2of6.hdf5'],
'745c': [dir9, '45_fluxrope_Bmov43_Bfix25_plane_3of6.hdf5'],
'745d': [dir9, '45_fluxrope_Bmov43_Bfix25_plane_4of6.hdf5'],
'745e': [dir9, '45_fluxrope_Bmov43_Bfix25_plane_5of6.hdf5'],
'745f': [dir9, '45_fluxrope_Bmov43_Bfix25_plane_6of6.hdf5'],
746: [dir9, '46_fluxrope_RFEA30.hdf5'], # no good, data got cut
747: [dir9, '47_fluxrope_RFEA30.hdf5'], # face old LaB6
748: [dir9, '48_fluxrope_RFEA30_Bmov38_Bfix25.hdf5'], # face old LaB6
'749a': [dir9, '49_fluxrope_RFEA30_Bfix38_Bmov25_1of2.hdf5'], # main
'749b': [dir9, '49_fluxrope_RFEA30_Bfix38_Bmov25_2of2.hdf5'],
750: [dir9, '50_fluxrope_RFEA30_Bfix38_Bmov19.hdf5'], # up (+y)
# --------------------------------------------------------------------
# OLD DATARUN (FluxRopes_2_14)
# --------------------------------------------------------------------
'A01': [dirA, 'Emissive_probe_setup 2014-01-30 17.33.32.hdf5'],
'A02': [dirA, 'Emissive_probe_setup.hdf5'],
'A03': [dirA, 'xline_HotSweeps_p19.hdf5'],
'A04': [dirA, 'xline_ColdSweeps_p44.hdf5'],
'A05': [dirA, 'xline_ColdSweeps_p19.hdf5'],
'A06': [dirA, 'xline_HotSweeps_p44.hdf5'],
# the planes of interest with emissive probe
'A10': [dirA, 'Plane_Bp40_Ep30_51x51.hdf5'],
'A11': [dirA, 'Plane_Bp36_Ep31.hdf5'],
'A12': [dirA, 'Plane_Bp34_Ep32.hdf5'],
# A13 good data set, not req to sub mean for B
'A13': [dirA, 'Plane_Bp30_Ep33.hdf5'],
'A14': [dirA, 'Plane_Bp28_Ep33.hdf5'],
'A15': [dirA, 'Plane_Bp24_Ep34.hdf5'],
'A16': [dirA, 'Plane_Bp42_Ep27.hdf5'],
'A17': [dirA, 'Plane_Bp22_Ep19.hdf5'],
'A18': [dirA, 'Plane_Bp20_Ep44.hdf5'],
'A19': [dirA, 'Plane_Ep28.hdf5'],
'A20': [dirA, 'Plane_Bp26_Ep29.hdf5']
}
if filenames.get(callnumber, '') != '':
subdir, fname = filenames.get(callnumber, '')
if full == 0:
return fname
elif subdir in [dirA]:
return subdir + fname
else:
return datafolder + subdir + fname
else:
print('Error: File not found.', callnumber)