How can I read a .dat file together with a .hea file?

Viewed 642

I'm trying to read the files from this physionet dataset (https://physionet.org/content/cebsdb/1.0.0/) but I can't figure out how to join the information of the .hea file together with .dat file.

I know how to read them separately and I know I should use the wfdb library, but still I have issues in figuring out from the documentation. I'm using Python 3.x and I'd like to use wfdb together with numpy and pandas.

Any help is appreciated!

Thanks!

1 Answers

Just read the files without any extension using the 'wfdb' library in Python. You can use 'rdsamp' or 'rdrecord'.

In MATLAB, just read the header file (.hea) using 'rdsamp' from wfdb toolbox. But the corresponding .dat file also needs to be present for extraction.

wfdb Python Library: https://pypi.org/project/wfdb/

Related