tmd.io.h5¶
Python module that contains the functions about reading h5 files.
Functions
|
Transforms data as loaded from read_h5 into a set of 'meaningful' lists. |
|
Function to properly load sn h5 file, of v1 or v2 format. |
|
Remove duplicated points from the beginning of a section. |
- tmd.io.h5.h5_data_to_lists(data)¶
Transforms data as loaded from read_h5 into a set of ‘meaningful’ lists.
The lists are the following:
- x: list of floats
x-coordinates
- y: list of floats
y-coordinates
- z: list of floats
z-coordinates
- d: list of floats
diameters
- t: list of ints
tree type
- p: list of ints
parent id
- ch: dictionary
children id(s)
- tmd.io.h5.read_h5(input_file, remove_duplicates=True)¶
Function to properly load sn h5 file, of v1 or v2 format.
- tmd.io.h5.remove_duplicate_points(points, groups)¶
Remove duplicated points from the beginning of a section.
Note
The points are removed only if they are present in points-groups representation.
- Returns:
points, groups with unique points.