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

import les5

In [2]:
bits = les5.generate_bits_from_symbolsf32(np.fromfile('symbols_20200402.f32', dtype = 'float32'))
frames = np.array(list(les5.generate_frames(bits)))

In [3]:
for frameno in range(4):
    plt.figure(figsize = (14,14), facecolor = 'w')
    plt.imshow(frames[les5.frame_number(frames) == frameno], aspect = 0.1, interpolation = 'nearest')
    plt.title(f'Frame type {frameno}')



In [4]:
field_0_56 = np.packbits(frames[les5.frame_number(frames) == 0][:,56:64], axis = 1).ravel()

In [5]:
plt.plot(field_0_56[:100], '.-')


Out[5]:
[<matplotlib.lines.Line2D at 0x7f2577efbac8>]

In [6]:
plt.plot(field_0_56[:1000])


Out[6]:
[<matplotlib.lines.Line2D at 0x7f2577ef1b70>]

In [7]:
field_2_56 = np.packbits(frames[les5.frame_number(frames) == 2][:,56:64], axis = 1).ravel()

In [8]:
plt.plot(field_2_56[:100], '.-')


Out[8]:
[<matplotlib.lines.Line2D at 0x7f2577e5b390>]

In [9]:
plt.plot(field_2_56[:1000])


Out[9]:
[<matplotlib.lines.Line2D at 0x7f2577dc0898>]

In [10]:
field_2_80 = np.packbits(frames[les5.frame_number(frames) == 2][:,80:88], axis = 1).ravel()

In [11]:
plt.plot(field_2_80[:100])


Out[11]:
[<matplotlib.lines.Line2D at 0x7f2577d370b8>]

In [12]:
plt.plot(field_2_80[:1000])


Out[12]:
[<matplotlib.lines.Line2D at 0x7f2577d0d518>]