physionet icon indicating copy to clipboard operation
physionet copied to clipboard

Index out of bounds in PTB Diagnostic ECG Database and few questions

Open QiXi9409 opened this issue 6 years ago • 3 comments

Hello, I tried to get annotations by python-WFDB from PTB database, there occurred the same error in many records:

image

The same index error also occurred in Matlab-WFDB: image

Then I tried to get annotations in Linux shell with command: ' rdann -r 's0440_re' -a 'xyz' ' Here are outputs: image

but the .hea file indicates that the length is 120012, which is about 2 minutes. Why does the 'rdann' output 8 minutes? image

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? image

Thank you very much in advance.

QiXi9409 avatar Jan 10 '19 13:01 QiXi9409

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

haleeeema610 avatar Aug 18 '19 11:08 haleeeema610

For more information about xyz, you can type in Google and search : xyz lead ECG

haleeeema610 avatar Aug 18 '19 11:08 haleeeema610

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.

icasensio avatar Aug 24 '23 08:08 icasensio