hops2flat
Convert HOPS-format data into a flat directory layout with JSON or CBOR metadata.
Usage
hops2flat [OPTIONS] input [output]
Description
hops2flat converts a HOPS-format file into a flat directory structure. Table container data is split into meta-data and data. The meta-data is stored in a separate JSON file, while the dense numerical data is stored as a flat binary file named according to the object UUID and numpy d-type. The meta data export supports JSON (ASCII) or CBOR. Filtering by UUID can be applied to limit output to a single object. If no output directory is specified, results are stored in a new directory called <input-file>.flat.
Positional Arguments
Argument |
Description |
---|---|
|
REQUIRED. Path to the input HOPS-format file. |
|
Optional. Output directory name. Defaults to <input>.flat. |
Options
Option |
Description |
---|---|
|
Print this help message and exit. |
|
Set level of detail in output (0 = low, 3 = high). Default: 3. |
|
Set verbosity level. Range: -2 (debug) to 5 (silent). |
|
Indent JSON metadata using the specified number of spaces. Default: disabled. |
|
Extract and export a single object by UUID. |
|
Extract and export a single object by shortname (returns first match). |
|
Truncate UUIDs in filenames to the specified number of characters. |
|
Output metadata in CBOR binary format instead of JSON. |
|
Same as positional |
|
Same as positional |