ratal / mdfreader

Read Measurement Data Format (MDF) versions 3.x and 4.x file formats in python
Other
169 stars 73 forks source link

convert unsorted mdf file #183

Closed z1987124 closed 4 years ago

z1987124 commented 4 years ago

How can I convert unsorted mdf file to sorted file ,there mdfreader have this method ?

ratal commented 4 years ago

yes, relatively easy:

yop=mdfreader.Mdf('unsortedfile.mdf')
yop.write()

It will write it in sorted (unsorted writing does not exist in mdfreader and does not make sense anyway, your computer is not a logger that is resources constrained for writing mdf files) You could also use parameter column_oriented=True (not yet default, new) that will write sorted but one channel per data block, speeding up reading by computer.