Use split_hdf_to_segments.py as a script.