-
Notifications
You must be signed in to change notification settings - Fork 15
bfbin2xmlss
bfbin2xmlss - convert Byfl output to XML Spreadsheet format
bfbin2xmlss input_file.byfl [output_file.xml]
By default, applications instrumented with Byfl write measurement data
to a binary .byfl file. bfbin2xmlss converts such files to
Microsoft Excel XML Spreadsheet 2003 format (henceforth, "XML
Spreadsheet"). XML Spreadsheet has been superseded by Office Open XML
(ECMA-376) but is represented by a simple, single, XML file, which is
more convenient to process (e.g., with XSLT). LibreOffice Calc,
Microsoft Excel 2003+, and Numbers for Mac (and perhaps a few other
spreadsheet programs) can read XML Spreadsheet files directly.
bfbin2xmlss has no command-line options. The program accepts the
name of a .byfl file to read and, optionally, an XML Spreadsheet
file to create. If the latter is not specified, bfbin2xmlss will
write to the standard output device.
The simplest usage is just
$ bfbin2xmlss myprog.byfl myprog.xml
which produces myprog.xml. This can then be loaded into various
spreadsheet programs.
If the .byfl file is expected to be used only to produce an XML
Spreadsheet file and then deleted, one can save time and disk space by
writing Byfl binary output to a named pipe and running bfbin2xmlss
on that named pipe:
$ mkfifo myprog.pipe
$ bfbin2xmlss myprog.pipe myprog.xml &
$ env BF_BINOUT=myprog.pipe ./myprog
$ rm myprog.pipe
bfbin2cgrind(1), bfbin2csv(1), bfbin2hdf5(1), bfbin2hpctk(1), bfbin2sqlite3(1), bf-clang(1), bf-clang++(1), bf-flang(1), the Byfl home page, the XML Spreadsheet Reference
Scott Pakin, pakin@lanl.gov