Difference between revisions of "VTKpytools/Bar2vtk"
Line 13: | Line 13: | ||
When given two paths, it will assume that a [[Bar2vtk#Time__Windows|time window]] is to be created, with the first file corresponding to the first timestep in the timestep range. | When given two paths, it will assume that a [[Bar2vtk#Time__Windows|time window]] is to be created, with the first file corresponding to the first timestep in the timestep range. | ||
+ | |||
+ | Examples: | ||
+ | * <code>bar2vtk [...] --velbar /data/path/velbar.10000.1 --stsbar /data/path/stsbar.10000.1</code> | ||
+ | * <code>bar2vtk [...] --velbar /data/path/velbar.10000.1 /data/path/velbar.20000.1 --stsbar /data/path/stsbar.10000.1 /data/path/stsbar.20000.1</code> | ||
+ | |||
==== <code>--ascii</code> ==== | ==== <code>--ascii</code> ==== | ||
+ | Ordinarily, the <code>*bar</code> files are assumed to be Fortran binary array files. Using this flag, the file(s) will instead be assumed to be space-delimited plain-text files (ie. ASCII files). | ||
==== <code>--debug</code> ==== | ==== <code>--debug</code> ==== | ||
+ | This flag will add in the raw values from the <code>stsbar</code> file, allowing for better debugging of the files if any strange data comes out from them. | ||
==== <code>--velonly</code> ==== | ==== <code>--velonly</code> ==== | ||
+ | |||
==== <code>--vptpath</code> ==== | ==== <code>--vptpath</code> ==== |
Revision as of 05:38, 6 September 2020
bar2vtk is a utility from the vtkpytools project for converting *bar files (velbar
and stsbar
) into appropriate VTK files. In particular, it makes use of the barfiletools module in the vtkpytools
project.
Documentation for bar2vtk
can be found by running the --help
flag, but this will also serve as a more detailed/verbose documentation page as well.
Contents
Functionality
Time Windows
Options
--velbar
and --stsbar
These flags allow for explicit setting the path(s) to the velbar
and stsbar
files. They can take a maximum of two arguments.
When given two paths, it will assume that a time window is to be created, with the first file corresponding to the first timestep in the timestep range.
Examples:
-
bar2vtk [...] --velbar /data/path/velbar.10000.1 --stsbar /data/path/stsbar.10000.1
-
bar2vtk [...] --velbar /data/path/velbar.10000.1 /data/path/velbar.20000.1 --stsbar /data/path/stsbar.10000.1 /data/path/stsbar.20000.1
--ascii
Ordinarily, the *bar
files are assumed to be Fortran binary array files. Using this flag, the file(s) will instead be assumed to be space-delimited plain-text files (ie. ASCII files).
--debug
This flag will add in the raw values from the stsbar
file, allowing for better debugging of the files if any strange data comes out from them.