sbdb

This module contains a wrapper for the SBDB (small-body database) interface of the astroquery package

Classes

SBDBquery(MPCcode, *args, **kwargs)

Small-Body Database Query for retrieving various properties of a small body.

class SBDBquery(MPCcode: str | int, *args, **kwargs)[source]

Small-Body Database Query for retrieving various properties of a small body. Usefull for retrieving names and masses in conjunction with the MPC module.

estimated_spherical_gravitational_parameter(density: float)[source]

Calculate a very simple gravitational parameter by estimating the object’s mass using a given density. Will raise an error if the body’s diameter is not available on SBDB.

Parameters:

density (float) – Density of the object in kg m^-3

Returns:

Simplified estimation for the object’s gravitational parameter

Return type:

float

estimated_spherical_mass(density: float)[source]

Calculate a very simple mass by estimating the object’s mass using a given density. Will raise an error if the body’s diameter is not available on SBDB.

Parameters:

density (float) – Density of the object in kg m^-3

Returns:

Simplified estimation for the object’s mass

Return type:

float

property codes_300_spkid

Returns spice kernel number for the codes_300ast_20100725.bsp spice kernel.

Some objects may return a name instead of a number. These are objects specifically specified by name in the codes_300ast_20100725.bsp kernel.

See https://naif.jpl.nasa.gov/pub/naif/generic_kernels/spk/asteroids/aa_summaries.txt for a list of exceptions

property diameter

Returns diameter of the small body if available

property gravitational_parameter

Returns the gravitational parameter for the small body if available

property name

MPC NAME DESIGNATION

Type:

Short name in the format

property object_classification

Returns the orbit class of the object for example Amor Group for Eros

property object_info

Returns info about the object, including its designation and orbit class

property shortname

MPC NAME

Type:

Short name in the format

property spkid

Returns the JPL SPKID, the related codes_300_spkid method returns a modified ID for the Tudat standard kernel