Import REW data to Python

mbrennwa

Registered
Thread Starter
Joined
Dec 16, 2017
Posts
3
Hello REW Gurus!

I have a bunch of REW *.mdat files that contain multiple spectra from harmonic distortion measurements (fundamental peak at 1 kHz, harmonics at 2 kHz, 3 kHz, 4 kHz, etc, and noise in between these peaks). I need to import these spectra to Python so I can further process and plot them. I asked ChatGPT, but no luck... is there any documentation on the file/data format, or even examples on how to read the data with Python?

(Yes, the obvious approach would be to open the files in REW, export the data to something "easy", and use this with Python -- but that's not what I am after. My computer platform does not seem to be supported by REW.)
 
Using the API would require a working installation of REW, correct? I was not able to install REW on my machine Mac M1 / Linux. The installer said something about 32/64 issues.
I am looking for ways to read the data files from within Python.
 
I managed to use another computer and install REW there. This allowed me to export the data to ASCII.
However it would still be useful to read the MDAT files directly.
 
That's impractical, I'm afraid. The mdat files are serialised Java objects, reading them would require the Java class files for all the classes they contain.
 
Back
Top