Skip to main content

A Python wrapper for N A Tsyganenko’s field-line tracing routines.

Project description

tsyganenko

Zenodo badge Tests badge

A Python wrapper for N. A. Tsyganenko’s field-line tracing routines.

For information on the models and routines that are wrapped by this package, please visit Empirical Magnetosphere Models by N. A. Tsyganenko.

Citation

When using this software, please cite the Zenodo record as well as citing the relevant papers.

Copyright

Geopack and the other Fortran code in this repository are developed by N A Tsyganenko et al. and licenced under the GPL v3 or later.

The Python wrappers were originally written by Sebastien de Larquier in 2012. They are now maintained by John C Coxon. Small edits have been made to Geopack-2008.for to allow for f2py compilation. Code in this repository other than the original Fortran is licenced under the MIT licence.

Funding

John C Coxon was supported during this work by Science and Technology Facilities Council (STFC) Consolidated Grants ST/R000719/1 and ST/V000942/1, and Ernest Rutherford Fellowship ST/V004883/1.

Installation

pip install tsyganenko
pytest tests/test.py

Please note that at this time, Windows is not well-supported by this package; if you would like to help resolve this, please check out issue #15.

Tests take around 1 hour to run, so don’t be alarmed if you see this behaviour on your machine.

The tests are run against the csv files in the repository which were created on an Apple Silicon (M1) Mac. Compiling the package on other machines leads to disparities which reflect the change in underlying architecture rather than reflecting changes in code. As such, by default, tests.py is extremely permissive; it will test to a relative accuracy of 0.5 or an absolute accuracy of 10.0. If you want to run tests with the pytest defaults, run pytest tests/test_exact.py, and expect a large number of tests to fail unless you are running on an M1 chip.

Usage

To use this module, simply follow the example provided in the Trace object docstring.

from tsyganenko.trace import Trace
help(Trace)

Alternatively, there are example notebooks provided which can be used to explore what this module can do:

cd notebooks
jupyter notebook

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

tsyganenko-2020.2.1.tar.gz (407.2 kB view details)

Uploaded Source

Built Distributions

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

tsyganenko-2020.2.1-cp313-cp313-musllinux_1_2_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

tsyganenko-2020.2.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

tsyganenko-2020.2.1-cp313-cp313-macosx_14_0_arm64.whl (866.4 kB view details)

Uploaded CPython 3.13macOS 14.0+ ARM64

tsyganenko-2020.2.1-cp312-cp312-musllinux_1_2_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

tsyganenko-2020.2.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

tsyganenko-2020.2.1-cp312-cp312-macosx_14_0_arm64.whl (866.4 kB view details)

Uploaded CPython 3.12macOS 14.0+ ARM64

File details

Details for the file tsyganenko-2020.2.1.tar.gz.

File metadata

  • Download URL: tsyganenko-2020.2.1.tar.gz
  • Upload date:
  • Size: 407.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for tsyganenko-2020.2.1.tar.gz
Algorithm Hash digest
SHA256 4a05ffe17db4ac4c7d3f64e7a72cb2b7f4f17403c36998537030bc0c0f50f554
MD5 f3e7c96f1b515e8c4167ddf17972e4a3
BLAKE2b-256 d078e3a663345b6aa3251121e350d197768ce468fdc5e5d7d69ede88475888f4

See more details on using hashes here.

Provenance

The following attestation bundles were made for tsyganenko-2020.2.1.tar.gz:

Publisher: pypi.yaml on johncoxon/tsyganenko

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tsyganenko-2020.2.1-cp313-cp313-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for tsyganenko-2020.2.1-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 2ecfc73c5971d4ed07acdb66fa1d6e39ada0a9e0a22aef8ace3d4491341f8320
MD5 81e4dd727dc46f544d30a6ae45287032
BLAKE2b-256 e11c00a5eedd9729ad24faf00086be2e13db5e0cfb401fc5685e92283e0dddd5

See more details on using hashes here.

Provenance

The following attestation bundles were made for tsyganenko-2020.2.1-cp313-cp313-musllinux_1_2_x86_64.whl:

Publisher: pypi.yaml on johncoxon/tsyganenko

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tsyganenko-2020.2.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for tsyganenko-2020.2.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fb43395946a474788bbb05056cce6481a53f2c351d748e00736c5dbe401e99c3
MD5 2f67799aed1aeee8a90d4b2eaa35e650
BLAKE2b-256 bde59d1cfe972aed348985b8573487910b76a5da9730dac52ad41c05b4f4f3b7

See more details on using hashes here.

Provenance

The following attestation bundles were made for tsyganenko-2020.2.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: pypi.yaml on johncoxon/tsyganenko

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tsyganenko-2020.2.1-cp313-cp313-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for tsyganenko-2020.2.1-cp313-cp313-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 7e4c41fd992e22564b7f826905ce4ac882f12e7b3531aaeebeea30bed7ded3af
MD5 38b89c6471f62bce69a5185e391054ee
BLAKE2b-256 f3ca109f25a78f61457ec27cfeeb661a7744986243d08c91c27f9e65cec347bc

See more details on using hashes here.

Provenance

The following attestation bundles were made for tsyganenko-2020.2.1-cp313-cp313-macosx_14_0_arm64.whl:

Publisher: pypi.yaml on johncoxon/tsyganenko

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tsyganenko-2020.2.1-cp312-cp312-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for tsyganenko-2020.2.1-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 a07619e6651d471acbf50a6bcbcde69910b03fc1bba6d46774a20ce14db377bf
MD5 e0b2f4d67313824ef5b450402ac082af
BLAKE2b-256 e1669e3bc175ee8cbab7c9b892265a6b522875d3357e52831e3856c5fec4c39a

See more details on using hashes here.

Provenance

The following attestation bundles were made for tsyganenko-2020.2.1-cp312-cp312-musllinux_1_2_x86_64.whl:

Publisher: pypi.yaml on johncoxon/tsyganenko

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tsyganenko-2020.2.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for tsyganenko-2020.2.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ae44dbcc3ae5388ace214da16c3646c4afbe8538260921d87257dd03782c9f82
MD5 414ead10d9a07236ac6e409dbd3095d3
BLAKE2b-256 c8a38d487c4eecbeb845f722b6bad4093146b7a857277fd6ca683c7680cfe1eb

See more details on using hashes here.

Provenance

The following attestation bundles were made for tsyganenko-2020.2.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: pypi.yaml on johncoxon/tsyganenko

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tsyganenko-2020.2.1-cp312-cp312-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for tsyganenko-2020.2.1-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 630fd499f04e0059a7c1c2ee451c8c7d6aafd962758486972e22ef9c00f779bc
MD5 5736c00165c6aebbe0451a4a6e980565
BLAKE2b-256 e934e04dedeaad7dfa272b13059959bb5ef8f53f69f0682ff72bf8e5a2c65bb7

See more details on using hashes here.

Provenance

The following attestation bundles were made for tsyganenko-2020.2.1-cp312-cp312-macosx_14_0_arm64.whl:

Publisher: pypi.yaml on johncoxon/tsyganenko

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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