ch_ephem.catalogs

CHIME ephemeris source catalogues.

Functions

Functions

list()

List available catalogues.

load(name)

Read the named catalogue and return the parsed JSON representation.

ch_ephem.catalogs.list() list[str][source]

List available catalogues.

Returns:

catalogs – A list with the names of available catalogs

Return type:

list

ch_ephem.catalogs.load(name: str) Iterable[source]

Read the named catalogue and return the parsed JSON representation.

Parameters:

name (str) – The name of the catalogue to load. This is the name of a JSON file in the ch_ephem/catalogs directory, excluding the .json suffix.

Returns:

catalogue – The parsed catalogue.

Return type:

Iterable

Raises:
  • JSONDecodeError: – An error occurred while trying to parse the catalogue.

  • ValueError: – No catalogue with the given name could be found.