mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2025-06-06 21:00:41 +02:00
added sample data files
This commit is contained in:
parent
2bc6e16887
commit
137c29c52e
BIN
data/jungfrau_double_d0_f0_0.raw
Normal file
BIN
data/jungfrau_double_d0_f0_0.raw
Normal file
Binary file not shown.
BIN
data/jungfrau_double_d0_f1_0.raw
Normal file
BIN
data/jungfrau_double_d0_f1_0.raw
Normal file
Binary file not shown.
BIN
data/jungfrau_double_d0_f2_0.raw
Normal file
BIN
data/jungfrau_double_d0_f2_0.raw
Normal file
Binary file not shown.
BIN
data/jungfrau_double_d0_f3_0.raw
Normal file
BIN
data/jungfrau_double_d0_f3_0.raw
Normal file
Binary file not shown.
BIN
data/jungfrau_double_d1_f0_0.raw
Normal file
BIN
data/jungfrau_double_d1_f0_0.raw
Normal file
Binary file not shown.
BIN
data/jungfrau_double_d1_f1_0.raw
Normal file
BIN
data/jungfrau_double_d1_f1_0.raw
Normal file
Binary file not shown.
BIN
data/jungfrau_double_d1_f2_0.raw
Normal file
BIN
data/jungfrau_double_d1_f2_0.raw
Normal file
Binary file not shown.
BIN
data/jungfrau_double_d1_f3_0.raw
Normal file
BIN
data/jungfrau_double_d1_f3_0.raw
Normal file
Binary file not shown.
BIN
data/jungfrau_single_d0_f0_0.raw
Normal file
BIN
data/jungfrau_single_d0_f0_0.raw
Normal file
Binary file not shown.
BIN
data/jungfrau_single_d0_f1_0.raw
Normal file
BIN
data/jungfrau_single_d0_f1_0.raw
Normal file
Binary file not shown.
BIN
data/jungfrau_single_d0_f2_0.raw
Normal file
BIN
data/jungfrau_single_d0_f2_0.raw
Normal file
Binary file not shown.
BIN
data/jungfrau_single_d0_f3_0.raw
Normal file
BIN
data/jungfrau_single_d0_f3_0.raw
Normal file
Binary file not shown.
@ -28,21 +28,11 @@ frames = 3
|
|||||||
|
|
||||||
data = np.zeros((frames,rows,cols), dtype = np.uint16)
|
data = np.zeros((frames,rows,cols), dtype = np.uint16)
|
||||||
header = np.zeros(frames, dtype = header_dt)
|
header = np.zeros(frames, dtype = header_dt)
|
||||||
for file_id in range(4):
|
with open('jungfrau_single_d0_f0_0.raw') as f:
|
||||||
file_name = 'jungfrau_single_d0_f{}_0.raw'.format(file_id)
|
for i in range(frames):
|
||||||
print("Reading file:", file_name)
|
header[i] = np.fromfile(f, dtype=header_dt, count = 1)
|
||||||
with open(file_name) as f:
|
data[i] = np.fromfile(f, dtype=np.uint16,count = rows*cols).reshape(rows,cols)
|
||||||
for i in range(frames if file_id != 3 else 1):
|
|
||||||
header[i] = np.fromfile(f, dtype=header_dt, count = 1)
|
|
||||||
data[i] = np.fromfile(f, dtype=np.uint16,count = rows*cols).reshape(rows,cols)
|
|
||||||
|
|
||||||
|
fig, ax = plt.subplots()
|
||||||
for i in range(frames if file_id != 3 else 1 ):
|
im = ax.imshow(data[0])
|
||||||
print("frame:",i)
|
im.set_clim(2000,4000)
|
||||||
print(data[i][0,0],data[i][0,1],data[i][1,0],data[i][rows-1,cols-1])
|
|
||||||
print("")
|
|
||||||
|
|
||||||
|
|
||||||
#fig, ax = plt.subplots()
|
|
||||||
#im = ax.imshow(data[0])
|
|
||||||
#im.set_clim(2000,4000)
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user