Geopack08 wrapper for Python
Project description
PyGeopack
A Python wrapper for Geopack-2008. This includes the T89, T96, T01 and TS05 (or is it TS04? I don't know...) magnetic field models for Earth's magnetosphere. See https://ccmc.gsfc.nasa.gov/modelweb/magnetos/tsygan.html and http://geo.phys.spbu.ru/~tsyganenko/modeling.html for more information.
NOTE: T01 doesn't currently work - there's a segmentation fault for some reason.
Requirements
The following Python packages will be installed automatically:
- numpy
- PyFileIO
- RecarrayTools
- DateTimeTools
- kpindex
During the first import of the PyGeopack
module, some C and Fortran
needs compiling first, so the following will be needed:
- gcc
- make
- gfortran
Installation
Firstly a couple of environment variables need setting up: $KPDATA_PATH
and $GEOPACK_PATH
, which will point to the Kp index data and the
Geopack data, respectively. This can be done by including the following
in your ~/.bashrc
file, or by running it in the terminal before
starting Python:
export KPDATA_PATH=/path/to/kp
export GEOPACK_PATH=/path/to/geopack/data
where both of those directories must be writable by the current user, unless the data already exist in them.
Then simply install using pip3:
pip3 install PyGeopack --user
or by downloading the latest release on GitHub and running:
pip3 install PyGeopack-0.0.9-py3-none-any.whl --user
Post-install
After installation, the PyGeopack module will attempt to locate the
OMNI data required for the models. If these data exist already in
$GEOPACK_PATH
then it will load into memory. If they don't exist, then
the user will be prompted for authorisation to download the data, to
allow the data download, press 'y', otherwise press 'n'. The data
download and conversion may take a little while.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file PyGeopack-0.0.9-py3-none-any.whl
.
File metadata
- Download URL: PyGeopack-0.0.9-py3-none-any.whl
- Upload date:
- Size: 40.8 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9820e36e3cde4cad9e42154f2dfbfda95daec9f50a58014e2908b8286c6e92cf |
|
MD5 | d53ec836a06f6a648ca88a356d23a45f |
|
BLAKE2b-256 | 4b74f4aead9f5353a56f76535438c780ba2421750c6d0e45c9f7e44c86282f26 |