A RINEX Week Read as a Broadcast Week
A RINEX Week Read as a Broadcast Week
A RINEX navigation file holds a NavIC record at week 2295 and 86418 seconds into the week. A converter that handles broadcast weeks reads it. What date does it give?
The naive approach
// The naive approach: any week number is a broadcast week
import { gnssWeekToUtc } from "@northguild/gmt/gnss/convert";
gnssWeekToUtc("IRN-L1NV", 2295, 86418, 0);
// "2043-08-17T00:00:00Z" — a record from 1 January 2024, read 19 years lateWatch it break
The naive approach silently produces wrong results — there is no GMT equivalent to demonstrate because the failure is not using GMT.
Why
A RINEX navigation file writes a continuous week count that never wraps. For GPS, QZSS, NavIC and Galileo it counts from 1980-01-06, and for BeiDou from 2006-01-01. A NavIC satellite broadcasts a different week, counted from 1999 and wrapping. Feeding the file's week to the L1NV broadcast counter puts the date 1024 weeks, about 19.6 years, off. `rinexWeekToUtc` reads the file's count, and the system alone is enough.
The gmt approach
import { rinexWeekToUtc, utcToRinexWeek } from "@northguild/gmt/gnss/convert";
rinexWeekToUtc("IRN", 2295, 86418);
// "2024-01-01T00:00:00Z"
utcToRinexWeek("IRN", "2024-01-01T00:00:00Z");
// { week: 2295, timeOfWeekSeconds: 86418 }Same widget, working
In the widget, change the system to BDT and keep the week: a BeiDou record counts from 2006, so
week 2295 is 2049-12-27 there, not 2024-01-01. The GNSS Week
Decoder takes a RINEX week as one of its modes, and opens here on week 2295. The rules are in GNSS:
System Time and Week
Rollover.
© 2026 NorthGuild · Licences
Code examples: MIT-0. Packages: MIT. Third-party data and components: their own licences, credited where they appear. Everything else: © 2026 NorthGuild, all rights reserved.