photometric_database.data_cube_downloader

Code for downloading data cubes.

Module Contents

class DataCubeDownloader[source]

A class for downloading data cubes.

__init__(self)[source]
static mast_query(request: Dict)[source]

Make a MAST query.

static launch_gaia_job(query_string)[source]

Query on Gaia repeating on errors.

static get_tess_cuts(coordinates, cube_side_size)[source]

Gets the TESS cuts for a given set of coordinates, repeating on errors.

get_tess_input_catalog_ids_from_gaia_source_ids(self, gaia_source_id_list: List[int])[source]

Retrieves the TESS input catalog IDs based on Gaia source IDs. Note, only the brightest Gaia source corresponding to a TIC star will return a TIC ID.

get_ra_and_dec_for_tess_input_catalog_id(self, tess_input_catalog_id: int)[source]

Retrieves the RA and DEC for a TESS input catalog ID.

get_ra_and_dec_for_gaia_source_id(self, gaia_source_id: int)[source]

Retrieves the RA and DEC for a Gaia source ID.

get_all_cepheid_gaia_source_ids(self)[source]

Gets all the Gaia source IDs for all the cepheids in the Gaia DR2.

get_non_cepheid_gaia_source_ids(self)[source]

Gets Gaia source IDs for any non-cepheids source in the Gaia DR2.

get_all_classic_cepheid_gaia_source_ids(self)[source]

Gets all the Gaia source IDs for all the classic cepheids in the Gaia DR2.

get_all_type_2_cepheid_gaia_source_ids(self)[source]

Gets all the Gaia source IDs for all the type 2 cepheids in the Gaia DR2.

get_tess_data_cubes_for_gaia_source_id(self, gaia_source_id: int, cube_side_size: int = 10)[source]

Get the available TESS data cubes from FFIs for a Gaia source ID.

download_classic_cepheid_and_type_2_cepheid_database(self)[source]

Downloads a positive/negative cepheid database.

download_positive_negative_cepheid_database(self, maximum_positive_examples: int = 10000, maximum_negative_examples: int = 40000)[source]

Downloads a positive/negative cepheid database.

download_tess_cubes_for_gaia_source_id_list(self, dataset_name: str, source_ids: List[int], maximum_cubes: int = math.inf)[source]

Downloads a set of cubes from a set of Gaia source IDs.

data_cube_downloader