open_viewmin.filter_tree_plot.utilities.mpi_stitch#
Utility to merge data from separate files for a single scene, such as from an MPI run
Functions#
|
Check whether some filenames come from the same MPI run |
|
Stitch together a set of data text files from an MPI run into a single |
Module Contents#
- mpi_group(filenames)#
Check whether some filenames come from the same MPI run (formatted as same_prefix_x#y#z#.txt) and if so, stitch them together using mpi_stitch().
- Parameters:
filenames (list of str) – Names of existing data files.
- Returns:
Names of new output files containing combined data.
- Return type:
list of str
- mpi_stitch(in_filenames, out_filename=None)#
Stitch together a set of data text files from an MPI run into a single file with the proper ordering of lines for use by openViewMin. First three columns must be x y z coordinates.
- Parameters:
in_filenames (list of str) – Names of existing data files.
out_filename (str or None) – Output filename. Pass None to skip writing to file.
- Returns:
Ordered, combined data.
- Return type:
numpy.ndarray