tacformat - tpcclib 0.8.0 © 2023 by Turku PET Centre
Convert regional or input TAC data in filename1 into filename2
in specified file format.
Data can be written only in a few formats (listed below), but more
file formats can be read.
Usage: tacformat [options] filename1 [filename2]
Options:
-f=<format-id>
Accepted format-id's:
CSV-INT - CSV format with semicolons and decimal commas.
CSV-UK - CSV format with commas and decimal points.
TSV-INT - TSV format with tabs and decimal commas.
TSV-UK - TSV format with tabs and decimal points.
PMOD - PMOD tac and bld format.
DFT - TPC TAC format.
SIMPLE - txt file with tabs and decimal points.
XML - MS Excel compatible XML format.
Without this option, only the format of the given TAC file is shown.
-hdr=<Yes|no>
Extra information is (y, default) or is not stored (n) in lines
starting with '#' character; not effective with all formats.
-mid
Frame mid times are used instead of frame start and end times.
-h, --help
Display usage information on standard output and exit.
-v, --version
Display version and compile information on standard output and exit.
-d[n], --debug[=n], --verbose[=n]
Set the level (n) of debugging messages and listings.
-q, --quiet
Suppress displaying normal results on standard output.
-s, --silent
Suppress displaying anything except errors.
Example 1: convert DFT file into PMOD TAC format
tacformat -f=pmod -hdr=no iea446.dft iea446.tac
Example 2a: convert all TAC files into DFT format on Windows
for %g in (*.tac) do tacformat -f=DFT -hdr=no %g
Example 2b: the same on linux and macOS
for file in ./*.tac; do tacformat -f=dft -hdr=no $file; done
See also: taclist, tacunit, tacframe, tacnames, tac2xml
Keywords: TAC, tool, format, PMOD, CSV, DFT