This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Remove HR data but keep GPS

Former Member
Former Member
I've just been out running, and my HR monitor has recorded a spike where my HR went upto over 220bpm, which is well above my maximum HR. Clearly an error, is there any way to remove it from Garmin Connect - either smooth out the spike, or just remove HR data from that run alone.

Any help would be much appreciated.
Mike
  • Former Member
    0 Former Member over 12 years ago
    http://fitfilerepairtool.info/
    Yes.
    The Fit File Repair Tool is great for editing any and all pieces of a tcx or fit file.
    You can sort the data by heart rate from max to min so all the high heart rates are at the top.
    You double click each HR and type in whatever you want.
    When finished you can save it as a tcx or fit with a new name and it will load into any software.

    You could attach your track here with a number you want the HR changed to and someone will edit it for you.
  • Former Member
    0 Former Member over 12 years ago
    Great, thanks for your help. I'll give that a go later on this afternoon.
    Mike
  • Former Member
    0 Former Member over 12 years ago
    When I imported the activity, it actually went blank for the HRM data at the point garmin connect says I get to 225bpm. I re adjucted my strap at this point, and that is why it went funny, my concern was that having registered a HR of 225, it might mess with my HR zones etc.

    Plus, this software is expensive to make one change! The demo only lets you play with the software, but changes your results for the second half of any import, thus making it unusable in demo mode. I don't fancy paying so much for it.

    Never mind, I guess I'll just leave it, and if it ends up causing problems then I'll just remove the whole activity.
    Cheers for you help anyway.
    The 310xt has just started discharging way quicker than it should, so I guess I'd better get over to the other side of the forum to try and sort that out!
  • How to do it on a PC for free.

    I had the same problem with mine showing over 230 BPM either due to a bad connection or batteries or whatever. Anyway I fixed it (using a PC)

    1) Delete the uploaded activity from Garmin Connect.
    2) Locate the related TCX file. For me, on Windows 7 it's in C:\Users\YourUserName\AppData\Roaming\Garmin\Devices\YourDeviceNumber\History
    3) Open that file with Notepad++. It's free, I used version 6.5, but you could use another editor that understands regular expressions.
    4) Press Ctrl+H and it'll open the Find & replace dialog.
    5) At the bottom select "Search mode Regular Expression"
    6) Put the following line of text in the "Find What" field. This is a regular expression, unreadable to most of us, but handy for computers matching a block of text.

    <\w*HeartRateBpm\s+xsi:type="HeartRateInBeatsPerMinute_t"\W+<Value>[0-9]+</Value>\W+\w*HeartRateBpm>

    7) Make the "Replace with" field empty.
    8) click "Find Next" button, and watch as it selects the first match "AverageHeartRateBpm"
    9) do step 8 again twice. For each press it should have selected the AverageHeartRateBpm block then MaximumHeartRateBpm block and then the first HeartRateBpm block registered for a Trackpoint.
    10) If step 8 and 9 worked then put the cursor back to the top of the file and click "Replace all" and it will replace all of the found entries with blank lines.
    11) Save the file and upload it to Garmin using the Manual upload option.
    12) Go check it in Garmin connect. It should have everything as before except for the heart rate data. :cool:

    Any questions?
  • Former Member
    0 Former Member over 10 years ago
    Hello PhilGeorge
    Your solution is quite amazing... Curious to see if it works for my problem. How do we adpat this to remove lattitude and logiude and elevation?
    You see, I did a ride on my home triainer and forgot to disable the GPS until 40 minutes into the ride.
    Now I want to remove those GPS points but keep everything else.

    You have anohter trick like those?

    thanks
    6co
  • I suppose it would be possible by doing the same sort of thing that I explained above, but this time you'd need to change the "Regular Expression" so it finds and replaces the bits you don't want. You'll need to learn a little Regular Expression syntax but it shouldn't be too difficult.

    I don't have a computer with me at the moment, so you'll have to try it yourself.

    Share your findings/problems.

    Cheers,
    Phil
  • Former Member
    0 Former Member over 10 years ago
    Make sure to do a "Save as" with a little different name on the file and play with that one.
    Then the original is still safe. :cool:
  • Former Member
    0 Former Member over 10 years ago
    Guys, your tough!
    I have now a few hours googling "regular expression", at least to understand wha this could be!
    very interesting stuff!!
    But I dont think i ll get the magic formula just like that... it will take me a while!
  • Former Member
    0 Former Member over 10 years ago
    I think I got it!!

    <Position>.+?</position>

    will find all the blocks:

    <Position>
    <LatitudeDegrees>-4.799041980877519</LatitudeDegrees>
    <LongitudeDegrees>11.835916237905622</LongitudeDegrees>
    </Position>

    And then we just need to replace them all blocks by empty space.

    I ll try that and upload next to GC and check it out.
    But that took my way too long. Am going to bed now!!
  • Former Member
    0 Former Member over 10 years ago
    it worked!
    I will save that one for later. And I am glad to be able to share it.
    precision: this was done in Notepad++

    Definitely going to bed now, its two am...

    Thanks to all for the help!