SIGCLEAR Program reference

sgstack

Reduce selected vectors within groups or across corresponding groups

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

Description

Combine selected vector fields using mean, sum, maximum magnitude, or the
first value. In ingroup mode, reduce the columns in each group to one column;
in overgroup mode, combine corresponding columns across groups, which must
have matching column counts.

Synopsis

sgstack op=mean mode=ingroup <stdin in.fields=FIELD("data") >stdout

Parameters

sgstack parameters
ParameterTypeDefaultDescription
op enum mean stack using the mean, sum, maximum magnitude, or first value
Allowed: mean sum max first
mode enum ingroup stack columns within each group or corresponding columns across groups
Allowed: ingroup overgroup
in ifile stdin input file
in.fields fields FIELD("data") fields to stack
out ofile stdout output file

Input and output

Input

input file

Output

output file