@@ -174,7 +174,7 @@ def ephemerides_async(self, airmass_lessthan=99,
174174 closest_apparition = False , no_fragments = False ,
175175 quantities = conf .eph_quantities ,
176176 get_query_payload = False ,
177- cache = True ,
177+ get_raw_response = False , cache = True ,
178178 extra_precision = False ):
179179 """
180180 Query JPL Horizons for ephemerides.
@@ -478,6 +478,10 @@ def ephemerides_async(self, airmass_lessthan=99,
478478 When set to `True` the method returns the HTTP request parameters as
479479 a dict, default: False
480480
481+ get_raw_response : boolean, optional
482+ Return raw data as obtained by JPL Horizons without parsing the data
483+ into a table, default: False
484+
481485 extra_precision : boolean, optional
482486 Enables extra precision in RA and DEC values; default: False
483487
@@ -610,6 +614,10 @@ def ephemerides_async(self, airmass_lessthan=99,
610614 if get_query_payload :
611615 return request_payload
612616
617+ # set return_raw flag, if raw response desired
618+ if get_raw_response :
619+ self .return_raw = True
620+
613621 # query and parse
614622 response = self ._request ('GET' , URL , params = request_payload ,
615623 timeout = self .TIMEOUT , cache = cache )
@@ -629,7 +637,7 @@ def elements_async(self, get_query_payload=False,
629637 refplane = 'ecliptic' ,
630638 tp_type = 'absolute' ,
631639 closest_apparition = False , no_fragments = False ,
632- cache = True ):
640+ get_raw_response = False , cache = True ):
633641 """
634642 Query JPL Horizons for osculating orbital elements.
635643
@@ -720,6 +728,10 @@ def elements_async(self, get_query_payload=False,
720728 When set to ``True`` the method returns the HTTP request parameters
721729 as a dict, default: False
722730
731+ get_raw_response: boolean, optional
732+ Return raw data as obtained by JPL Horizons without parsing the data
733+ into a table, default: False
734+
723735
724736 Returns
725737 -------
@@ -820,6 +832,10 @@ def elements_async(self, get_query_payload=False,
820832 if get_query_payload :
821833 return request_payload
822834
835+ # set return_raw flag, if raw response desired
836+ if get_raw_response :
837+ self .return_raw = True
838+
823839 # query and parse
824840 response = self ._request ('GET' , URL , params = request_payload ,
825841 timeout = self .TIMEOUT , cache = cache )
@@ -836,7 +852,7 @@ def elements_async(self, get_query_payload=False,
836852
837853 def vectors_async (self , get_query_payload = False ,
838854 closest_apparition = False , no_fragments = False ,
839- cache = True ,
855+ get_raw_response = False , cache = True ,
840856 refplane = 'ecliptic' , aberrations = 'geometric' ,
841857 delta_T = False ,):
842858 """
@@ -919,6 +935,10 @@ def vectors_async(self, get_query_payload=False,
919935 When set to `True` the method returns the HTTP request parameters as
920936 a dict, default: False
921937
938+ get_raw_response: boolean, optional
939+ Return raw data as obtained by JPL Horizons without parsing the data
940+ into a table, default: False
941+
922942 refplane : string
923943 Reference plane for all output quantities: ``'ecliptic'`` (ecliptic
924944 and mean equinox of reference epoch), ``'earth'`` (Earth mean
@@ -1058,6 +1078,10 @@ def vectors_async(self, get_query_payload=False,
10581078 if get_query_payload :
10591079 return request_payload
10601080
1081+ # set return_raw flag, if raw response desired
1082+ if get_raw_response :
1083+ self .return_raw = True
1084+
10611085 # query and parse
10621086 response = self ._request ('GET' , URL , params = request_payload ,
10631087 timeout = self .TIMEOUT , cache = cache )
0 commit comments