Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IGRFdata ¶ added in v0.5.0
type IGRFdata struct {
// contains filtered or unexported fields
}
func New ¶ added in v0.5.0
func New() *IGRFdata
New returns an initialized IGRF structure that could be used to compute .
func (*IGRFdata) IGRF ¶ added in v0.5.0
func (igd *IGRFdata) IGRF(lat, lon, alt, date float64) (IGRFresults, error)
IGRF computes values for the geomagnetic field and secular variation for a given set of coordinates and date and returns a populated `IGRFresults` structure.
lat, lon - geodetic latitude and longitude (WGS84 latitude and altitude above mean sea level). Valid values -90.0 < lat < 90.0, -180.0 < lon < 180.0.
alt - geodetic altitude above mean sea level in km (-1.00 to 600.00).
date - decimal date (1900.00 to 2025).
type IGRFresults ¶
type IGRFresults struct { Declination float64 DeclinationSV float64 Inclination float64 InclinationSV float64 HorizontalIntensity float64 HorizontalSV float64 NorthComponent float64 NorthSV float64 EastComponent float64 EastSV float64 VerticalComponent float64 VerticalSV float64 TotalIntensity float64 TotalSV float64 }
IGRFresults represents the result of IGRF calculation
Fields:
Declination (D): 14.175 ° (+ve east)
DeclinationSV (D): -8.92 arcmin/yr
Inclination (I): 74.229 ° (+ve down)
InclinationSV (I): -2.59 arcmin/yr
HzIntensity (Horizontal intensity (H)): 14626.6 nT
HorizontalSV (H): -16.8 nT/yr
NorthComponent (X): 14181.2 nT
NorthSV (X): -28.2 nT/yr
EastComponent (Y): 3581.8 nT
EastSV (Y): 32.0 nT/yr
VerticalComponent (Z): 51788.4 nT
VerticalSV (Z): 80.1 nT/yr
TotalIntensity (F): 53814.3 nT
TotalSV (F): 71.8 nT/yr