Skip to main content

Convert to and from MARP coordinates

Project description

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 geometric complications.

This code is heavily based on apexpy.

Installation

The easiest way to install marppy is from PyPI:

pip install marppy

Usage

All functionality is available through the marppy.Marp class. Instantiate the class with the date and the new MARP “origin” (mlat=0, mlon=0) 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)

Documentation

Full documentation is available on readthedocs.

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

marppy-0.0.2.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

marppy-0.0.2-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file marppy-0.0.2.tar.gz.

File metadata

  • Download URL: marppy-0.0.2.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.13

File hashes

Hashes for marppy-0.0.2.tar.gz
Algorithm Hash digest
SHA256 5a6884771f1d3e1d96355c95bb6921a15982a3ccd11163811349a9579ce94f74
MD5 d8c429fb9953f27dd907fa3f0ce2b6c0
BLAKE2b-256 23390adfc69165549104bb5145e95b24970a652bbfdc25cb9c67999eba438f10

See more details on using hashes here.

File details

Details for the file marppy-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: marppy-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.13

File hashes

Hashes for marppy-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fd05bdad3801bd74b8370215535b5e9cbab3723ae46066449efb571395c22e76
MD5 85c8faef3602b609adde65503414dfc5
BLAKE2b-256 f6ff4aa1f7c1ee7babee7505726ba297b6f93b93f2a655be4b15ffbd2b19e074

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page