Skip to content

About

Coordinate transformations between common geocentric systems

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

132 Commits

Folders and files

Repository files navigation

GeoCotrans.jl

DOI

Julia package for transformations between geocentric coordinate systems (GEI/GEO/GSE/GSM/MAG/SM/J2000), IGRF-14 geomagnetic field evaluation, and magnetic field line tracing.

Quick Start

using Pkg; Pkg.add("GeoCotrans")
using GeoCotrans, Dates

times = Date.(2015:2020)
x_geo = rand(3, 6)

x_gsm = geo2gsm(x_geo, times) # equivalent to transform(GEO() => GSM(), x_geo, times)
get_mlt(x_geo, times) # Magnetic Local Time

model = IGRF()
B_gsm = model(x_gsm, times; from = GSM()) # nT

using TsyganenkoModels
model = TsyIGRF(T89(2)) # Kp level = 2

using OrdinaryDiffEqTsit5, CairoMakie

sol = trace(GEO(3.0, 0.0, 0.0), DateTime(2020, 1, 1), Tsit5()) # Trace from [3, 0, 0] Earth radii
plot(sol; idxs = (1, 2)) # Equatorial plane (X-Y)

API

Full API map with units and conventions: @doc(GeoCotrans), or the documentation (comparison with IRBEM and PySPEDAS).

Reference

Related packages

About

Coordinate transformations between common geocentric systems

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages