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.3.0.tar.gz (143.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.3.0-py3-none-any.whl (145.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lgrs-0.3.0.tar.gz
  • Upload date:
  • Size: 143.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.3.0.tar.gz
Algorithm Hash digest
SHA256 95a3d81947db1d243f7b90f1ead2a6b9bb1bf973150d8322a94151e4a43883c8
MD5 6ae705b2e39ba5ca336c9ec1ce15e7f7
BLAKE2b-256 38e1c4172712ab3a43e109c88f72f780062842c79cc1f9e00b4481a7eb8dddec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lgrs-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 145.9 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d9f7e7b0ff3fa293a576848c080c42ca2d54daef59424154f732e8785d71ab18
MD5 b205678e625cd89d0c42cfb1d036b36d
BLAKE2b-256 e7d4b4c592b9ba32836afdbddf0a63f33c07bec2b6e2b49c97ff548d93f2474b

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