Astroquery: Help: mass of body from JPL Horizons

Created on 16 Mar 2019  路  1Comment  路  Source: astropy/astroquery

I hope this is the right place to ask this question but it seems as if I am not able to query the mass of celestial body through the JPL Horizons module. I checked the documentation https://astroquery.readthedocs.io/en/latest/api/astroquery.jplhorizons.HorizonsClass.html#astroquery.jplhorizons.HorizonsClass but I cannot find an appropriate call.

Thank you for your time.

jplhorizons jplsbdb question

Most helpful comment

No, jplhorizons is not able to query masses - but jplsbdb is:

from astroquery.jplsbdb import SBDB
from astropy import constants as const 
ceres = SBDB.query('Ceres', phys=True)
(ceres['phys_par']['GM']/const.G).to('kg')
<Quantity 9.38382519e+20 kg>

However, please note that masses are only available for a tiny number of objects.

>All comments

No, jplhorizons is not able to query masses - but jplsbdb is:

from astroquery.jplsbdb import SBDB
from astropy import constants as const 
ceres = SBDB.query('Ceres', phys=True)
(ceres['phys_par']['GM']/const.G).to('kg')
<Quantity 9.38382519e+20 kg>

However, please note that masses are only available for a tiny number of objects.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Titanosaurus picture Titanosaurus  路  8Comments

embray picture embray  路  3Comments

bsipocz picture bsipocz  路  3Comments

prajwel picture prajwel  路  4Comments

tomdonaldson picture tomdonaldson  路  4Comments