Read Bruker raw datacube into numpy
from numpy import *
from matplotlib.pyplot import *
# Read in the raw
x = fromfile('Stack 1 - 360s.raw', dtype='int8')
# reshape to x, y, E
x.shape=(300,300,2048)
# Make integrated image and show it.
y = sum(x, axis=-1)
imshow(y)
show()