SBDB Lookup¶
API reference for the JPL Small-Body Database Lookup client. All types are available via brahe.datasets.sbdb.
SBDBClient¶
SBDBClient ¶
Client for the JPL Small-Body Database (SBDB) Lookup API.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
base_url | str | Override the SBDB base URL (for testing). | None |
cache_max_age | int | Cache max age in seconds (0 = always refetch). | None |
Example
Initialize instance.
lookup method descriptor ¶
lookup(sstr: str) -> SBDBObject
Resolve a search string to an SBDBObject.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
sstr | str | Object search string, e.g. "Ceres" or "20000001". | required |
Returns:
| Name | Type | Description |
|---|---|---|
SBDBObject | SBDBObject | The resolved object. |
SBDBObject¶
SBDBObject ¶
A resolved JPL Small-Body Database object.
Attributes:
| Name | Type | Description |
|---|---|---|
spkid | int | Primary SPK-ID (NAIF ID). |
full_name | str | Full designation and name. |
des | str | Primary designation. |
shortname | str | None | Name without alternate designation. |
kind | str | Object kind code. |
neo | bool | Whether the object is a near-Earth object. |
gm | float | None | Gravitational parameter [m^3/s^2], if catalogued. |
radius | float | None | Mean radius [m], if catalogued. |
Initialize instance.
See Also¶
- SBDB Lookup (Learn) - Overview, caching, and usage
- Horizons SPK - Generate an SPK for a resolved body