dace_query.astrometry package

Submodules

dace_query.astrometry.astrometry module

dace_query.astrometry.astrometry.Astrometry: AstrometryClass = <dace_query.astrometry.astrometry.AstrometryClass object>

Astrometry instance

class dace_query.astrometry.astrometry.AstrometryClass(dace_instance: DaceClass | None = None)

Bases: object

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

An astrometry instance is already provided, to use it :

>>> from dace_query.astrometry import Astrometry
get_gaia_timeseries(target: str, output_format: str | None = None) dict[str, ndarray] | DataFrame | Table | dict

Get timeseries from Gaia astrometry for the specified target.

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

Parameters:
  • target (str) – The target name to retrieve astrometry data from

  • 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

>>> from dace_query.astrometry import Astrometry
>>> target_to_search = 'your-target'
>>> values = Astrometry.get_gaia_timeseries(target=target_to_search)
query_database(limit: int | None = 10000, filters: dict | None = None, sort: dict | None = None, output_format: str | None = None) dict[str, ndarray] | DataFrame | Table | dict

Query the astrometry 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).

Parameters:
  • 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

>>> from dace_query.astrometry import Astrometry
>>> values = Astrometry.query_database()

Module contents