@northguild/gmt
Version:
Date and time library for JavaScript and TypeScript, built on TC39 Temporal: time zones, DST, business days, ISO 8601 strings in and out. Never throws.
22 lines • 1.06 kB
TypeScript
import { GnssSystem, RinexWeekSystem } from "../types/gnss.js";
/** Where a RINEX navigation record's continuous week count starts. */
export interface RinexWeekEpoch {
/** The satellite time scale the record's week and time of week are read on. */
readonly system: GnssSystem;
/** Week 0's first label on that scale, label nanoseconds. */
readonly epochLabel: bigint;
}
/**
* Epoch label of each RINEX navigation record's continuous week count (RINEX 4.02). The count
* never wraps, so it has no modulus and no era. Each `epochLabel` is
* `Temporal.PlainDateTime.from(<label>).toZonedDateTime("UTC").epochNanoseconds` of the label in
* its comment; rinexWeek.test.ts asserts each one.
*/
export declare const RINEX_WEEK_EPOCHS: Readonly<Record<RinexWeekSystem, RinexWeekEpoch>>;
/**
* Whether a value names a system whose RINEX navigation records carry a week number.
*
* @param value candidate system
* @returns true for `GPS`, `GAL`, `BDT`, `QZS` or `IRN`
*/
export declare function isRinexWeekSystem(value: unknown): value is RinexWeekSystem;