lunarsky


Namelunarsky JSON
Version 0.2.6 PyPI version JSON
download
home_pagehttps://github.com/aelanman/lunarsky
SummaryAstropy support for selenocentric (Moon)reference frames and lunar surface observatories.
upload_time2024-12-12 20:54:15
maintainerNone
docs_urlNone
authorAdam E. Lanman
requires_pythonNone
licenseBSD
keywords astronomy moon spice
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            # lunarsky


[![Build Status](https://github.com/aelanman/lunarsky/actions/workflows/testsuite.yaml/badge.svg)](https://github.com/aelanman/lunarsky/actions)
[![codecov](https://codecov.io/gh/aelanman/lunarsky/branch/main/graph/badge.svg)](https://codecov.io/gh/aelanman/lunarsky)


An extension to `astropy`, providing selenocentric and topocentric reference frames
for the Moon and transformations of star positions from the ICRS system to these
frames. This is to describe the sky as observed from the surface of the Moon.

Non-relativistic transformations are calculated using the SPICE toolkit. Relativistic
corrections (stellar aberration) will be added.


## Dependencies
* `numpy`
* `astropy>=3.0`
* `jplephem`
* `spiceypy`

## Installation

`lunarsky` may be installed with pip:

```
pip install lunarsky
```

or from the repository:
```
git clone https://github.com/aelanman/lunarsky
python setup.py install
```

## Usage

![mcmf_coords](./docs/figure.png)

Definition of the MCMF and lunar topocentric frames, from Fig. 2 of [Ye et al.][1]

`lunarsky` provides the following classes:

* `MCMF` – The "Moon-Centered-Moon-Fixed" frame, this is a cartesian reference frame that rotates
with the moon. This is chosen to be the Mean Earth/Polar frame, with a Z axis defined by the mean rotation axis of the Moon and a prime meridian defined by the mean direction to the Earth's center (the X axis is through this meridian 90° from the Z axis, and Y is defined such that XYZ is a right-handed system). This is analogous to `astropy.coordinates.builtin.ITRS`.
* LunarTopo – A topocentric (East/North/Up) frame defined at a position on the Moon's surface. This is analogous to `astropy.coordinates.builtin.AltAz`.
* `MoonLocation` – Analogous to the `astropy.coordinates.EarthLocation` class, this describes
positions on the Moon in either selenocentric (x, y, z) or selenodetic (lat, lon, height) coordinates.
The cartesian axes of the selenocentric system are those of the MCMF frame. Selenodetic coordinates can be defined relative to a few different ellipsoid models, but the default is just a sphere of radius 1737.1 km.
* `SkyCoord` – A replacement for `astropy.coordinates.SkyCoord`, with modifications that ensure compatibility with the `MoonLocation` class.
* `Time` – A replacement for the `astropy.time.Time` class, which can accept a `MoonLocation` instance as its location parameter, allowing for the calculation of local sidereal times on the Moon. The LST of an observer on the Moon is defined as the right ascension of the zenith.


## Credit

This package makes use of the ``spiceypy`` wrapper [2] for the JPL SPICE Toolkit, produced by the NASA Navigation and Ancillary Information Facility (NAIF) [3] [4]. The transformations are defined using data in kernel files ``pck/moon_pa_de421_1900-2050.bpc``, ``moon_080317.tf``, and ``moon_assoc_me.tf``. These may be found at [the NAIF website](https://naif.jpl.nasa.gov/pub/naif/generic_kernels), and were produced by Nat Bachman (NAIF/JPL) in March 2008. Further information may be found in the comments in these files in the `data` directory.

## References
[1]: Ye, Hanlin, et al. "Looking Vector Direction Analysis for the Moon-Based Earth Observation Optical Sensor." IEEE Journal of Selected Topics in Applied Earth Observations and Remote Sensing, vol. 11, no. 11, Nov. 2018, pp. 4488–99. IEEE Xplore, doi:10.1109/JSTARS.2018.2870247.

[2]: Annex et al., (2020). SpiceyPy: a Pythonic Wrapper for the SPICE Toolkit. Journal of Open Source Software, 5(46), 2050, https://doi.org/10.21105/joss.02050

[3]: Acton, C.H.; "Ancillary Data Services of NASA's Navigation and Ancillary Information Facility;" Planetary and Space Science, Vol. 44, No. 1, pp. 65-70, 1996.

[4]: Charles Acton, Nathaniel Bachman, Boris Semenov, Edward Wright; A look toward the future in the handling of space science mission geometry; Planetary and Space Science (2017); DOI 10.1016/j.pss.2017.02.013; https://doi.org/10.1016/j.pss.2017.02.013

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/aelanman/lunarsky",
    "name": "lunarsky",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "astronomy moon spice",
    "author": "Adam E. Lanman",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/e1/3d/29edd202c05fafaa926893d6d29bee656aad7ec2b197538d092c8b0f49a1/lunarsky-0.2.6.tar.gz",
    "platform": null,
    "description": "# lunarsky\n\n\n[![Build Status](https://github.com/aelanman/lunarsky/actions/workflows/testsuite.yaml/badge.svg)](https://github.com/aelanman/lunarsky/actions)\n[![codecov](https://codecov.io/gh/aelanman/lunarsky/branch/main/graph/badge.svg)](https://codecov.io/gh/aelanman/lunarsky)\n\n\nAn extension to `astropy`, providing selenocentric and topocentric reference frames\nfor the Moon and transformations of star positions from the ICRS system to these\nframes. This is to describe the sky as observed from the surface of the Moon.\n\nNon-relativistic transformations are calculated using the SPICE toolkit. Relativistic\ncorrections (stellar aberration) will be added.\n\n\n## Dependencies\n* `numpy`\n* `astropy>=3.0`\n* `jplephem`\n* `spiceypy`\n\n## Installation\n\n`lunarsky` may be installed with pip:\n\n```\npip install lunarsky\n```\n\nor from the repository:\n```\ngit clone https://github.com/aelanman/lunarsky\npython setup.py install\n```\n\n## Usage\n\n![mcmf_coords](./docs/figure.png)\n\nDefinition of the MCMF and lunar topocentric frames, from Fig. 2 of [Ye et al.][1]\n\n`lunarsky` provides the following classes:\n\n* `MCMF` \u2013 The \"Moon-Centered-Moon-Fixed\" frame, this is a cartesian reference frame that rotates\nwith the moon. This is chosen to be the Mean Earth/Polar frame, with a Z axis defined by the mean rotation axis of the Moon and a prime meridian defined by the mean direction to the Earth's center (the X axis is through this meridian 90\u00b0 from the Z axis, and Y is defined such that XYZ is a right-handed system). This is analogous to `astropy.coordinates.builtin.ITRS`.\n* LunarTopo \u2013 A topocentric (East/North/Up) frame defined at a position on the Moon's surface. This is analogous to `astropy.coordinates.builtin.AltAz`.\n* `MoonLocation` \u2013 Analogous to the `astropy.coordinates.EarthLocation` class, this describes\npositions on the Moon in either selenocentric (x, y, z) or selenodetic (lat, lon, height) coordinates.\nThe cartesian axes of the selenocentric system are those of the MCMF frame. Selenodetic coordinates can be defined relative to a few different ellipsoid models, but the default is just a sphere of radius 1737.1 km.\n* `SkyCoord` \u2013 A replacement for `astropy.coordinates.SkyCoord`, with modifications that ensure compatibility with the `MoonLocation` class.\n* `Time` \u2013 A replacement for the `astropy.time.Time` class, which can accept a `MoonLocation` instance as its location parameter, allowing for the calculation of local sidereal times on the Moon. The LST of an observer on the Moon is defined as the right ascension of the zenith.\n\n\n## Credit\n\nThis package makes use of the ``spiceypy`` wrapper [2] for the JPL SPICE Toolkit, produced by the NASA Navigation and Ancillary Information Facility (NAIF) [3] [4]. The transformations are defined using data in kernel files ``pck/moon_pa_de421_1900-2050.bpc``, ``moon_080317.tf``, and ``moon_assoc_me.tf``. These may be found at [the NAIF website](https://naif.jpl.nasa.gov/pub/naif/generic_kernels), and were produced by Nat Bachman (NAIF/JPL) in March 2008. Further information may be found in the comments in these files in the `data` directory.\n\n## References\n[1]: Ye, Hanlin, et al. \"Looking Vector Direction Analysis for the Moon-Based Earth Observation Optical Sensor.\" IEEE Journal of Selected Topics in Applied Earth Observations and Remote Sensing, vol. 11, no. 11, Nov. 2018, pp. 4488\u201399. IEEE Xplore, doi:10.1109/JSTARS.2018.2870247.\n\n[2]: Annex et al., (2020). SpiceyPy: a Pythonic Wrapper for the SPICE Toolkit. Journal of Open Source Software, 5(46), 2050, https://doi.org/10.21105/joss.02050\n\n[3]: Acton, C.H.; \"Ancillary Data Services of NASA's Navigation and Ancillary Information Facility;\" Planetary and Space Science, Vol. 44, No. 1, pp. 65-70, 1996.\n\n[4]: Charles Acton, Nathaniel Bachman, Boris Semenov, Edward Wright; A look toward the future in the handling of space science mission geometry; Planetary and Space Science (2017); DOI 10.1016/j.pss.2017.02.013; https://doi.org/10.1016/j.pss.2017.02.013\n",
    "bugtrack_url": null,
    "license": "BSD",
    "summary": "Astropy support for selenocentric (Moon)reference frames and lunar surface observatories.",
    "version": "0.2.6",
    "project_urls": {
        "Download": "https://github.com/aelanman/lunarsky/archive/refs/tags/v0.1.1.tar.gz",
        "Homepage": "https://github.com/aelanman/lunarsky"
    },
    "split_keywords": [
        "astronomy",
        "moon",
        "spice"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1d96b7c87fc2df203ea2d26e0690b6376f458876d75e0edc5e8b26e692788351",
                "md5": "498a900cf194d8f2d5d494d80561bca2",
                "sha256": "963fccb2e11fe0be8ba630dd261f82f86205bf0a607c0cb6d3a173a0c235d8d6"
            },
            "downloads": -1,
            "filename": "lunarsky-0.2.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "498a900cf194d8f2d5d494d80561bca2",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 1702340,
            "upload_time": "2024-12-12T20:54:13",
            "upload_time_iso_8601": "2024-12-12T20:54:13.963591Z",
            "url": "https://files.pythonhosted.org/packages/1d/96/b7c87fc2df203ea2d26e0690b6376f458876d75e0edc5e8b26e692788351/lunarsky-0.2.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e13d29edd202c05fafaa926893d6d29bee656aad7ec2b197538d092c8b0f49a1",
                "md5": "36c26ad871111c54806bb1cf79d488b8",
                "sha256": "ee720c32066ad4991b213fc49396e7a66ad265e60f2cd62e623bba5f1a2e8efb"
            },
            "downloads": -1,
            "filename": "lunarsky-0.2.6.tar.gz",
            "has_sig": false,
            "md5_digest": "36c26ad871111c54806bb1cf79d488b8",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 1724498,
            "upload_time": "2024-12-12T20:54:15",
            "upload_time_iso_8601": "2024-12-12T20:54:15.513251Z",
            "url": "https://files.pythonhosted.org/packages/e1/3d/29edd202c05fafaa926893d6d29bee656aad7ec2b197538d092c8b0f49a1/lunarsky-0.2.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-12 20:54:15",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "aelanman",
    "github_project": "lunarsky",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "lcname": "lunarsky"
}
        
Elapsed time: 9.76279s