ZGainsforth
8/1/2014 - 12:22 AM

Read Bruker raw datacube into numpy

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()