SIGCLEAR Program reference

sgtruncate

Split sampled vectors into fixed-length segments or reassemble segments

Package: sigclear-soig · Version: 1.1.1-4 Download JSON

Description

Divide selected vectors into fixed-length segments, recording segment indices
so they can be reassembled with the inverse operation. Set the output vector
length explicitly when the final segment is incomplete or when reconstructing
the original sampling layout.

Synopsis

sgtruncate <stdin inv=false >stdout out.ns=2000

Parameters

sgtruncate parameters
ParameterTypeDefaultDescription
in ifile stdin input data
inv bool false split vectors into segments or merge segments back into vectors
out ofile stdout output data; forward mode adds the trunk segment index
out.ns long 2000 maximum number of samples in each output segment

Input and output

Input

input data

Output

output data; forward mode adds the trunk segment index