Skip to main content

The lgrs package is software to support the Lunar Grid Reference System.

Project description

Lunar Grid Reference System library

https://img.shields.io/pypi/v/lgrs.svg

The lgrs package is software to support the Lunar Grid Reference System and also provides utility functions for coordinate projections until the Lunar Transverse Mercator (LTM) and Lunar Polar Stereographic (LPS) projections are made available in the PROJ library.

At the moment, this repo is under significant development and change as we attempt to craft various pieces of code. It is very messy and a work-in-process. Nothing is guaranteed about structure until we pass the 1.0 version.

Reference document that this library follows is McClernan, M.T., Dennis, M.L., Theriot, I.H., Hare, T.M., Archinal, B.A., Ostrach, L.R., Hunter, M.A., Miller, M.J., Beyer, R.A., Annex, A.M., and Lawrence, S.J., 2025, Lunar grid systems, coordinate systems, and map projections for the Artemis missions and lunar surface navigation: U.S. Geological Survey Techniques and Methods, book 11, chap. E1, 308 p., DOI: 10.3133/tm11E1.

The code in the lgrs.reference modules are from Dr. McClernan’s “mark 7.2” version.

The report is also available here: https://www.usgs.gov/publications/lunar-grid-systems-coordinate-systems-and-map-projections-artemis-missions-and-lunar

Installation

The lgrs library is available on PyPI, and can be pip-installed:

$> pip install lgrs

Alternately, you can clone or download this repository.

It is highly suggested to install this into a virtual Python environment.

Change directory to where you have downloaded this repository after you have set up your virtual environment, just do this:

$> pip install

or:

$> make install

If you use conda for your virtual environment and install dependencies via conda, you can do this:

$> conda create -n lgrs
$> conda activate lgrs
$> conda env update --file environment.yml
$> pip install --no-deps .

Usage

Examples and how to get started with the lgrs library can be found in our usage guide.

Contributing

Feedback, issues, and contributions are always gratefully welcomed. See the contributing guide for details on how to help and setup a development environment.

Credits

The lgrs library was developed in the open at the SETI Institute, based on open code originally developed by the United States Geological Survey.

See the AUTHORS file for a complete list of developers.

License

The lgrs software is licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

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

lgrs-0.2.0.tar.gz (137.1 kB view details)

Uploaded Source

Built Distribution

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

lgrs-0.2.0-py3-none-any.whl (138.6 kB view details)

Uploaded Python 3

File details

Details for the file lgrs-0.2.0.tar.gz.

File metadata

  • Download URL: lgrs-0.2.0.tar.gz
  • Upload date:
  • Size: 137.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for lgrs-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b9e2c8ec81d3279f18763d991782c3d007528437aa1ee5e818a129499212392e
MD5 d33ff2f3346ffd0fea767de371d5f00c
BLAKE2b-256 805c1cb6daac830758c950665534ec2405bdf1f4b1fe2c7aa0e58911f1918802

See more details on using hashes here.

File details

Details for the file lgrs-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: lgrs-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 138.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for lgrs-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 49a5a9b3a91c313f0c985cac89bf79f977bbc738b089cc46961c0adbd6ee0348
MD5 6969be71d436d47260c856f7070d4823
BLAKE2b-256 30a26a08637b6599b8d5cfd45b6e38eb53ef28a4e6752b89bb365a669947355f

See more details on using hashes here.

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