{
    "command": "sgtruncate",
    "description": "Divide selected vectors into fixed-length segments, recording segment indices\nso they can be reassembled with the inverse operation. Set the output vector\nlength explicitly when the final segment is incomplete or when reconstructing\nthe original sampling layout.",
    "examples": [],
    "input_description": "input data",
    "notes": [],
    "output_description": "output data; forward mode adds the trunk segment index",
    "package": "sigclear-soig",
    "parameters": [
        {
            "choices": [],
            "default": "stdin",
            "default_known": false,
            "description": "input data",
            "name": "in",
            "required": false,
            "type": "ifile",
            "units": null
        },
        {
            "choices": [],
            "default": false,
            "default_known": true,
            "description": "split vectors into segments or merge segments back into vectors",
            "name": "inv",
            "required": false,
            "type": "bool",
            "units": null
        },
        {
            "choices": [],
            "default": "stdout",
            "default_known": false,
            "description": "output data; forward mode adds the trunk segment index",
            "name": "out",
            "required": false,
            "type": "ofile",
            "units": null
        },
        {
            "choices": [],
            "default": 2000,
            "default_known": true,
            "description": "maximum number of samples in each output segment",
            "name": "out.ns",
            "required": false,
            "type": "long",
            "units": null
        }
    ],
    "related": [],
    "schema_version": 1,
    "summary": "Split sampled vectors into fixed-length segments or reassemble segments",
    "synopsis": "sgtruncate <stdin inv=false >stdout out.ns=2000",
    "version": "1.1.1-4"
}