Added refplane kwarg + documentation to vectors method
@@ -807,7 +807,7 @@ class HorizonsClass(BaseQuery):
return response
- def vectors_async(self, get_query_payload=False,
+ def vectors_async(self, get_query_payload=False, refplane='ecliptic',
closest_apparition=False, no_fragments=False,
get_raw_response=False, cache=True):
"""
@@ -885,6 +885,12 @@ class HorizonsClass(BaseQuery):
get_query_payload : boolean, optional
When set to `True` the method returns the HTTP request
parameters as a dict, default: False
+ refplane : string
+ Reference plane for all output quantities: ``'ecliptic'``
+ (ecliptic and mean equinox of reference epoch), ``'earth'``
+ (Earth mean equator and equinox of reference epoch), or
+ ``'body'`` (body mean equator and node of date); default:
+ ``'ecliptic'``
get_raw_response: boolean, optional
Return raw data as obtained by JPL Horizons without parsing the
data into a table, default: False
@@ -968,7 +974,8 @@ class HorizonsClass(BaseQuery):
('COMMAND', '"' + commandline + '"'),
('CENTER', ("'" + str(self.location) + "'")),
('CSV_FORMAT', ('"YES"')),
- ('REF_PLANE', 'ECLIPTIC'),
+ ('REF_PLANE', {'ecliptic': 'ECLIPTIC', 'earth': 'FRAME',
+ 'body': "'BODY EQUATOR'"}[refplane]),
('REF_SYSTEM', 'J2000'),
('TP_TYPE', 'ABSOLUTE'),
('LABELS', 'YES'),
