In [1]:
%pylab inline
import numpy as np
from matplotlib import pyplot as plt


Populating the interactive namespace from numpy and matplotlib

In [12]:
data_type = np.dtype('>i2')

In [52]:
# 17368 records of file 1
num_records_first_file = 24274
terminator = num_records_first_file*1024

In [56]:
# Read in file
num_channels = 64
a = np.fromfile('raw.dat', dtype=data_type).reshape(-1, 64)

In [64]:
plt.figure(figsize=(13, 8))
w = 5000
p = plot(a[terminator-w:terminator+w, :])
ylim(-10000, 10000)


Out[64]:
(-10000, 10000)

In [ ]:
print(a)

In [ ]: