Skip to content

Commit 20b0b3a

Browse files
author
Menlo Innovations - CAVA Project
committed
Merge branch 'main' into 2382
2 parents ca62010 + cfdf0f4 commit 20b0b3a

25 files changed

Lines changed: 878 additions & 176 deletions

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v2.3.0
4+
hooks: [ ]
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
NAME,DATA_TYPE,Data shape,CATDESC,VAR_TYPE,DEPEND_0,DEPEND_1,DEPEND_2,DEPEND_3,DISPLAY_TYPE,FIELDNAM,FORMAT,LABLAXIS,UNITS,VALIDMIN,VALIDMAX,FILLVAL,LABL_PTRS,UNIT_PTR,SCALETYP,SCAL_PTR,VAR_NOTES,TIME_BASE,TIME_SCALE,LEAP_SECONDS_INCLUDED,ABSOLUTE_ERROR,AVG_TYPE,BIN_LOCATION,DELTA_PLUS_VAR,DELTA_MINUS_VAR,DERIVN,DICT_KEY,MONOTON,SCALEMIN,SCALEMAX,REFERENCE_POSITION,RELATIVE_ERROR,RESOLUTION,SI_CONVERSION
2+
epoch,int64,epoch,"Time, number of nanoseconds since J2000 with leap seconds included",support_data,,,,,no_plot,epoch,,epoch,ns,1990-01-01T00:00:00.000000000,2099-12-31T00:00:00.000000000,9999-12-31T23:59:59.999999999,,,linear,,,J2000,Terrestrial Time,,,,,epoch_delta,epoch_delta,,,INCREASE,,,Rotating Earth Geoid,,,
3+
epoch_delta,int64,epoch_delta,epoch_delta,support_data,,,,,no_plot,epoch_delta,,epoch_delta,ns,1990-01-01T00:00:00.000000000,2099-12-31T00:00:00.000000000,9999-12-31T23:59:59.999999999,,,linear,,,J2000,Terrestrial Time,,,,,,,,,INCREASE,,,Rotating Earth Geoid,,,
4+
charge,float64,"(epoch, charge)",charge,data,epoch,,,,time_series,charge,,Charge,MeV,0,200,-1.00E+31,,,linear,,,,,,,,,,,,,,,,,,,
5+
energy,float64,"(epoch, energy)",energy,data,epoch,,,,time_series,energy,,Energy,MeV,1,10000,-1.00E+31,,,log,,,,,,,,,,,,,,,,,,,
6+
energy_at_detector,float64,"(epoch, detector_id, energy_at_detector)",energy_at_detector,data,epoch,detector_id,,,no_plot,energy_at_detector,,,,1,10000,-1.00E+31,,,log,,,,,,,,,,,,,,,,,,,
7+
range,int8,"(epoch, range)",range,data,epoch,,,,no_plot,range,,,,0,4,255,,,,,,,,,,,,,,,,,,,,,,
8+
delta_e,float64,"(epoch, delta_e)",delta_e,data,epoch,,,,time_series,delta_e,,Delta E,MeV,1,10000,-1.00E+31,,,log,,,,,,,,,,,,,,,,,,,
9+
e_prime,float64,"(epoch, e_prime)",e_prime,data,epoch,,,,time_series,e_prime,,E Prime,MeV,1,10000,-1.00E+31,,,log,,,,,,,,,,,,,,,,,,,
10+
particle_id,uint8,"(epoch, particle_id)",particle_id,data,epoch,,,,no_plot,particle_id,,,,0,255,65535,,,,,,,,,,,,,,,,,,,,,,
11+
priority_buffer_number,int8,"(epoch, priority_buffer_number)",priority_buffer_number,data,epoch,,,,no_plot,priority_buffer_number,,,,0,254,255,,,,,,,,,,,,,,,,,,,,,,
12+
latency,int8,"(epoch, latency)",latency,data,epoch,,,,no_plot,latency,,,,0,16,255,,,,,,,,,,,,,,,,,,,,,,
13+
stim_tag,int8,"(epoch, stim_tag)",stim_tag,data,epoch,,,,no_plot,stim_tag,,,,0,1,-1.28E+02,,,,,,,,,,,,,,,,,,,,,,
14+
long_event_flag,int8,"(epoch, long_event_flag)",long_event_flag,data,epoch,,,,no_plot,long_event_flag,,,,0,1,-1.28E+02,,,,,,,,,,,,,,,,,,,,,,
15+
haz_tag,int8,"(epoch, haz_tag)",haz_tag,data,epoch,,,,no_plot,haz_tag,,,,0,1,-1.28E+02,,,,,,,,,,,,,,,,,,,,,,
16+
side,int8,"(epoch, a_b_side)",a_b_side,data,epoch,,,,no_plot,a_b_side,,,,0,1,-1.28E+02,,,,,,,,,,,,,,,,,,,,,,
17+
has_unread_flag,int8,"(epoch, has_unread_flag)",has_unread_flag,data,epoch,,,,no_plot,has_unread_flag,,,,0,1,-1.28E+02,,,,,,,,,,,,,,,,,,,,,,
18+
culling_flag,int8,"(epoch, culling_flag)",culling_flag,data,epoch,,,,no_plot,culling_flag,,,,0,1,-1.28E+02,,,,,,,,,,,,,,,,,,,,,,
19+
pha_value,uint16,"(epoch, detector_id, pha_value)",pha_value,data,epoch,detector_id,,,no_plot,pha_value,,,,0,65534,65535,,,,,,,,,,,,,,,,,,,,,,
20+
is_low_gain,int8,"(epoch, detector_id, is_low_gain)",is_low_gain,data,epoch,detector_id,,,no_plot,is_low_gain,,,,0,1,-128,,,,,,,,,,,,,,,,,,,,,,
21+
detector_flags,uint16,"(epoch, detector_flags)",detector_flags,data,epoch,,,,no_plot,detector_flags,,,,0,65534,65535,,,,,,,,,,,,,,,,,,,,,,
22+
deindex,uint16,"(epoch, deindex)",deindex,data,epoch,,,,no_plot,deindex,,,,0,65534,65535,,,,,,,,,,,,,,,,,,,,,,
23+
epindex,uint16,"(epoch, epindex)",epindex,data,epoch,,,,no_plot,epindex,,,,0,65534,65535,,,,,,,,,,,,,,,,,,,,,,
24+
stim_gain,int8,"(epoch, stim_gain)",stim_gain,data,epoch,,,,no_plot,stim_gain,,,,0,1,-128,,,,,,,,,,,,,,,,,,,,,,
25+
a_l_stim,int8,"(epoch, a_l_stim)",a_l_stim,data,epoch,,,,no_plot,a_l_stim,,,,0,1,-128,,,,,,,,,,,,,,,,,,,,,,
26+
stim_step,int8,"(epoch, stim_step)",stim_step,data,epoch,,,,no_plot,stim_step,,,,0,254,255,,,,,,,,,,,,,,,,,,,,,,
27+
dac_value,uint16,"(epoch, dac_value)",dac_value,data,epoch,,,,no_plot,dac_value,,,,0,10000,65535,,,,,,,,,,,,,,,,,,,,,,
28+
detector_id,int8,"(epoch, detector_id)",index used to support up to 64 detector addresses per event,support_data,,,,,no_plot,detector_id,,,,0,64,255,,,,,,,,,,,,,,,,,,,,,,

environment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ channels:
33
- conda-forge
44
dependencies:
55
- python>=3.12
6-
- healpy
6+
- pyhdf
77
- scipy=1.13.1
88
- pip
99
- pip:
Lines changed: 299 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,299 @@
1+
epoch:
2+
CATDESC: Time, number of nanoseconds since J2000 with leap seconds included
3+
VAR_TYPE: support_data
4+
DISPLAY_TYPE: no_plot
5+
FIELDNAM: epoch
6+
LABLAXIS: epoch
7+
UNITS: ns
8+
VALIDMIN: 1990-01-01T00:00:00.000000000
9+
VALIDMAX: 2099-12-31T00:00:00.000000000
10+
FILLVAL: 9999-12-31T23:59:59.999999999
11+
SCALETYP: linear
12+
TIME_BASE: J2000
13+
TIME_SCALE: Terrestrial Time
14+
DELTA_PLUS_VAR: epoch_delta
15+
DELTA_MINUS_VAR: epoch_delta
16+
MONOTON: INCREASE
17+
REFERENCE_POSITION: Rotating Earth Geoid
18+
19+
epoch_delta:
20+
CATDESC: epoch_delta
21+
VAR_TYPE: support_data
22+
DISPLAY_TYPE: no_plot
23+
FIELDNAM: epoch_delta
24+
LABLAXIS: epoch_delta
25+
UNITS: ns
26+
VALIDMIN: 1990-01-01T00:00:00.000000000
27+
VALIDMAX: 2099-12-31T00:00:00.000000000
28+
FILLVAL: 9999-12-31T23:59:59.999999999
29+
SCALETYP: linear
30+
TIME_BASE: J2000
31+
TIME_SCALE: Terrestrial Time
32+
MONOTON: INCREASE
33+
REFERENCE_POSITION: Rotating Earth Geoid
34+
35+
charge:
36+
CATDESC: charge
37+
VAR_TYPE: data
38+
DEPEND_0: epoch
39+
DISPLAY_TYPE: time_series
40+
FIELDNAM: charge
41+
LABLAXIS: Charge
42+
UNITS: MeV
43+
VALIDMIN: 0
44+
VALIDMAX: 200
45+
FILLVAL: -1.00E+31
46+
SCALETYP: linear
47+
48+
energy:
49+
CATDESC: energy
50+
VAR_TYPE: data
51+
DEPEND_0: epoch
52+
DISPLAY_TYPE: time_series
53+
FIELDNAM: energy
54+
LABLAXIS: Energy
55+
UNITS: MeV
56+
VALIDMIN: 1
57+
VALIDMAX: 10000
58+
FILLVAL: -1.00E+31
59+
SCALETYP: log
60+
61+
energy_at_detector:
62+
CATDESC: energy_at_detector
63+
VAR_TYPE: data
64+
DEPEND_0: epoch
65+
DEPEND_1: detector_id
66+
DISPLAY_TYPE: no_plot
67+
FIELDNAM: energy_at_detector
68+
VALIDMIN: 1
69+
VALIDMAX: 10000
70+
FILLVAL: -1.00E+31
71+
SCALETYP: log
72+
73+
range:
74+
CATDESC: range
75+
VAR_TYPE: data
76+
DEPEND_0: epoch
77+
DISPLAY_TYPE: no_plot
78+
FIELDNAM: range
79+
VALIDMIN: 0
80+
VALIDMAX: 4
81+
FILLVAL: 255
82+
83+
delta_e:
84+
CATDESC: delta_e
85+
VAR_TYPE: data
86+
DEPEND_0: epoch
87+
DISPLAY_TYPE: time_series
88+
FIELDNAM: delta_e
89+
LABLAXIS: Delta E
90+
UNITS: MeV
91+
VALIDMIN: 1
92+
VALIDMAX: 10000
93+
FILLVAL: -1.00E+31
94+
SCALETYP: log
95+
96+
e_prime:
97+
CATDESC: e_prime
98+
VAR_TYPE: data
99+
DEPEND_0: epoch
100+
DISPLAY_TYPE: time_series
101+
FIELDNAM: e_prime
102+
LABLAXIS: E Prime
103+
UNITS: MeV
104+
VALIDMIN: 1
105+
VALIDMAX: 10000
106+
FILLVAL: -1.00E+31
107+
SCALETYP: log
108+
109+
particle_id:
110+
CATDESC: particle_id
111+
VAR_TYPE: data
112+
DEPEND_0: epoch
113+
DISPLAY_TYPE: no_plot
114+
FIELDNAM: particle_id
115+
VALIDMIN: 0
116+
VALIDMAX: 255
117+
FILLVAL: 65535
118+
119+
priority_buffer_number:
120+
CATDESC: priority_buffer_number
121+
VAR_TYPE: data
122+
DEPEND_0: epoch
123+
DISPLAY_TYPE: no_plot
124+
FIELDNAM: priority_buffer_number
125+
VALIDMIN: 0
126+
VALIDMAX: 254
127+
FILLVAL: 255
128+
129+
latency:
130+
CATDESC: latency
131+
VAR_TYPE: data
132+
DEPEND_0: epoch
133+
DISPLAY_TYPE: no_plot
134+
FIELDNAM: latency
135+
VALIDMIN: 0
136+
VALIDMAX: 16
137+
FILLVAL: 255
138+
139+
stim_tag:
140+
CATDESC: stim_tag
141+
VAR_TYPE: data
142+
DEPEND_0: epoch
143+
DISPLAY_TYPE: no_plot
144+
FIELDNAM: stim_tag
145+
VALIDMIN: 0
146+
VALIDMAX: 1
147+
FILLVAL: -1.28E+02
148+
149+
long_event_flag:
150+
CATDESC: long_event_flag
151+
VAR_TYPE: data
152+
DEPEND_0: epoch
153+
DISPLAY_TYPE: no_plot
154+
FIELDNAM: long_event_flag
155+
VALIDMIN: 0
156+
VALIDMAX: 1
157+
FILLVAL: -1.28E+02
158+
159+
haz_tag:
160+
CATDESC: haz_tag
161+
VAR_TYPE: data
162+
DEPEND_0: epoch
163+
DISPLAY_TYPE: no_plot
164+
FIELDNAM: haz_tag
165+
VALIDMIN: 0
166+
VALIDMAX: 1
167+
FILLVAL: -1.28E+02
168+
169+
side:
170+
CATDESC: a_b_side
171+
VAR_TYPE: data
172+
DEPEND_0: epoch
173+
DISPLAY_TYPE: no_plot
174+
FIELDNAM: a_b_side
175+
VALIDMIN: 0
176+
VALIDMAX: 1
177+
FILLVAL: -1.28E+02
178+
179+
has_unread_flag:
180+
CATDESC: has_unread_flag
181+
VAR_TYPE: data
182+
DEPEND_0: epoch
183+
DISPLAY_TYPE: no_plot
184+
FIELDNAM: has_unread_flag
185+
VALIDMIN: 0
186+
VALIDMAX: 1
187+
FILLVAL: -1.28E+02
188+
189+
culling_flag:
190+
CATDESC: culling_flag
191+
VAR_TYPE: data
192+
DEPEND_0: epoch
193+
DISPLAY_TYPE: no_plot
194+
FIELDNAM: culling_flag
195+
VALIDMIN: 0
196+
VALIDMAX: 1
197+
FILLVAL: -1.28E+02
198+
199+
pha_value:
200+
CATDESC: pha_value
201+
VAR_TYPE: data
202+
DEPEND_0: epoch
203+
DEPEND_1: detector_id
204+
DISPLAY_TYPE: no_plot
205+
FIELDNAM: pha_value
206+
VALIDMIN: 0
207+
VALIDMAX: 65534
208+
FILLVAL: 65535
209+
210+
is_low_gain:
211+
CATDESC: is_low_gain
212+
VAR_TYPE: data
213+
DEPEND_0: epoch
214+
DEPEND_1: detector_id
215+
DISPLAY_TYPE: no_plot
216+
FIELDNAM: is_low_gain
217+
VALIDMIN: 0
218+
VALIDMAX: 1
219+
FILLVAL: -128
220+
221+
detector_flags:
222+
CATDESC: detector_flags
223+
VAR_TYPE: data
224+
DEPEND_0: epoch
225+
DISPLAY_TYPE: no_plot
226+
FIELDNAM: detector_flags
227+
VALIDMIN: 0
228+
VALIDMAX: 65534
229+
FILLVAL: 65535
230+
231+
deindex:
232+
CATDESC: deindex
233+
VAR_TYPE: data
234+
DEPEND_0: epoch
235+
DISPLAY_TYPE: no_plot
236+
FIELDNAM: deindex
237+
VALIDMIN: 0
238+
VALIDMAX: 65534
239+
FILLVAL: 65535
240+
241+
epindex:
242+
CATDESC: epindex
243+
VAR_TYPE: data
244+
DEPEND_0: epoch
245+
DISPLAY_TYPE: no_plot
246+
FIELDNAM: epindex
247+
VALIDMIN: 0
248+
VALIDMAX: 65534
249+
FILLVAL: 65535
250+
251+
stim_gain:
252+
CATDESC: stim_gain
253+
VAR_TYPE: data
254+
DEPEND_0: epoch
255+
DISPLAY_TYPE: no_plot
256+
FIELDNAM: stim_gain
257+
VALIDMIN: 0
258+
VALIDMAX: 1
259+
FILLVAL: -128
260+
261+
a_l_stim:
262+
CATDESC: a_l_stim
263+
VAR_TYPE: data
264+
DEPEND_0: epoch
265+
DISPLAY_TYPE: no_plot
266+
FIELDNAM: a_l_stim
267+
VALIDMIN: 0
268+
VALIDMAX: 1
269+
FILLVAL: -128
270+
271+
stim_step:
272+
CATDESC: stim_step
273+
VAR_TYPE: data
274+
DEPEND_0: epoch
275+
DISPLAY_TYPE: no_plot
276+
FIELDNAM: stim_step
277+
VALIDMIN: 0
278+
VALIDMAX: 254
279+
FILLVAL: 255
280+
281+
dac_value:
282+
CATDESC: dac_value
283+
VAR_TYPE: data
284+
DEPEND_0: epoch
285+
DISPLAY_TYPE: no_plot
286+
FIELDNAM: dac_value
287+
VALIDMIN: 0
288+
VALIDMAX: 10000
289+
FILLVAL: 65535
290+
291+
detector_id:
292+
CATDESC: index used to support up to 64 detector addresses per event
293+
VAR_TYPE: support_data
294+
DISPLAY_TYPE: no_plot
295+
FIELDNAM: detector_id
296+
VALIDMIN: 0
297+
VALIDMAX: 64
298+
FILLVAL: 255
299+

0 commit comments

Comments
 (0)