magvar_apt: Calculate magnetic declination at a given airport

Description Usage Arguments Details Value

Description

Calculates magnetic declination at a given airport

Usage

1

Arguments

x

A 4-letter ICAO airport code

date

Date (as a Date object). Defaults to current date.

Details

This function calls magvar, which uses the NIMA WMM2005 (World Magnetic Model). This is the exact same algorithm that FlightGear (via the SimGear library) uses, and in fact magvar is a port of the corresponding SimGear C++ function: https://github.com/FlightGear/simgear/blob/next/simgear/magvar/coremag.cxx

Value

Returns the magnetic declination (in degrees) at the specified airport.


thlytras/rfgfs documentation built on May 31, 2019, 10:44 a.m.