mirror of
https://github.com/cosinekitty/astronomy.git
synced 2026-02-25 11:19:34 -05:00
JS: Implemented VectorObserver.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user