Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

tensogram split

Split multi-object messages into separate single-object files.

Usage

tensogram split --output <OUTPUT> <INPUT>

Options

OptionDescription
-o, --output <OUTPUT>Output template (use [index] for numbering)
-h, --helpPrint help

Description

Each data object from each message in the input file becomes its own Tensogram message, inheriting the global metadata.

Output files are named using the template:

  • Use [index] for zero-padded numbering: split_[index].tgmsplit_0000.tgm, split_0001.tgm, …
  • Without [index]: the index is appended before the extension: out.tgmout_0000.tgm, out_0001.tgm, …

Examples

# Split with index template
tensogram split multi_object.tgm -o 'field_[index].tgm'

# Split with auto-numbered names
tensogram split multi_object.tgm -o output.tgm