This is a python implementation of conversions to and from the Modified Apex - Rotated Pole (MARP) coordinate system. MARP is based on the Apex coordinate system (Richmond, 1995), but performs a transformation to rotate the pole of the coordinate system to an arbitrary location. This is advantageous for doing calculations at high latitudes because it removes some of the complications associated with performing calculations near the pole of the coordinate system.
This code is heavily based on apexpy.
Installation
The easiest way to install marppy is from PyPI:
pip install marppy
Note: apexpy must already be installed for this to work.
See Installation for more details.
Usage
All functionality is available through the marppy.Marp class. Instantiate the class with the date and the MARP null island (“origin”) coordinates that dictate how the coordinate system will be rotated, then use the various conversion routines.
>>> from marppy import Marp
>>> M = Marp(date=2022.5, lam0=80., phi0=30.)
>>> # geo to marp
>>> M.geo2marp(50.6, 27.6, 300.)
(-4.537915474007271, 39.96811884264296)
>>> # marp to apex
>>> M.marp2apex(5.8, 10.2)
(79.06102883542528, 98.18833972513148)
>>> # apex to marp - entering the original rotation coordinates should return (0,0)
>>> M.apex2marp(80., 30.)
(0.0, 0.0)
See Usage for more details.
Documentation
Full documentation is available on readthedocs.
Metadata
Release files for marppy 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| marppy-1.0.0.tar.gz | 6.0 kB | Without provenance | Details for marppy-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| marppy-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for marppy-1.0.0-py3-none-any.whl |
Total release size: 12.3 kB
Release files / marppy-1.0.0.tar.gz
| Download URL | marppy-1.0.0.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b71b8345b0df3ea5f9ff781637a96aae2d106919642e8135c7e8c829a6607b2c
|
|
BLAKE2b-256 checksum How to use checksums |
515081f8aecdd9d91375973316f09b49e12fc6af05a5e7203f32465d984a2584
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|
Release files / marppy-1.0.0-py3-none-any.whl
| Download URL | marppy-1.0.0-py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
71abfc30dd56b9d86a9a76de382cd98fe2ea1ddd3b10cfa3236edbef5271ed79
|
|
BLAKE2b-256 checksum How to use checksums |
ada80c13b196f2cab8469ebd8cdfbd02c7fbeac48428b7cc64a1e5abac26b927
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|
Security for marppy 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.