-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
88 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
gravitas.earth\_acceleration | ||
============================ | ||
|
||
.. currentmodule:: gravitas | ||
|
||
.. autofunction:: earth_acceleration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
gravitas.moon\_acceleration | ||
=========================== | ||
|
||
.. currentmodule:: gravitas | ||
|
||
.. autofunction:: moon_acceleration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
gravitas | ||
======== | ||
gravitas module | ||
=============== | ||
|
||
.. automodule:: gravitas | ||
.. automodule:: gravitas | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
src | ||
=== | ||
|
||
.. toctree:: | ||
:maxdepth: 4 | ||
|
||
gravitas |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,39 @@ | ||
from typing import Any | ||
from numpy import ndarray | ||
""" | ||
def earth_acceleration(r_ecef_km: ndarray, nmax: int) -> float: | ||
"""Acceleration due to the Earth's gravity field, as defined by the EGM96 model. | ||
Pybind11 example plugin | ||
----------------------- | ||
:param r_ecef_km: Position in ECEF coordinates, in km. | ||
:type r_ecef_km: ndarray [nx3] | ||
:param nmax: Maximum degree of the spherical harmonic expansion, 0 <= nmax <= 360. | ||
:type nmax: int | ||
:return: Acceleration in ECEF coordinates, in km/s^2. | ||
:rtype: float | ||
""" | ||
pass | ||
.. currentmodule:: gravitas | ||
def moon_acceleration(r_mcmf_km: ndarray, nmax: int) -> float: | ||
"""Acceleration due to the Earth's gravity field, as defined by the GRGM360 model produced by the GRAIL mission. | ||
.. autosummary:: | ||
:toctree: _generate | ||
:param r_mcmf_km: Position in MCMF coordinates, in km. | ||
:type r_mcmf_km: ndarray [nx3] | ||
:param nmax: Maximum degree of the spherical harmonic expansion, 0 <= nmax <= 360. | ||
:type nmax: int | ||
:return: Acceleration in MCMF coordinates, in km/s^2. | ||
:rtype: float | ||
earth_acceleration | ||
moon_acceleration | ||
""" | ||
from __future__ import annotations | ||
import numpy | ||
__all__ = ['earth_acceleration', 'moon_acceleration'] | ||
def earth_acceleration(arg0: numpy.ndarray, arg1: int) -> numpy.ndarray: | ||
""" | ||
Acceleration due to the Earth's gravity field, as defined by the EGM96 model. | ||
:param r_ecef_km: Position in ECEF coordinates, in km. | ||
:type r_ecef_km: ndarray [nx3] | ||
:param nmax: Maximum degree of the spherical harmonic expansion, 0 <= nmax <= 360. | ||
:type nmax: int | ||
:return: Acceleration in ECI coordinates, in km/s^2. | ||
:rtype: float | ||
""" | ||
def moon_acceleration(arg0: numpy.ndarray, arg1: int) -> numpy.ndarray: | ||
""" | ||
Acceleration due to the Moon's gravity field, as defined by the GRGM360 model. | ||
:param r_mcmf_km: Position in MCMF coordinates, in km. | ||
:type r_mcmf_km: ndarray [nx3] | ||
:param nmax: Maximum degree of the spherical harmonic expansion, 0 <= nmax <= 360. | ||
:type nmax: int | ||
:return: Acceleration in MCI coordinates, in km/s^2. | ||
:rtype: float | ||
""" | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters