Loading Raw Ephys Data (AP and LFP band)
Raw electrophysiology data recorded using spikeglx and compressed using mtscomp
Relevant datasets
The raw data comprises 3 files: * \_spikeglx_ephysData*.cbin
the compressed raw binary * \_spikeglx_ephysData*.meta
the metadata file from spikeglx * \_spikeglx_ephysData*.ch
the compression header containing chunks address in the file
The raw data is compressed with a lossless compression algorithm in chunks of 1 second each. This allows to retrieve parts of the data without having to uncompress the whole file. We recommend using the spikeglx.Reader
module from ibl-neuropixel repository
Full information about the compression and tool in mtscomp repository
Loading
Option 1: Stream snippets of raw ephys data
This is a useful option if you are interested to perform analysis on a chunk of data of smaller duration than the whole recording, as it will take less time to download. Data snippets can be loaded in chunks of 1-second, i.e. you can load at minimum 1 second of raw data, and any multiplier of such chunk length (for example 4 or 92 seconds).
[2]:
from one.api import ONE
from brainbox.io.spikeglx import Streamer
one = ONE()
pid = 'da8dfec1-d265-44e8-84ce-6ae9c109b8bd'
time0 = 100 # timepoint in recording to stream
time_win = 1 # number of seconds to stream
band = 'ap' # either 'ap' or 'lf'
sr = Streamer(pid=pid, one=one, remove_cached=False, typ=band)
s0 = time0 * sr.fs
tsel = slice(int(s0), int(s0) + int(time_win * sr.fs))
# Important: remove sync channel from raw data, and transpose
raw = sr[tsel, :-sr.nsync].T
/home/runner/Downloads/ONE/openalyx.internationalbrainlab.org/hoferlab/Subjects/SWC_043/2020-09-21/001/raw_ephys_data/probe00/_spikeglx_ephysData_g0_t0.imec0.ap.ch: 100%|██████████| 133k/133k [00:00<00:00, 954kB/s]
/home/runner/Downloads/ONE/openalyx.internationalbrainlab.org/hoferlab/Subjects/SWC_043/2020-09-21/001/raw_ephys_data/probe00/_spikeglx_ephysData_g0_t0.imec0.ap.meta: 100%|██████████| 17.8k/17.8k [00:00<00:00, 361kB/s]
Downloading: /home/runner/Downloads/ONE/openalyx.internationalbrainlab.org/cache/ap/hoferlab/Subjects/SWC_043/2020-09-21/001/raw_ephys_data/probe00/chunk_000100_to_000101/_spikeglx_ephysData_g0_t0.imec0.ap.94285bfd-7500-4583-83b1-906c420cc667.cbin Bytes: 16204478
100%|██████████| 15.453794479370117/15.453794479370117 [00:01<00:00, 13.45it/s]
Note:
the transpose (
.T
) for internal representation of theraw
data. On disk, the data is sorted by time sample first, channel second; this is not desirable for pre-processing as time samples are not contiguous.This is why our internal representation for the raw data (i.e. dimensions used when working with such data) is[number of channels, number of samples]
, in Python c-ordering, the time samples are contiguous in memory.the raw data will contain the synching channels (i.e. the voltage information contained on the analog and digital DAQ channels, that mark events in the task notably). You need to remove them before wanting to use solely the raw ephys data (e.g. for plotting or exploring).
Option 2: Download all of raw ephys data
Warning.
The raw ephys data is very large and downloading will take a long period of time.
[ ]:
from one.api import ONE
import spikeglx
one = ONE()
pid = 'da8dfec1-d265-44e8-84ce-6ae9c109b8bd'
eid, probe = one.pid2eid(pid)
band = 'ap' # either 'ap','lf'
# Find the relevant datasets and download them
dsets = one.list_datasets(eid, collection=f'raw_ephys_data/{probe}', filename='*.lf.*')
data_files, _ = one.load_datasets(eid, dsets, download_only=True)
bin_file = next(df for df in data_files if df.suffix == '.cbin')
# Use spikeglx reader to read in the whole raw data
sr = spikeglx.Reader(bin_file)
print(sr.shape)
More details
Useful modules
viewephys to visualise raw data snippets (Note: this package is not within
ibllib
but standalone)
Exploring raw ephys data
Example 1: Destripe AP data
This is very important to do prior to using the raw data, as it removes artifacts (see our Spikesorting white paper for details).
[3]:
from neurodsp.voltage import destripe
# Reminder : If not done before, remove first the sync channel from raw data
# Apply destriping algorithm to data
destriped = destripe(raw, fs=sr.fs)
To view and explore the raw ephys data, we recommend you use the viewephys tool.
[ ]:
%gui qt
from viewephys.gui import viewephys
v_raw = viewephys(raw, fs=sr.fs)
v_des = viewephys(destriped, fs=sr.fs)
# You will then be able to zoom in, adjust the gain etc - see README for details
For the sake of presenting the data pre and post destriping as part of this tutorial, we are using an alternative plotting method (matplotlib
).
[4]:
from ibllib.plots import Density
import matplotlib.pyplot as plt
DISPLAY_TIME = 0.05 # second
SAMPLE_SKIP = 200 # Skip beginning for show, otherwise blurry due to filtering edge effect
MIN_X = -0.00011
MAX_X = -MIN_X
# Shorten and transpose the data for plotting
X = destriped[:, :int(DISPLAY_TIME * sr.fs)].T
Xs = X[SAMPLE_SKIP:].T # Remove artifact at begining
Tplot = Xs.shape[1]/sr.fs
X_raw = raw[:, :int(DISPLAY_TIME * sr.fs)].T
Xs_raw = X_raw[SAMPLE_SKIP:].T # Remove artifact at begining
# Plot
fig, axs = plt.subplots(nrows=1, ncols=2)
i_plt = 0
d0 = Density(-Xs_raw, fs=sr.fs, taxis=1, ax=axs[i_plt], vmin=MIN_X, vmax=MAX_X, cmap='Greys')
axs[i_plt].title.set_text('Raw ephys data')
axs[i_plt].set_xlim((0, Tplot * 1e3))
axs[i_plt].set_ylabel('Channels')
i_plt = 1
d1 = Density(-Xs, fs=sr.fs, taxis=1, ax=axs[i_plt], vmin=MIN_X, vmax=MAX_X, cmap='Greys')
axs[i_plt].title.set_text('Destriped ephys data')
axs[i_plt].set_xlim((0, Tplot * 1e3))
axs[i_plt].set_ylabel('')
Out[4]:
Text(0, 0.5, '')

Example 2: Stream LFP data around task event
The example downloads a 1-second snippet of raw LF data ; all that needs setting as parameters are the time0
(the time of the even of interest), the band
(LFP), and the duration time_win
(1 second).
[5]:
eid, probe = one.pid2eid(pid)
stimOn_times = one.load_object(eid, 'trials', collection='alf')['stimOn_times']
event_no = 100
# Get the 1s of LFP data around time point of interest
time0 = stimOn_times[event_no] # timepoint in recording to stream
time_win = 1 # number of seconds to stream
band = 'lf' # either 'ap' or 'lf'
sr = Streamer(pid=pid, one=one, remove_cached=False, typ=band)
s0 = time0 * sr.fs
tsel = slice(int(s0), int(s0) + int(time_win * sr.fs))
# remove sync channel from raw data
raw = sr[tsel, :-sr.nsync].T
# apply destriping algorithm to data
destriped = destripe(raw, fs=sr.fs)
/home/runner/Downloads/ONE/openalyx.internationalbrainlab.org/hoferlab/Subjects/SWC_043/2020-09-21/001/raw_ephys_data/probe00/_spikeglx_ephysData_g0_t0.imec0.lf.ch: 100%|██████████| 123k/123k [00:00<00:00, 1.17MB/s]
/home/runner/Downloads/ONE/openalyx.internationalbrainlab.org/hoferlab/Subjects/SWC_043/2020-09-21/001/raw_ephys_data/probe00/_spikeglx_ephysData_g0_t0.imec0.lf.meta: 100%|██████████| 14.0k/14.0k [00:00<00:00, 194kB/s]
Downloading: /home/runner/Downloads/ONE/openalyx.internationalbrainlab.org/cache/lf/hoferlab/Subjects/SWC_043/2020-09-21/001/raw_ephys_data/probe00/chunk_000689_to_000690/_spikeglx_ephysData_g0_t0.imec0.lf.99c957a8-f664-463b-afae-a1ba570a85b2.cbin Bytes: 1133084
100%|██████████| 1.0805931091308594/1.0805931091308594 [00:00<00:00, 2.42it/s]
Get the probe geometry
Using the eid
and probe
information
[6]:
from brainbox.io.one import load_channel_locations
channels = load_channel_locations(eid, probe)
print(channels[probe].keys())
# Use the axial and lateral coordinates ; Print example first 4 channels
print(channels[probe]["axial_um"][0:4])
print(channels[probe]["lateral_um"][0:4])
dict_keys(['x', 'y', 'z', 'acronym', 'atlas_id', 'axial_um', 'lateral_um'])
[20. 20. 40. 40.]
[43. 11. 59. 27.]
Using the reader and the .cbin
file
[7]:
# You would have loaded the bin file as per the loading example above
# sr = spikeglx.Reader(bin_file)
sr.geometry
2023-10-24 13:57:28.628 WARNING [spikeglx.py: 541] Meta data doesn't have geometry (snsShankMap/snsGeomMap field), returning defaults
Out[7]:
{'ind': array([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12,
13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25,
26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38,
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51,
52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77,
78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90,
91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103,
104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116,
117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129,
130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142,
143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155,
156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168,
169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181,
182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194,
195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207,
208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220,
221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233,
234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246,
247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259,
260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272,
273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285,
286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298,
299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311,
312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324,
325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337,
338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350,
351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363,
364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376,
377, 378, 379, 380, 381, 382, 383]),
'row': array([ 0., 0., 1., 1., 2., 2., 3., 3., 4., 4., 5.,
5., 6., 6., 7., 7., 8., 8., 9., 9., 10., 10.,
11., 11., 12., 12., 13., 13., 14., 14., 15., 15., 16.,
16., 17., 17., 18., 18., 19., 19., 20., 20., 21., 21.,
22., 22., 23., 23., 24., 24., 25., 25., 26., 26., 27.,
27., 28., 28., 29., 29., 30., 30., 31., 31., 32., 32.,
33., 33., 34., 34., 35., 35., 36., 36., 37., 37., 38.,
38., 39., 39., 40., 40., 41., 41., 42., 42., 43., 43.,
44., 44., 45., 45., 46., 46., 47., 47., 48., 48., 49.,
49., 50., 50., 51., 51., 52., 52., 53., 53., 54., 54.,
55., 55., 56., 56., 57., 57., 58., 58., 59., 59., 60.,
60., 61., 61., 62., 62., 63., 63., 64., 64., 65., 65.,
66., 66., 67., 67., 68., 68., 69., 69., 70., 70., 71.,
71., 72., 72., 73., 73., 74., 74., 75., 75., 76., 76.,
77., 77., 78., 78., 79., 79., 80., 80., 81., 81., 82.,
82., 83., 83., 84., 84., 85., 85., 86., 86., 87., 87.,
88., 88., 89., 89., 90., 90., 91., 91., 92., 92., 93.,
93., 94., 94., 95., 95., 96., 96., 97., 97., 98., 98.,
99., 99., 100., 100., 101., 101., 102., 102., 103., 103., 104.,
104., 105., 105., 106., 106., 107., 107., 108., 108., 109., 109.,
110., 110., 111., 111., 112., 112., 113., 113., 114., 114., 115.,
115., 116., 116., 117., 117., 118., 118., 119., 119., 120., 120.,
121., 121., 122., 122., 123., 123., 124., 124., 125., 125., 126.,
126., 127., 127., 128., 128., 129., 129., 130., 130., 131., 131.,
132., 132., 133., 133., 134., 134., 135., 135., 136., 136., 137.,
137., 138., 138., 139., 139., 140., 140., 141., 141., 142., 142.,
143., 143., 144., 144., 145., 145., 146., 146., 147., 147., 148.,
148., 149., 149., 150., 150., 151., 151., 152., 152., 153., 153.,
154., 154., 155., 155., 156., 156., 157., 157., 158., 158., 159.,
159., 160., 160., 161., 161., 162., 162., 163., 163., 164., 164.,
165., 165., 166., 166., 167., 167., 168., 168., 169., 169., 170.,
170., 171., 171., 172., 172., 173., 173., 174., 174., 175., 175.,
176., 176., 177., 177., 178., 178., 179., 179., 180., 180., 181.,
181., 182., 182., 183., 183., 184., 184., 185., 185., 186., 186.,
187., 187., 188., 188., 189., 189., 190., 190., 191., 191.]),
'shank': array([0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]),
'col': array([2, 0, 3, 1, 2, 0, 3, 1, 2, 0, 3, 1, 2, 0, 3, 1, 2, 0, 3, 1, 2, 0,
3, 1, 2, 0, 3, 1, 2, 0, 3, 1, 2, 0, 3, 1, 2, 0, 3, 1, 2, 0, 3, 1,
2, 0, 3, 1, 2, 0, 3, 1, 2, 0, 3, 1, 2, 0, 3, 1, 2, 0, 3, 1, 2, 0,
3, 1, 2, 0, 3, 1, 2, 0, 3, 1, 2, 0, 3, 1, 2, 0, 3, 1, 2, 0, 3, 1,
2, 0, 3, 1, 2, 0, 3, 1, 2, 0, 3, 1, 2, 0, 3, 1, 2, 0, 3, 1, 2, 0,
3, 1, 2, 0, 3, 1, 2, 0, 3, 1, 2, 0, 3, 1, 2, 0, 3, 1, 2, 0, 3, 1,
2, 0, 3, 1, 2, 0, 3, 1, 2, 0, 3, 1, 2, 0, 3, 1, 2, 0, 3, 1, 2, 0,
3, 1, 2, 0, 3, 1, 2, 0, 3, 1, 2, 0, 3, 1, 2, 0, 3, 1, 2, 0, 3, 1,
2, 0, 3, 1, 2, 0, 3, 1, 2, 0, 3, 1, 2, 0, 3, 1, 2, 0, 3, 1, 2, 0,
3, 1, 2, 0, 3, 1, 2, 0, 3, 1, 2, 0, 3, 1, 2, 0, 3, 1, 2, 0, 3, 1,
2, 0, 3, 1, 2, 0, 3, 1, 2, 0, 3, 1, 2, 0, 3, 1, 2, 0, 3, 1, 2, 0,
3, 1, 2, 0, 3, 1, 2, 0, 3, 1, 2, 0, 3, 1, 2, 0, 3, 1, 2, 0, 3, 1,
2, 0, 3, 1, 2, 0, 3, 1, 2, 0, 3, 1, 2, 0, 3, 1, 2, 0, 3, 1, 2, 0,
3, 1, 2, 0, 3, 1, 2, 0, 3, 1, 2, 0, 3, 1, 2, 0, 3, 1, 2, 0, 3, 1,
2, 0, 3, 1, 2, 0, 3, 1, 2, 0, 3, 1, 2, 0, 3, 1, 2, 0, 3, 1, 2, 0,
3, 1, 2, 0, 3, 1, 2, 0, 3, 1, 2, 0, 3, 1, 2, 0, 3, 1, 2, 0, 3, 1,
2, 0, 3, 1, 2, 0, 3, 1, 2, 0, 3, 1, 2, 0, 3, 1, 2, 0, 3, 1, 2, 0,
3, 1, 2, 0, 3, 1, 2, 0, 3, 1]),
'x': array([43, 11, 59, 27, 43, 11, 59, 27, 43, 11, 59, 27, 43, 11, 59, 27, 43,
11, 59, 27, 43, 11, 59, 27, 43, 11, 59, 27, 43, 11, 59, 27, 43, 11,
59, 27, 43, 11, 59, 27, 43, 11, 59, 27, 43, 11, 59, 27, 43, 11, 59,
27, 43, 11, 59, 27, 43, 11, 59, 27, 43, 11, 59, 27, 43, 11, 59, 27,
43, 11, 59, 27, 43, 11, 59, 27, 43, 11, 59, 27, 43, 11, 59, 27, 43,
11, 59, 27, 43, 11, 59, 27, 43, 11, 59, 27, 43, 11, 59, 27, 43, 11,
59, 27, 43, 11, 59, 27, 43, 11, 59, 27, 43, 11, 59, 27, 43, 11, 59,
27, 43, 11, 59, 27, 43, 11, 59, 27, 43, 11, 59, 27, 43, 11, 59, 27,
43, 11, 59, 27, 43, 11, 59, 27, 43, 11, 59, 27, 43, 11, 59, 27, 43,
11, 59, 27, 43, 11, 59, 27, 43, 11, 59, 27, 43, 11, 59, 27, 43, 11,
59, 27, 43, 11, 59, 27, 43, 11, 59, 27, 43, 11, 59, 27, 43, 11, 59,
27, 43, 11, 59, 27, 43, 11, 59, 27, 43, 11, 59, 27, 43, 11, 59, 27,
43, 11, 59, 27, 43, 11, 59, 27, 43, 11, 59, 27, 43, 11, 59, 27, 43,
11, 59, 27, 43, 11, 59, 27, 43, 11, 59, 27, 43, 11, 59, 27, 43, 11,
59, 27, 43, 11, 59, 27, 43, 11, 59, 27, 43, 11, 59, 27, 43, 11, 59,
27, 43, 11, 59, 27, 43, 11, 59, 27, 43, 11, 59, 27, 43, 11, 59, 27,
43, 11, 59, 27, 43, 11, 59, 27, 43, 11, 59, 27, 43, 11, 59, 27, 43,
11, 59, 27, 43, 11, 59, 27, 43, 11, 59, 27, 43, 11, 59, 27, 43, 11,
59, 27, 43, 11, 59, 27, 43, 11, 59, 27, 43, 11, 59, 27, 43, 11, 59,
27, 43, 11, 59, 27, 43, 11, 59, 27, 43, 11, 59, 27, 43, 11, 59, 27,
43, 11, 59, 27, 43, 11, 59, 27, 43, 11, 59, 27, 43, 11, 59, 27, 43,
11, 59, 27, 43, 11, 59, 27, 43, 11, 59, 27, 43, 11, 59, 27, 43, 11,
59, 27, 43, 11, 59, 27, 43, 11, 59, 27]),
'y': array([ 20., 20., 40., 40., 60., 60., 80., 80., 100.,
100., 120., 120., 140., 140., 160., 160., 180., 180.,
200., 200., 220., 220., 240., 240., 260., 260., 280.,
280., 300., 300., 320., 320., 340., 340., 360., 360.,
380., 380., 400., 400., 420., 420., 440., 440., 460.,
460., 480., 480., 500., 500., 520., 520., 540., 540.,
560., 560., 580., 580., 600., 600., 620., 620., 640.,
640., 660., 660., 680., 680., 700., 700., 720., 720.,
740., 740., 760., 760., 780., 780., 800., 800., 820.,
820., 840., 840., 860., 860., 880., 880., 900., 900.,
920., 920., 940., 940., 960., 960., 980., 980., 1000.,
1000., 1020., 1020., 1040., 1040., 1060., 1060., 1080., 1080.,
1100., 1100., 1120., 1120., 1140., 1140., 1160., 1160., 1180.,
1180., 1200., 1200., 1220., 1220., 1240., 1240., 1260., 1260.,
1280., 1280., 1300., 1300., 1320., 1320., 1340., 1340., 1360.,
1360., 1380., 1380., 1400., 1400., 1420., 1420., 1440., 1440.,
1460., 1460., 1480., 1480., 1500., 1500., 1520., 1520., 1540.,
1540., 1560., 1560., 1580., 1580., 1600., 1600., 1620., 1620.,
1640., 1640., 1660., 1660., 1680., 1680., 1700., 1700., 1720.,
1720., 1740., 1740., 1760., 1760., 1780., 1780., 1800., 1800.,
1820., 1820., 1840., 1840., 1860., 1860., 1880., 1880., 1900.,
1900., 1920., 1920., 1940., 1940., 1960., 1960., 1980., 1980.,
2000., 2000., 2020., 2020., 2040., 2040., 2060., 2060., 2080.,
2080., 2100., 2100., 2120., 2120., 2140., 2140., 2160., 2160.,
2180., 2180., 2200., 2200., 2220., 2220., 2240., 2240., 2260.,
2260., 2280., 2280., 2300., 2300., 2320., 2320., 2340., 2340.,
2360., 2360., 2380., 2380., 2400., 2400., 2420., 2420., 2440.,
2440., 2460., 2460., 2480., 2480., 2500., 2500., 2520., 2520.,
2540., 2540., 2560., 2560., 2580., 2580., 2600., 2600., 2620.,
2620., 2640., 2640., 2660., 2660., 2680., 2680., 2700., 2700.,
2720., 2720., 2740., 2740., 2760., 2760., 2780., 2780., 2800.,
2800., 2820., 2820., 2840., 2840., 2860., 2860., 2880., 2880.,
2900., 2900., 2920., 2920., 2940., 2940., 2960., 2960., 2980.,
2980., 3000., 3000., 3020., 3020., 3040., 3040., 3060., 3060.,
3080., 3080., 3100., 3100., 3120., 3120., 3140., 3140., 3160.,
3160., 3180., 3180., 3200., 3200., 3220., 3220., 3240., 3240.,
3260., 3260., 3280., 3280., 3300., 3300., 3320., 3320., 3340.,
3340., 3360., 3360., 3380., 3380., 3400., 3400., 3420., 3420.,
3440., 3440., 3460., 3460., 3480., 3480., 3500., 3500., 3520.,
3520., 3540., 3540., 3560., 3560., 3580., 3580., 3600., 3600.,
3620., 3620., 3640., 3640., 3660., 3660., 3680., 3680., 3700.,
3700., 3720., 3720., 3740., 3740., 3760., 3760., 3780., 3780.,
3800., 3800., 3820., 3820., 3840., 3840.]),
'sample_shift': array([0. , 0. , 0.07692308, 0.07692308, 0.15384615,
0.15384615, 0.23076923, 0.23076923, 0.30769231, 0.30769231,
0.38461538, 0.38461538, 0.46153846, 0.46153846, 0.53846154,
0.53846154, 0.61538462, 0.61538462, 0.69230769, 0.69230769,
0.76923077, 0.76923077, 0.84615385, 0.84615385, 0. ,
0. , 0.07692308, 0.07692308, 0.15384615, 0.15384615,
0.23076923, 0.23076923, 0.30769231, 0.30769231, 0.38461538,
0.38461538, 0.46153846, 0.46153846, 0.53846154, 0.53846154,
0.61538462, 0.61538462, 0.69230769, 0.69230769, 0.76923077,
0.76923077, 0.84615385, 0.84615385, 0. , 0. ,
0.07692308, 0.07692308, 0.15384615, 0.15384615, 0.23076923,
0.23076923, 0.30769231, 0.30769231, 0.38461538, 0.38461538,
0.46153846, 0.46153846, 0.53846154, 0.53846154, 0.61538462,
0.61538462, 0.69230769, 0.69230769, 0.76923077, 0.76923077,
0.84615385, 0.84615385, 0. , 0. , 0.07692308,
0.07692308, 0.15384615, 0.15384615, 0.23076923, 0.23076923,
0.30769231, 0.30769231, 0.38461538, 0.38461538, 0.46153846,
0.46153846, 0.53846154, 0.53846154, 0.61538462, 0.61538462,
0.69230769, 0.69230769, 0.76923077, 0.76923077, 0.84615385,
0.84615385, 0. , 0. , 0.07692308, 0.07692308,
0.15384615, 0.15384615, 0.23076923, 0.23076923, 0.30769231,
0.30769231, 0.38461538, 0.38461538, 0.46153846, 0.46153846,
0.53846154, 0.53846154, 0.61538462, 0.61538462, 0.69230769,
0.69230769, 0.76923077, 0.76923077, 0.84615385, 0.84615385,
0. , 0. , 0.07692308, 0.07692308, 0.15384615,
0.15384615, 0.23076923, 0.23076923, 0.30769231, 0.30769231,
0.38461538, 0.38461538, 0.46153846, 0.46153846, 0.53846154,
0.53846154, 0.61538462, 0.61538462, 0.69230769, 0.69230769,
0.76923077, 0.76923077, 0.84615385, 0.84615385, 0. ,
0. , 0.07692308, 0.07692308, 0.15384615, 0.15384615,
0.23076923, 0.23076923, 0.30769231, 0.30769231, 0.38461538,
0.38461538, 0.46153846, 0.46153846, 0.53846154, 0.53846154,
0.61538462, 0.61538462, 0.69230769, 0.69230769, 0.76923077,
0.76923077, 0.84615385, 0.84615385, 0. , 0. ,
0.07692308, 0.07692308, 0.15384615, 0.15384615, 0.23076923,
0.23076923, 0.30769231, 0.30769231, 0.38461538, 0.38461538,
0.46153846, 0.46153846, 0.53846154, 0.53846154, 0.61538462,
0.61538462, 0.69230769, 0.69230769, 0.76923077, 0.76923077,
0.84615385, 0.84615385, 0. , 0. , 0.07692308,
0.07692308, 0.15384615, 0.15384615, 0.23076923, 0.23076923,
0.30769231, 0.30769231, 0.38461538, 0.38461538, 0.46153846,
0.46153846, 0.53846154, 0.53846154, 0.61538462, 0.61538462,
0.69230769, 0.69230769, 0.76923077, 0.76923077, 0.84615385,
0.84615385, 0. , 0. , 0.07692308, 0.07692308,
0.15384615, 0.15384615, 0.23076923, 0.23076923, 0.30769231,
0.30769231, 0.38461538, 0.38461538, 0.46153846, 0.46153846,
0.53846154, 0.53846154, 0.61538462, 0.61538462, 0.69230769,
0.69230769, 0.76923077, 0.76923077, 0.84615385, 0.84615385,
0. , 0. , 0.07692308, 0.07692308, 0.15384615,
0.15384615, 0.23076923, 0.23076923, 0.30769231, 0.30769231,
0.38461538, 0.38461538, 0.46153846, 0.46153846, 0.53846154,
0.53846154, 0.61538462, 0.61538462, 0.69230769, 0.69230769,
0.76923077, 0.76923077, 0.84615385, 0.84615385, 0. ,
0. , 0.07692308, 0.07692308, 0.15384615, 0.15384615,
0.23076923, 0.23076923, 0.30769231, 0.30769231, 0.38461538,
0.38461538, 0.46153846, 0.46153846, 0.53846154, 0.53846154,
0.61538462, 0.61538462, 0.69230769, 0.69230769, 0.76923077,
0.76923077, 0.84615385, 0.84615385, 0. , 0. ,
0.07692308, 0.07692308, 0.15384615, 0.15384615, 0.23076923,
0.23076923, 0.30769231, 0.30769231, 0.38461538, 0.38461538,
0.46153846, 0.46153846, 0.53846154, 0.53846154, 0.61538462,
0.61538462, 0.69230769, 0.69230769, 0.76923077, 0.76923077,
0.84615385, 0.84615385, 0. , 0. , 0.07692308,
0.07692308, 0.15384615, 0.15384615, 0.23076923, 0.23076923,
0.30769231, 0.30769231, 0.38461538, 0.38461538, 0.46153846,
0.46153846, 0.53846154, 0.53846154, 0.61538462, 0.61538462,
0.69230769, 0.69230769, 0.76923077, 0.76923077, 0.84615385,
0.84615385, 0. , 0. , 0.07692308, 0.07692308,
0.15384615, 0.15384615, 0.23076923, 0.23076923, 0.30769231,
0.30769231, 0.38461538, 0.38461538, 0.46153846, 0.46153846,
0.53846154, 0.53846154, 0.61538462, 0.61538462, 0.69230769,
0.69230769, 0.76923077, 0.76923077, 0.84615385, 0.84615385,
0. , 0. , 0.07692308, 0.07692308, 0.15384615,
0.15384615, 0.23076923, 0.23076923, 0.30769231, 0.30769231,
0.38461538, 0.38461538, 0.46153846, 0.46153846, 0.53846154,
0.53846154, 0.61538462, 0.61538462, 0.69230769, 0.69230769,
0.76923077, 0.76923077, 0.84615385, 0.84615385]),
'adc': array([ 0., 1., 0., 1., 0., 1., 0., 1., 0., 1., 0., 1., 0.,
1., 0., 1., 0., 1., 0., 1., 0., 1., 0., 1., 2., 3.,
2., 3., 2., 3., 2., 3., 2., 3., 2., 3., 2., 3., 2.,
3., 2., 3., 2., 3., 2., 3., 2., 3., 4., 5., 4., 5.,
4., 5., 4., 5., 4., 5., 4., 5., 4., 5., 4., 5., 4.,
5., 4., 5., 4., 5., 4., 5., 6., 7., 6., 7., 6., 7.,
6., 7., 6., 7., 6., 7., 6., 7., 6., 7., 6., 7., 6.,
7., 6., 7., 6., 7., 8., 9., 8., 9., 8., 9., 8., 9.,
8., 9., 8., 9., 8., 9., 8., 9., 8., 9., 8., 9., 8.,
9., 8., 9., 10., 11., 10., 11., 10., 11., 10., 11., 10., 11.,
10., 11., 10., 11., 10., 11., 10., 11., 10., 11., 10., 11., 10.,
11., 12., 13., 12., 13., 12., 13., 12., 13., 12., 13., 12., 13.,
12., 13., 12., 13., 12., 13., 12., 13., 12., 13., 12., 13., 14.,
15., 14., 15., 14., 15., 14., 15., 14., 15., 14., 15., 14., 15.,
14., 15., 14., 15., 14., 15., 14., 15., 14., 15., 16., 17., 16.,
17., 16., 17., 16., 17., 16., 17., 16., 17., 16., 17., 16., 17.,
16., 17., 16., 17., 16., 17., 16., 17., 18., 19., 18., 19., 18.,
19., 18., 19., 18., 19., 18., 19., 18., 19., 18., 19., 18., 19.,
18., 19., 18., 19., 18., 19., 20., 21., 20., 21., 20., 21., 20.,
21., 20., 21., 20., 21., 20., 21., 20., 21., 20., 21., 20., 21.,
20., 21., 20., 21., 22., 23., 22., 23., 22., 23., 22., 23., 22.,
23., 22., 23., 22., 23., 22., 23., 22., 23., 22., 23., 22., 23.,
22., 23., 24., 25., 24., 25., 24., 25., 24., 25., 24., 25., 24.,
25., 24., 25., 24., 25., 24., 25., 24., 25., 24., 25., 24., 25.,
26., 27., 26., 27., 26., 27., 26., 27., 26., 27., 26., 27., 26.,
27., 26., 27., 26., 27., 26., 27., 26., 27., 26., 27., 28., 29.,
28., 29., 28., 29., 28., 29., 28., 29., 28., 29., 28., 29., 28.,
29., 28., 29., 28., 29., 28., 29., 28., 29., 30., 31., 30., 31.,
30., 31., 30., 31., 30., 31., 30., 31., 30., 31., 30., 31., 30.,
31., 30., 31., 30., 31., 30., 31.]),
'flag': array([1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1.])}
Other relevant examples
If you wish for further examples, do not hesitate to contact us.