Skip to main content

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

Metadata

Release files for magcoordpy 0.2.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for magcoordpy 0.2.4
File Size Uploaded
magcoordpy-0.2.4.tar.gz 17.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for magcoordpy 0.2.4
File Interpreter ABI Platform
magcoordpy-0.2.4-py3-none-any.whl Python 3 none any Details

Total release size: 34.1 kB

Release files / magcoordpy-0.2.4.tar.gz

Download URL magcoordpy-0.2.4.tar.gz
Size 17.2 kB
Tags Source
SHA-256 checksum
How to use checksums
3f57b2c363eac3c19aa285f25e154a10f507c3f358d4642491f85dd84dafa1eb
BLAKE2b-256 checksum
How to use checksums
577be0435fa02ad31d8ff5b3c690df4fa233036cea0cb5455c1d9b5d8e0ad0cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.0 CPython/3.10.2 Linux/5.15.0-1024-azure

Release files / magcoordpy-0.2.4-py3-none-any.whl

Download URL magcoordpy-0.2.4-py3-none-any.whl
Size 17.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
baf6446f24896196d1faa04f70689494fcfd79e0a289c698effe62b465f777f7
BLAKE2b-256 checksum
How to use checksums
c88fcdcecced789cc30ee39dfa779519d66077b01670d86e886f7fccf347aba3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.0 CPython/3.10.2 Linux/5.15.0-1024-azure

Release history Release notifications | RSS feed

This release

0.2.4 This release

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.20

2 release files

0.1.19

2 release files

0.1.18

2 release files

0.1.17

2 release files

0.1.16

2 release files

0.1.14

2 release files

0.1.13

2 release files

0.1.12

2 release files

0.1.11

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page