Introduction

POPS reads a section of raw signal every now and then. This module helps you with these raw-files.

Imports


In [1]:
from atmPy.instruments.POPS import raw
from atmPy.tools import plt_tools
%matplotlib inline
plt_tools.setRcParams(plt)

Read a raw file


In [2]:
pops_raw = raw.load_raw('./data/POPS_Raw.bin')

Every few seconds POPS takes a chunk of raw data and saves to the end of the file. Between each chunks is a 0. Every peak is the signal from a single particle.


In [6]:
f,a = plt.subplots()
a.plot(pops_raw)


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

In [10]:
f,a = plt.subplots()
start = 50000
width = 1000
a.plot(pops_raw[start: start + width])
a.set_ylim(bottom = 900)


Out[10]:
(900, 1600.0)

In [ ]: