Skip to content

Commit 360abfa

Browse files
committed
tcoor=6 is not a valid option any more
1 parent 0ef811c commit 360abfa

File tree

3 files changed

+16
-115
lines changed

3 files changed

+16
-115
lines changed

astroquery/imcce/core.py

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def get_ephemerides_async(self, targetname, *, objtype='asteroid',
9494
Type of coordinates to be calculated: ``1``: spherical, ``2``:
9595
rectangular, ``3``: local coordinates (azimuth and elevation),
9696
``4``: hour angle coordinates, ``5``: dedicated to observation,
97-
``6``: dedicated to AO observation. Default: ``1``
97+
Default: ``1``
9898
9999
timescale : str, optional
100100
The time scale used in the computation of the ephemerides:
@@ -146,40 +146,38 @@ def get_ephemerides_async(self, targetname, *, objtype='asteroid',
146146
+==================+===============================================+
147147
| ``target`` | Target name (str, 1, 2, 3, 4, 5, 6 ) |
148148
+------------------+-----------------------------------------------+
149-
| ``epoch`` | Ephemerides epoch (JD, float, 1, 2, 3, 4, 5, |
150-
| | 6) |
149+
| ``epoch`` | Ephemerides epoch (JD, float, 1, 2, 3, 4, 5) |
151150
+------------------+-----------------------------------------------+
152151
| ``RA`` | Target RA at ``ephtype`` (deg, float, 1) |
153152
+------------------+-----------------------------------------------+
154153
| ``DEC`` | Target declination at ``ephtype`` (deg, |
155154
| | float, 1, 4, 5) |
156155
+------------------+-----------------------------------------------+
157-
| ``RAJ2000`` | Target RA at J2000 (deg, float, 5, 6) |
156+
| ``RAJ2000`` | Target RA at J2000 (deg, float, 5) |
158157
+------------------+-----------------------------------------------+
159-
| ``DECJ2000`` | Target declination at J2000 (deg, float, 5, 6)|
158+
| ``DECJ2000`` | Target declination at J2000 (deg, float, 5) |
160159
+------------------+-----------------------------------------------+
161160
| ``AZ`` | Target azimuth (deg, float, 3, 5) |
162161
+------------------+-----------------------------------------------+
163162
| ``EL`` | Target elevation (deg, float, 3, 5) |
164163
+------------------+-----------------------------------------------+
165164
| ``delta`` | Distance from observer (au, float, 1, 2, 3, |
166-
| | 4, 5, 6) |
165+
| | 4, 5) |
167166
+------------------+-----------------------------------------------+
168-
| ``delta_rate`` | Rate in observer distance (km/s, float, |
169-
| | 1, 5, 6) |
167+
| ``delta_rate`` | Rate in observer distance (km/s, float, 1, 5) |
170168
+------------------+-----------------------------------------------+
171169
| ``V`` | Apparent visual magnitude (mag, float, 1, 2, |
172-
| | 3, 4, 5, 6) |
170+
| | 3, 4, 5) |
173171
+------------------+-----------------------------------------------+
174-
| ``alpha`` | Solar phase angle (deg, 1, 2, 3, 4, 5, 6) |
172+
| ``alpha`` | Solar phase angle (deg, 1, 2, 3, 4, 5) |
175173
+------------------+-----------------------------------------------+
176-
| ``elong`` | Solar elongation angle (deg, 1, 2, 3, 4, 5, 6)|
174+
| ``elong`` | Solar elongation angle (deg, 1, 2, 3, 4, 5) |
177175
+------------------+-----------------------------------------------+
178176
| ``RAcosD_rate`` | Rate of motion in RA * cos(DEC) (arcsec/min, |
179-
| | float, 1, 5, 6) |
177+
| | float, 1, 5) |
180178
+------------------+-----------------------------------------------+
181179
| ``DEC_rate`` | Rate of motion in DEC (arcsec/min, float, 1, |
182-
| | 5, 6) |
180+
| | 5) |
183181
+------------------+-----------------------------------------------+
184182
| ``x`` | X position state vector (au, float, 2) |
185183
+------------------+-----------------------------------------------+
@@ -195,8 +193,7 @@ def get_ephemerides_async(self, targetname, *, objtype='asteroid',
195193
+------------------+-----------------------------------------------+
196194
| ``rv`` | Radial velocity (km/s, float, 2) |
197195
+------------------+-----------------------------------------------+
198-
| ``heldist`` | Target heliocentric distance (au, float, 2, |
199-
| | 5, 6) |
196+
| ``heldist`` | Target heliocentric distance (au, float, 2, 5)|
200197
+------------------+-----------------------------------------------+
201198
| ``x_h`` | X heliocentric position vector (au, float, 2) |
202199
+------------------+-----------------------------------------------+
@@ -212,13 +209,13 @@ def get_ephemerides_async(self, targetname, *, objtype='asteroid',
212209
+------------------+-----------------------------------------------+
213210
| ``hourangle`` | Target hour angle (deg, float, 4, 5) |
214211
+------------------+-----------------------------------------------+
215-
| ``siderealtime`` | Local sidereal time (hr, float, 5, 6) |
212+
| ``siderealtime`` | Local sidereal time (hr, float, 5) |
216213
+------------------+-----------------------------------------------+
217-
| ``refraction`` | Atmospheric refraction (arcsec, float, 5, 6) |
214+
| ``refraction`` | Atmospheric refraction (arcsec, float, 5) |
218215
+------------------+-----------------------------------------------+
219-
| ``airmass`` | Target airmass (float, 5, 6) |
216+
| ``airmass`` | Target airmass (float, 5) |
220217
+------------------+-----------------------------------------------+
221-
| ``posunc`` | Positional uncertainty (arcsec, float, 5, 6) |
218+
| ``posunc`` | Positional uncertainty (arcsec, float, 5) |
222219
+------------------+-----------------------------------------------+
223220
224221

astroquery/imcce/tests/data/3552_coordtype6.dat

Lines changed: 0 additions & 83 deletions
This file was deleted.

astroquery/imcce/tests/test_miriade.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -99,19 +99,6 @@ def test_observation_coordinates(patch_request):
9999
assert eph[cols[i]].unit == units[i]
100100

101101

102-
def test_aoobservation_coordinates(patch_request):
103-
eph = Miriade.get_ephemerides('3552', coordtype=6)
104-
cols = ('target', 'epoch', 'siderealtime', 'RAJ2000', 'DECJ2000',
105-
'refraction', 'V', 'delta', 'heldist', 'alpha',
106-
'elong', 'posunc', 'RAcosD_rate', 'DEC_rate', 'delta_rate')
107-
units = (None, u.d, u.h, u.deg, u.deg, u.arcsec, u.mag,
108-
u.au, u.au, u.deg, u.deg, u.arcsec, u.arcsec / u.minute,
109-
u.arcsec / u.minute, u.km / u.s)
110-
for i in range(len(cols)):
111-
assert cols[i] in eph.columns
112-
assert eph[cols[i]].unit == units[i]
113-
114-
115102
def test_get_raw_response(patch_request):
116103
raw_eph = Miriade.get_ephemerides(
117104
'3552', coordtype=1, get_raw_response=True)

0 commit comments

Comments
 (0)