@@ -78,7 +78,7 @@ must still be entered in east-longitude, which means they must be negative; Hori
78
78
will raise an error if given any positive longitude value for such bodies. Instead enter
79
79
the west-longitude - 360. For instance, a site on Mars (id code 499) at 30 degrees
80
80
longitude, 30 degrees latitude, 0 km elevation should be specified as
81
- ``{'body': 499, 'elevation': 0, 'lon': -330, 'lat': 30} ``.
81
+ ``{'body': 499, 'elevation': 0 * u.km , 'lon': -330 * u.deg , 'lat': 30 * u.deg } ``.
82
82
2. This does not apply to the Earth, Moon, and Sun. Although they are prograde,
83
83
Horizons interprets east-longitude as positive and west-longitude as negative for these
84
84
bodies.
@@ -96,9 +96,9 @@ as the observer's location, and Ceres as the target:
96
96
97
97
.. doctest-remote-data ::
98
98
99
- >>> statue_of_liberty = {' lon' : - 74.0466891 ,
100
- ... ' lat' : 40.6892534 ,
101
- ... ' elevation' : 0.093 }
99
+ >>> statue_of_liberty = {' lon' : - 74.0466891 * u.deg ,
100
+ ... ' lat' : 40.6892534 * u.deg ,
101
+ ... ' elevation' : 0.093 * u.km }
102
102
>>> obj = Horizons(id = ' Ceres' ,
103
103
... location= statue_of_liberty,
104
104
... epochs= 2458133.33546 )
@@ -116,8 +116,8 @@ at a particular point in time to the center of the crater Double:
116
116
117
117
.. doctest-remote-data ::
118
118
119
- >>> ce_2 = {' lon' : 23.522 , ' lat' : 0.637 , ' elevation' : 181.2 , ' body' : 301 }
120
- >>> double = {' lon' : 23.47 , ' lat' : 0.67 , ' elevation' : 0 , ' body' : 301 }
119
+ >>> ce_2 = {' lon' : 23.522 * u.deg , ' lat' : 0.637 * u.deg , ' elevation' : 181.2 * u.km , ' body' : 301 }
120
+ >>> double = {' lon' : 23.47 * u.deg , ' lat' : 0.67 * u.deg , ' elevation' : 0 * u.km , ' body' : 301 }
121
121
>>> obj = Horizons(id = double, location = ce_2, epochs = 2454483.84247 )
122
122
>>> vecs = obj.vectors()
123
123
>>> distance_km = (vecs[' x' ] ** 2 + vecs[' y' ] ** 2 + vecs[' z' ] ** 2 ) ** 0.5 * 1.496e8
0 commit comments