TTTR writing / Transcode

Save the content of a PTU file in an SPC file

import json
import tttrlib
import numpy as np
import pylab as plt
filename_ptu = '../../tttr-data/pq/ptu/pq_ptu_hh_t3.ptu'
tttr_ptu = tttrlib.TTTR(filename_ptu)

# Note: SPC has limited header support.
filename_spc_1 = "conv1.spc"
tttr_ptu.write(filename_spc_1)
True

Total running time of the script: (0 minutes 2.317 seconds)

Gallery generated by Sphinx-Gallery