DEV1708 | Importing R-R Polar file

425 views
Skip to first unread message

Ron George

unread,
Aug 4, 2017, 2:27:21 AM8/4/17
to golden-cheetah-users
Ale,

Unless I'm misunderstanding, the exported file format of a strict 'R-R recording' (for example from a V800) from Polar Flow is .txt and not HRM/PDD as mentioned in the wiki.   The .txt file has no headers to them. 

Importing this .txt r-r file leads to blank screen at Edit - there is no XData to access. 

Just wondering, have you validated this with a v800 r-r file? Sharing one with you, see attached.


rr-George_Ron_2017-08-03_08-28-50.txt

Ale Martinez

unread,
Aug 4, 2017, 9:37:10 AM8/4/17
to golden-cheetah-users
El viernes, 4 de agosto de 2017, 3:27:21 (UTC-3), Ron George escribió:
Ale,

Unless I'm misunderstanding, the exported file format of a strict 'R-R recording' (for example from a V800) from Polar Flow is .txt and not HRM/PDD as mentioned in the wiki.   The .txt file has no headers to them. 
 Reading of R-R from Polar devices in HRM/PDD fortmat was added here https://github.com/GoldenCheetah/GoldenCheetah/pull/2323, you need to install Bipolar (https://github.com/pcolby/bipolar) to get those files from the V800, IIRC.

Importing this .txt r-r file leads to blank screen at Edit - there is no XData to access. 
Yes, it won't work that way, some massaging of that file would be necessary to make it possible but the Bipolar way should be easier.

Ron George

unread,
Aug 4, 2017, 1:22:44 PM8/4/17
to golden-cheetah-users
Ale,

Tried it but failed. The native r-r text files cannot be massaged into .hrm files by Bipolar, because it doesn't recognize it.
Message has been deleted

Ale Martinez

unread,
Aug 4, 2017, 5:14:46 PM8/4/17
to golden-cheetah-users
They are 2 independent ways:


1) Bipolar is a program to extract .hrm files from the V800 and other Polar devices which can be directly imported to GC, no conversion needed.

2) the r-r text file you posted is easy to convert to .hrm, I did it for you in the attached file which, once imported to GC looks like:


After running Fix R-R Outliers the marked record is added to HRV Measures:

rr-George_Ron_2017-08-03_08-28-50.hrm

Ron George

unread,
Aug 10, 2017, 12:55:21 AM8/10/17
to golden-cheetah-users
Ale,

Thanks. Can you explain how you computed the time column in that screenshot? The original .txt file only had intervals between each of the peak waveforms as I understand. 


-Ron

Ale Martinez

unread,
Aug 10, 2017, 9:15:47 AM8/10/17
to golden-cheetah-users
El jueves, 10 de agosto de 2017, 1:55:21 (UTC-3), Ron George escribió:
Ale,

Thanks. Can you explain how you computed the time column in that screenshot?
I didn't, GC does that.
 
The original .txt file only had intervals between each of the peak waveforms as I understand. 
The hrm file I imported has the same data, see the attached file in my previous post, it is a text file and the only differences are an added prologue and the R-R intervals converted from seconds to milliseconds.

Ron George

unread,
Aug 10, 2017, 12:39:29 PM8/10/17
to golden-cheetah-users
Ok. Again, just making sure the computation is correct.

For example, will two 809second consecutive R-R intervals mean a passage of 1.620seconds in absolute time ?  It would be 1.618seconds. Please see the screenshot, thanks.

Ron

Ron George

unread,
Aug 10, 2017, 12:50:27 PM8/10/17
to golden-cheetah-users




Ale, 

GC time compared to Kubios time column for the same data. Maybe I'm missing something but why is there a difference between the two datasets??

Ale Martinez

unread,
Aug 10, 2017, 1:13:32 PM8/10/17
to golden-cheetah-users
El jueves, 10 de agosto de 2017, 13:50:27 (UTC-3), Ron George escribió:




Ale, 

GC time compared to Kubios time column for the same data. Maybe I'm missing something but why is there a difference between the two datasets??
Probably there is some rounding involved in the time display with milliseconds since the code (which I didn't write, BTW) looks ok: https://github.com/GoldenCheetah/GoldenCheetah/blob/master/src/FileIO/PolarRideFile.cpp#L418 and the json file for the activity is also seems to be correct.
I think this is a mostly cosmetic issue, HRV metrics s.t. rMSSD don't depend on time either.
Reply all
Reply to author
Forward
0 new messages