discos

This module contains an interface to ESA’s DISCOS system for retrieving properties of resident space objects. The retrieved properties can be used to define body properties in environment_setup, for instance constant aerodynamic coefficients through constant() or mass properties through custom_mass_dependent_rigid_body_properties().

To use this interface, you must have access to ESA’s DISCOSweb service.

Classes

DiscosQuery(token[, timeout, url])

A class to query the ESA DISCOS (Database and Information System Characterising Objects in Space) API.

class DiscosQuery(token: str, timeout: int | None = 10, url: str = 'https://discosweb.esoc.esa.int')[source]

Bases: object

A class to query the ESA DISCOS (Database and Information System Characterising Objects in Space) API.

query_object(sat_id: str | int, is_discos_id: bool = False, verbose: bool = True) → dict[str, Any] | None[source]

Query object information from DISCOS using either a NORAD ID or a DISCOS ID.

Parameters:
  • sat_id (str | int) – The satellite identifier (NORAD ID or DISCOS ID).

  • is_discos_id (bool, optional) – If True, treats sat_id as a DISCOS internal ID. If False, treats it as a NORAD ID. Defaults to False.

  • verbose (bool, optional) – If True, prints status and error messages to the console. Defaults to True.

Returns:

A dictionary containing object attributes if successful, None otherwise.

Return type:

dict[str, Any] | None