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.3.tar.gz (407.1 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.3-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.3-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.3-cp313-cp313-macosx_14_0_arm64.whl (866.4 kB view details)

Uploaded CPython 3.13macOS 14.0+ ARM64

tsyganenko-2020.2.3-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.3-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.3-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.3.tar.gz.

File metadata

  • Download URL: tsyganenko-2020.2.3.tar.gz
  • Upload date:
  • Size: 407.1 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.3.tar.gz
Algorithm Hash digest
SHA256 90d6a1bd0e34d5dbfebdb80070620573b8ef47192a77e8479cac7802f5116f86
MD5 eca7c3c9991104e6483e8c61b748e803
BLAKE2b-256 8672e03e2ec67817e14661d36c96e390e921f868c071d638a431533a4d8ab410

See more details on using hashes here.

Provenance

The following attestation bundles were made for tsyganenko-2020.2.3.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.3-cp313-cp313-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for tsyganenko-2020.2.3-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 3e36ade6e3b986d451f6e5871c66bd4eb4d5199d0f1bc30ef07ff221bac15fde
MD5 b7cf949dfa59833bc181a92831ed44a6
BLAKE2b-256 730aaf79ed47e97ff4437b12396b194e021893304233cfe15df6573d26764c8e

See more details on using hashes here.

Provenance

The following attestation bundles were made for tsyganenko-2020.2.3-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.3-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for tsyganenko-2020.2.3-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4c5056d40cf2cde22a025684e20ff934c8cd734e16e3b9672ed17205de0959dd
MD5 d855ad19824640c69ef4bbc04c5966ff
BLAKE2b-256 44e8f2df5fc25fd6ceca2457066a3b2eb466741954397e2325475b974512f632

See more details on using hashes here.

Provenance

The following attestation bundles were made for tsyganenko-2020.2.3-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.3-cp313-cp313-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for tsyganenko-2020.2.3-cp313-cp313-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 d2008c05f958e58abfc22cf62e25efa8e178baf13210a4bc45be5f4141da11a8
MD5 893337bec3a17a81e224ddd1262c6878
BLAKE2b-256 48f3f08e78c3f492d9ef8c836b589c4388d307384444daf1b9b0bfe59984b574

See more details on using hashes here.

Provenance

The following attestation bundles were made for tsyganenko-2020.2.3-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.3-cp312-cp312-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for tsyganenko-2020.2.3-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 a6aca3aca69a90f33d34c79b31287aef510c057295d4cc37a5d7538b79276f95
MD5 9ebe64d1421d70fab699650d6c0968db
BLAKE2b-256 9a35bff476822d0f7af032ebc4fdc61cc0b1a5742feb6c37640cd01fb79e60b5

See more details on using hashes here.

Provenance

The following attestation bundles were made for tsyganenko-2020.2.3-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.3-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for tsyganenko-2020.2.3-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 67f9f425c68e8acb5b00c1f28b8e82cb7e2fd59e47ad6e14cf40a02e229c645f
MD5 5507084da71a290b99f57e74fa310970
BLAKE2b-256 366cca6c9da8b1b02795056c5be96a2fe0b5619efc63a287a66aae6cf42face4

See more details on using hashes here.

Provenance

The following attestation bundles were made for tsyganenko-2020.2.3-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.3-cp312-cp312-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for tsyganenko-2020.2.3-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 8f3f71a5b5245c3dbbaf05e4fed4103ee5a809edbb17fa14add6b9e879384572
MD5 25032ad85a7b4f90951e2127331cae72
BLAKE2b-256 f8f6d9ed32efd515f8200da81695cce1a0b827ff9d9e2a8bf783feddd02e0f74

See more details on using hashes here.

Provenance

The following attestation bundles were made for tsyganenko-2020.2.3-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