physionet
physionet copied to clipboard
Index out of bounds in PTB Diagnostic ECG Database and few questions
Hello, I tried to get annotations by python-WFDB from PTB database, there occurred the same error in many records:
The same index error also occurred in Matlab-WFDB:
Then I tried to get annotations in Linux shell with command: ' rdann -r 's0440_re' -a 'xyz' '
Here are outputs:
but the .hea file indicates that the length is 120012, which is about 2 minutes.
Why does the 'rdann' output 8 minutes?
In some records, like 'patient271/s0509_re', why does the total length of the record is 120012, but the 'sample' attribute from range from 217 to 57077320?
Thank you very much in advance.
I think because there are no .atr file correspond to the recorded data ( .dat file). So, there are no annotations available to read. You can read the recording specification in (.hea file). There are 11 types of Myocardial infarction in PTB database specified in line 25 at their .hea files
For more information about xyz, you can type in Google and search : xyz lead ECG
Hello QiXi9409.
Perhaps this post is too old, but, did you solve it? I found sth similar in Python. Really, I don´t understand pretty well this .xyz files. I have searching about them and I think they are actually annotation files.
Many thanks in advance.