Skip to content

allenxiangxin/pico

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

To Convert Data from One File Format to Another

There are two converters by now:

  1. csv2root.py, converts picoscope files (many CSV) to ROOT
  2. wave2root.py, converts CAENWaveDemo Wave files (TXT) to ROOT

Install pyROOT

The following code needs pyROOT. I think it is easier to install pyROOT on Linux or MacOS via conda. See: https://iscinumpy.gitlab.io/post/root-conda/

Convert CSV to ROOT

Picoscope is nice, but the saved waveform data is in annoying format. The default .psdata is proprietary to pico. The altertaive is to save many CSV files in a folder (each corresponds to a trigger).

Usage:

python csv2root.py --help

Be sure to check global config parameters defined at the begining of the script.

Convert CAENWaveDemo Wave TXT to ROOT

Usage:

python wave2root.py --help

CAENWaveDemo saves channel waveform in seperate TXT files. The wave2root will also combine different channels of the same run into a single TTree.

About

Picoscope related code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages