catalogs.Catalog
self) catalogs.Catalog(
Load the entire catalog.
Examples
>>> import gen_tso.catalogs as cat
>>> catalog = cat.Catalog()
Methods
Name | Description |
---|---|
get_target | Search by name for a planet in the catalog. |
get_target
catalogs.Catalog.get_target(=None,
name=True,
is_transit=None,
is_jwst=True,
is_confirmed )
Search by name for a planet in the catalog.
Parameters
Name | Type | Description | Default |
---|---|---|---|
name | If not None, name of the planet to search. If None, an interactive prompt will open to search for the planet | None |
|
is_transit | If True/False restrict search to transiting/non-transiting planets If None, consider all targets. | True |
|
is_jwst | If True/False restrict search to planet of/not JWST hosts If None, consider all targets. | None |
|
is_confirmed | If True/False restrict search to confirmed/candidate planets If None, consider all targets. | True |
Returns
Name | Type | Description |
---|---|---|
target | a Target object | Target with the system properties of the searched planet. If no target was found on the catalog, return None. |