Skip to main content

A python package for working with magnetic coordinate transformations

Project description

MagCoordPy

test-main coverage-main license PyPI - Downloads

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.4.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.4-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: magcoordpy-0.2.4.tar.gz
  • Upload date:
  • Size: 17.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.0 CPython/3.10.2 Linux/5.15.0-1024-azure

File hashes

Hashes for magcoordpy-0.2.4.tar.gz
Algorithm Hash digest
SHA256 3f57b2c363eac3c19aa285f25e154a10f507c3f358d4642491f85dd84dafa1eb
MD5 cdd9997ee24fc6bed471bafa2a4dd0a0
BLAKE2b-256 577be0435fa02ad31d8ff5b3c690df4fa233036cea0cb5455c1d9b5d8e0ad0cf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: magcoordpy-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 17.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.0 CPython/3.10.2 Linux/5.15.0-1024-azure

File hashes

Hashes for magcoordpy-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 baf6446f24896196d1faa04f70689494fcfd79e0a289c698effe62b465f777f7
MD5 9c98ed923821de9dd9abea224014bab1
BLAKE2b-256 c88fcdcecced789cc30ee39dfa779519d66077b01670d86e886f7fccf347aba3

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