cobtools.cli.gaia package

Submodules

cobtools.cli.gaia.query_single_source module

cobtools.cli.gaia.query_single_source.display_result(result) None[source]

Display the query in a formatted table.

Parameters:

result (Table) – The query result to display.

cobtools.cli.gaia.query_single_source.get_spectral_type(bp_rp: float, kind: str, mh: float = 0.0)[source]

Get the spectral type for a given BP-RP value and kind (dwarf/giant).

Parameters:
  • bp_rp (float) – The BP-RP color index.

  • kind (str) – The kind of star (“dwarf” or “giant”).

  • mh (float, optional) – The metallicity, by default 0.0 (solar metallicity).

Returns:

The spectral type string, or “NA (kind)” if an error occurs.

Return type:

str

cobtools.cli.gaia.query_single_source.styled_title(title, width=30)[source]

Module contents

Gaia CLI tools package.