Skip to content

Commit be6b5f5

Browse files
committed
Test refraction=True and extra_precision=True
1 parent 9d172db commit be6b5f5

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

astroquery/jplhorizons/__init__.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,16 @@ class Conf(_config.ConfigNamespace):
6969
'DEC___(a-app)': ('DEC_app', 'deg'),
7070
'R.A._(r-app)': ('RA_app', 'deg'),
7171
'DEC_(r-app)': ('DEC_app', 'deg'),
72+
'R.A._(a-apparent)': ('RA_app', 'deg'),
73+
'DEC_(a-apparent)': ('RA_app', 'deg'),
74+
'R.A._(r-apparent)': ('RA_app', 'deg'),
75+
'DEC_(r-apparent)': ('RA_app', 'deg'),
76+
'R.A._(a-appar)': ('RA_app', 'deg'),
77+
'DEC_(a-appar)': ('RA_app', 'deg'),
78+
'R.A._(r-appar)': ('RA_app', 'deg'),
79+
'DEC_(r-appar)': ('RA_app', 'deg'),
80+
'R.A._(rfct-app)': ('RA_app', 'deg'),
81+
'DEC_(rfct-app)': ('DEC_app', 'deg'),
7282
'dRA*cosD': ('RA_rate', 'arcsec/hour'),
7383
'd(DEC)/dt': ('DEC_rate', 'arcsec/hour'),
7484
'I_dRA*cosD': ('RA_ICRF_rate_app', 'arcsec/hour'),
@@ -79,6 +89,8 @@ class Conf(_config.ConfigNamespace):
7989
'Elevation_(a-app)': ('EL', 'deg'),
8090
'Azi_(r-app)': ('AZ', 'deg'),
8191
'Elev_(r-app)': ('EL', 'deg'),
92+
'Azimuth_(r-app)': ('AZ', 'deg'),
93+
'Elevation_(r-app)': ('EL', 'deg'),
8294
'dAZ*cosE': ('AZ_rate', 'arcsec/minute'),
8395
'd(ELV)/dt': ('EL_rate', 'arcsec/minute'),
8496
'X_(sat-prim)': ('sat_X', 'arcsec'),

astroquery/jplhorizons/tests/test_jplhorizons_remote.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,13 @@ def test_ephemerides_query_five(self):
241241
assert value in res.colnames
242242

243243
def test_ephemerides_query_six(self):
244-
# tests optional constrains for ephemerides queries
244+
"""Tests optional constraints for ephemerides queries.
245+
246+
Also acts as a regression test for issue #2977 using refraction=True and
247+
extra_precision=True
248+
249+
"""
250+
245251
obj = jplhorizons.Horizons(id='3552', id_type='smallbody',
246252
location='I33',
247253
epochs={'start': '2018-05-01',
@@ -251,6 +257,7 @@ def test_ephemerides_query_six(self):
251257
res = obj.ephemerides(skip_daylight=True,
252258
max_hour_angle=8,
253259
refraction=True,
260+
extra_precision=True,
254261
refsystem='B1950',
255262
rate_cutoff=100,
256263
airmass_lessthan=5)

0 commit comments

Comments
 (0)