Skip to main content

A python package for working with magnetic coordinate transformations

Project description

MagCoordPy

test-main coverage-main license

A python package for working with magnetic coordinate transformations. The documentation is available at https://magcoordpy.readthedocs.io/en/latest/.

Installation

pip install magcoordpy

Example usage

from magcoordpy import coord_transforms
long_geo = np.arange(-180, 190, 10)
lati_geo = np.zeros(len(long_array))
alti_geo = np.zeros(len(long_array))
lat_cd, lon_cd, r_cd = coord_transforms.geodetic2cd(lati_geo, long_geo, alti_geo, year=2021.0)

It includes the following functions (not exhaustive list):

  • geodetic2cd --> transformation from geodetic to centered dipole
  • cd2geodetic --> transformation from centered dipole to geodetic

Authors

Please use github issues to make bug reports and request new functionality. Contributions are always welcome.

References

Laundal, K.M., Richmond, A.D. Magnetic Coordinate Systems. Space Sci Rev 206, 27–59 (2017). https://doi.org/10.1007/s11214-016-0275-y

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

magcoordpy-0.2.2.tar.gz (17.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

magcoordpy-0.2.2-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

File details

Details for the file magcoordpy-0.2.2.tar.gz.

File metadata

  • Download URL: magcoordpy-0.2.2.tar.gz
  • Upload date:
  • Size: 17.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.2 Linux/5.11.0-1028-azure

File hashes

Hashes for magcoordpy-0.2.2.tar.gz
Algorithm Hash digest
SHA256 438a43e076ee63a0d6ee40a582de411466370c3c1b22def7ee8253c610ecf9be
MD5 e3f5a20e98d8078d142e12a80ac20532
BLAKE2b-256 b2c143a77c845e5bd6a0577da2c43a9d66849529bd56093dee02eced124ad80b

See more details on using hashes here.

File details

Details for the file magcoordpy-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: magcoordpy-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 16.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.2 Linux/5.11.0-1028-azure

File hashes

Hashes for magcoordpy-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 88962595dd840c3d06b13bfd9496eaa87aae297cfd07e2fb4aafd9631c712bb6
MD5 dbdb0df77c517ec236e7ab1c21da2cb2
BLAKE2b-256 2cd3187d6fcea4f298becad0c4330bfdf3291d690933a925a1f9e414a91356e0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page