whitepeak.org

NetAthlon .RAW File Format

Introduction

The NetAthlon RAW file format is a file containing a text based representation of a ride. As it is easy for humans to read, it can just be opened in a text editor and examined.

The RAW file format contains the following information.

  1. The sample interval of the performance data in the file.
  2. The rider's HR zones.
  3. The performance data itself.
  4. The duration of the ride.
  5. The ride distance.

There is still some data in the file which has a purpose of which I am unaware.

Format

The file consists of a number of lines separated by CR/LF pairs.

Each line is a collection of numbers separated by spaces.

Preamble Section

The file starts with an unknown number on line 1.

Line 2 contains a number representing the data sample interval. e.g. 1 = 1 record per second.

There then follows another unknown line with 2 numbers in it.

The next 4 lines are the rider's heart rate zones. Each line contains 2 numbers, laid out as follows:

Line 1Zone1UpperZone3Upper
Line 2Zone1LowerZone3Lower
Line 3Zone2UpperAnaerobicThreshold
Line 4Zone2LowerAerobicThreshold

Somewhat oddly, the first line of performance data comes next, on it's own in the preamble section (see below for it's layout).

The time the ride took place follows on the next line. This is in the format HH.MM.SS where HH = hours (12 hour clock) MM = minutes and SS = seconds.

The next line contains a single line which is an am/pm indicator for the time on the preceding line: 0 = am, 1 = pm.

The bulk of the performance data then follows.

Performance Data

As mentioned above, the first line of the performance data is in the preamble section. In addition, the last line is in the final section of the file (see below).

Each line of the data consists of 7 numbers:

Heart rate Grade Speed * 10 Power Cadence Unknown Altitude

Final Section

Just before the last line of performance data, there is a number on a line by itself - I do not know if it has any significance, other than to indicate the end of the peformance data.

Following the last line of performance data, is a line containing the ride time. The format is HH.MM.SS.FF where HH = hours, MM = minutes, SS = seconds, FF = fractions of a second.

There are now only 2 lines left in the file. The first of these contains 1 solitary unknown number.

The final line contains 2 numbers, the first of these is the ride distance, whilst the last number is unknown.

Summary of Layout

Unknown
Sample interval
UnknownUnknown
HR Zone1UpperHR Zone3Upper
HR Zone1LowerHR Zone3Lower
HR Zone2UpperAnaerobicThreshold
HR Zone2LowerAerobicThreshold
Heart rate Grade Speed * 10 Power Cadence Unknown Altitude
Time of ride (HH.MM.SS)
AM/PM indicator 0 = AM, 1 = PM
Heart rate Grade Speed * 10 Power Cadence Unknown Altitude
... etc ...
Unknown
Heart rate Grade Speed * 10 Power Cadence Unknown Altitude
Ride time (HH.MM.SS.FF)
Unknown
Ride distanceUnknown