diff --git a/CHANGES.rst b/CHANGES.rst index e3af10bd20..774fefa9c2 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -36,6 +36,11 @@ gaia - New method cross_match_basic that simplifies the positional x-match method [#3320] - new DR4 datalink retrieve type MEAN_SPECTRUM_RVS [#3342] +jplhorizons +^^^^^^^^^^^ + +- Fixed incorrect ``refplane`` parameter value: the API did not accept ``BODY EQUATOR`` but required ``BODY``. [#3370] + linelists.cdms ^^^^^^^^^^^^^^ diff --git a/astroquery/jplhorizons/core.py b/astroquery/jplhorizons/core.py index 34bf0f9f06..1cd68267b1 100644 --- a/astroquery/jplhorizons/core.py +++ b/astroquery/jplhorizons/core.py @@ -906,7 +906,7 @@ def elements_async(self, *, get_query_payload=False, ('OBJ_DATA', 'YES'), ('REF_SYSTEM', refsystem), ('REF_PLANE', {'ecliptic': 'ECLIPTIC', 'earth': 'FRAME', - 'body': "'BODY EQUATOR'"}[refplane]), + 'body': 'BODY'}[refplane]), ('TP_TYPE', {'absolute': 'ABSOLUTE', 'relative': 'RELATIVE'}[tp_type])]) @@ -1149,7 +1149,7 @@ def vectors_async(self, *, get_query_payload=False, ('REF_PLANE', {'ecliptic': 'ECLIPTIC', 'earth': 'FRAME', 'frame': 'FRAME', - 'body': "'BODY EQUATOR'"}[refplane]), + 'body': 'BODY'}[refplane]), ('REF_SYSTEM', 'ICRF'), ('TP_TYPE', 'ABSOLUTE'), ('VEC_LABELS', 'YES'),