{
    "command": "sgstack",
    "description": "Combine selected vector fields using mean, sum, maximum magnitude, or the\nfirst value. In ingroup mode, reduce the columns in each group to one column;\nin overgroup mode, combine corresponding columns across groups, which must\nhave matching column counts.",
    "examples": [],
    "input_description": "input file",
    "notes": [],
    "output_description": "output file",
    "package": "sigclear-soig",
    "parameters": [
        {
            "choices": [
                "mean",
                "sum",
                "max",
                "first"
            ],
            "default": "mean",
            "default_known": true,
            "description": "stack using the mean, sum, maximum magnitude, or first value",
            "name": "op",
            "required": false,
            "type": "enum",
            "units": null
        },
        {
            "choices": [
                "ingroup",
                "overgroup"
            ],
            "default": "ingroup",
            "default_known": true,
            "description": "stack columns within each group or corresponding columns across groups",
            "name": "mode",
            "required": false,
            "type": "enum",
            "units": null
        },
        {
            "choices": [],
            "default": "stdin",
            "default_known": false,
            "description": "input file",
            "name": "in",
            "required": false,
            "type": "ifile",
            "units": null
        },
        {
            "choices": [],
            "default": "FIELD(\"data\")",
            "default_known": false,
            "description": "fields to stack",
            "name": "in.fields",
            "required": false,
            "type": "fields",
            "units": null
        },
        {
            "choices": [],
            "default": "stdout",
            "default_known": false,
            "description": "output file",
            "name": "out",
            "required": false,
            "type": "ofile",
            "units": null
        }
    ],
    "related": [],
    "schema_version": 1,
    "summary": "Reduce selected vectors within groups or across corresponding groups",
    "synopsis": "sgstack op=mean mode=ingroup <stdin in.fields=FIELD(\"data\") >stdout",
    "version": "1.1.1-4"
}