swiftest.init_cond.get_solar_system_body_mass_rotation

swiftest.init_cond.get_solar_system_body_mass_rotation#

swiftest.init_cond.get_solar_system_body_mass_rotation(id, jpl=None, ephemerides_start_date='2027-04-30', verbose=True, **kwargs)[source]#

Parses the raw output from JPL Horizons in order to extract physical properties of a body if they exist.

Parameters:
  • id (string or list of strings) – A string identifying which body is requested from JPL/Horizons (or a list of strings if multiple ids are possible, such as an altid list)

  • jpl (HorizonsClass) – An astroquery.jplhorizons HorizonsClass object. If None, a new query will be made.

  • ephemerides_start_date (string) – Date to use when obtaining the ephemerides in the format YYYY-MM-DD. Default is constants.MINTON_BCL

  • verbose (bool) – Indicates whether to print messages about the query or not. Default is False

  • **kwargs (Any) – Additional keyword arguments to pass to the query method (see https://astroquery.readthedocs.io/en/latest/jplhorizons/jplhorizons.html)

Returns:

  • A dictionary containing the following elements

  • Gmass (float) – G*Mass of the body in m^3/s^2

  • radius (float) – The radius of the body in m

  • rot ((3) float vector) – The rotation rate vector oriented toward the north pole in deg/s