Exoplanet#

dace_query.exoplanet.exoplanet.Exoplanet: ExoplanetClass = <dace_query.exoplanet.exoplanet.ExoplanetClass object>#

This is a singleton instance of the ExoplanetClass class.

To use it, simply import it :

from dace_query.exoplanet import Exoplanet
class dace_query.exoplanet.exoplanet.ExoplanetClass(dace_instance=None)#

Bases: object

The exoplanet class. Use to retrieve data from the exoplanet module.

Tip

An exoplanet instance is already provided, to use it:

from dace_query.exoplanet import Exoplanet
query_database(catalog='planets', limit=10000, filters=None, sort=None, output_format=None)#

Query the exoplanet database to retrieve data in the chosen format.

Filters and sorting order can be applied to the query via named arguments (see Filtering and sorting).

All available formats are defined in this section (see Output formats).

You may specify the catalog to query using the catalog parameter.

Available catalogs
    • 'planets' : The PlanetS exoplanet database (selected by default)

    • 'atreides' : The Atreides exoplanet database

Parameters:
  • catalog (Optional[str]) – Name of the catalog to query ('planets' or 'atreides')

  • limit (Optional[int]) – Maximum number of rows to return

  • filters (Optional[dict]) – Filters to apply to the query

  • sort (Optional[dict]) – Sort order to apply to the query

  • output_format (Optional[str]) – Type of data returns

Returns:

The desired data in the chosen output format

Return type:

dict[str, ndarray] or DataFrame or Table or dict

Getting all exoplanet data
from dace_query.exoplanet import Exoplanet
values = Exoplanet.query_database()
Getting data from a specific catalog
from dace_query.exoplanet import Exoplanet
values = Exoplanet.query_database(catalog='atreides')