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.
- The sample interval of the performance data in the file.
- The rider's HR zones.
- The performance data itself.
- The duration of the ride.
- 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 1 | Zone1Upper | Zone3Upper |
| Line 2 | Zone1Lower | Zone3Lower |
| Line 3 | Zone2Upper | AnaerobicThreshold |
| Line 4 | Zone2Lower | AerobicThreshold |
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 |
| Unknown | Unknown |
| HR Zone1Upper | HR Zone3Upper |
| HR Zone1Lower | HR Zone3Lower |
| HR Zone2Upper | AnaerobicThreshold |
| HR Zone2Lower | AerobicThreshold |
| 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 distance | Unknown |
|