JS: Implemented VectorObserver.

This commit is contained in:
Don Cross
2021-06-21 16:45:59 -04:00
parent 7b543249b1
commit 90f5ea367e
22 changed files with 10551 additions and 8585 deletions

View File

@@ -2579,7 +2579,7 @@ a `Vector` to an `Observer`.
| Type | Parameter | Description |
| --- | --- | --- |
| [`Vector`](#Vector) | `vector` | The geocentric vector in an equatorial orientation. The components are expressed in astronomical units (AU). The time `vector.t` determines the Earth's rotation. |
| [`Vector`](#Vector) | `vector` | The geocentric equatorial position vector for which to find geographic coordinates. The components are expressed in astronomical units (AU). The time `vector.t` determines the Earth's rotation. |
| `bool` | `ofdate` | Selects the date of the Earth's equator in which `vector` is expressed. The caller may pass `False` to use the orientation of the Earth's equator at noon UTC on January 1, 2000, in which case this function corrects for precession and nutation of the Earth as it was at the moment specified by the the time `vector.t`. Or the caller may pass `True` to use the Earth's equator at `vector.t` as the orientation. |
### Returns: [`Observer`](#Observer)

View File

@@ -1551,7 +1551,6 @@ def _era(time): # Earth Rotation Angle
theta += 360.0
return theta
def _sidereal_time(time):
t = time.tt / 36525.0
eqeq = 15.0 * time._etilt().ee # Replace with eqeq=0 to get GMST instead of GAST (if we ever need it)
@@ -4305,7 +4304,7 @@ def VectorObserver(vector, ofdate):
Parameters
----------
vector : Vector
The geocentric vector in an equatorial orientation.
The geocentric equatorial position vector for which to find geographic coordinates.
The components are expressed in astronomical units (AU).
The time `vector.t` determines the Earth's rotation.
ofdate : bool