stack_rtm_2D_42518

Usage
usage: stack_rtm_2D_42518.py [-h] [--plotchan PLOTCHAN] [--stack_offset STACK_OFFSET] [--burst_range BURST_RANGE] [--burst_list BURST_LIST] [--maxlen MAXLEN]
                             [--root ROOT] [--alignref ALIGNREF] [--store_chan STORE_CHAN]

Named Arguments

--plotchan

list of channels to plot

Default: “1,17”

--stack_offset

separate channels in plot

Default: 100

--burst_range

min, max, [stride] bursts to plot

--burst_list

list of bursts to plot

--maxlen

max length per burst to plot

Default: 999999

--root

directory with data

Default: “./DATA”

--alignref

realign on this channel [index from 1]

--store_chan

directory to store result by channel

Outline:

./user_apps/acq400/acq400_upload.py --trace_upload=1 --plot_data=1 --capture=-1 --save_data=./DATA/ $UUTS

Gives us:

pgm@hoy5 acq400_hapi]$ ls -l DATA
total 6276
-rw-rw-r-- 1 pgm pgm 200000 Sep 24 11:19 acq1001_148_CH01
-rw-rw-r-- 1 pgm pgm 200000 Sep 24 11:19 acq1001_148_CH02
-rw-rw-r-- 1 pgm pgm 200000 Sep 24 11:19 acq1001_148_CH03
-rw-rw-r-- 1 pgm pgm 200000 Sep 24 11:19 acq1001_148_CH04
-rw-rw-r-- 1 pgm pgm 200000 Sep 24 11:19 acq1001_148_CH05
-rw-rw-r-- 1 pgm pgm 200000 Sep 24 11:19 acq1001_148_CH06
..
-rw-rw-r-- 1 pgm pgm 200000 Sep 24 11:20 acq1001_279_CH05
-rw-rw-r-- 1 pgm pgm 200000 Sep 24 11:20 acq1001_279_CH06
-rw-rw-r-- 1 pgm pgm 200000 Sep 24 11:20 acq1001_279_CH07
-rw-rw-r-- 1 pgm pgm 200000 Sep 24 11:20 acq1001_279_CH08
  • then restack all the data as

data[UUT][CHX][BURST][t]

Then plot it any way you like.

get_src_names(root)[source]
get_esi(chx)[source]
get_data(args)[source]
fix_args(chx, args)[source]
plot_data(chx, args)[source]
store_chan(chx, args)[source]
rebase(chx, ib, ith)[source]
realign_burst(chx, ib, iref)[source]
realign(chx, iref)[source]
process_data(args)[source]
run_main(args)[source]
get_parser()[source]