UNPKG

@cristianob/geomagnetism

Version:

Computes geomagnetic field information

26 lines (25 loc) 612 B
declare module "@cristianob/geomagnetism" { export interface GeomagnetismPoint { x: number; y: number; z: number; h: number; f: number; incl: number; decl: number; } export interface GeomagnetismModel { epoch: number; start_date: Date; end_date: Date; name: string; main_field_coeff_g: number[]; secular_var_coeff_h: number[]; n_max: number; n_max_sec_var: number; num_terms: number; point(geoPoint: number[]): GeomagnetismPoint; } export function model(date: Date): GeomagnetismModel; export function model(): GeomagnetismModel; }