Star Catalog (photometry.catalog)

Create catalogs of stars in a given TESS observing sector.

Code author: Rasmus Handberg <rasmush@phys.au.dk>

photometry.catalog.catalog_sqlite_search_footprint(cursor, footprint, columns='*', constraints=None, buffer_size=5, pixel_scale=21.0)[source]

Query the SQLite catalog files for a specific footprint on sky.

This function ensures that edge-cases near the poles and around the RA=0 line are handled correctly.

Parameters
  • cursor (sqlite3.Cursor object) – Cursor to catalog SQLite file.

  • footprint (ndarray) – 2D ndarray of RA and DEC coordinates of the corners of footprint.

  • columns (string) – Default is to return all columns.

  • constraints (string) – Additional constraints on the query in addition to the footprint.

  • buffer_size (float) – Buffer to add around stamp in pixels. Default=5.

  • pixel_scale (float) – Size of single pixel in arcsecs. Default=21.0 (TESS).

Returns

List of rows matching the query.

Return type

list

Code author: Rasmus Handberg <rasmush@phys.au.dk>

photometry.catalog.download_catalogs(input_folder, sector, camera=None, ccd=None)[source]

Download catalog SQLite files from TASOC cache into input_folder.

This enables users to circumvent the creation of catalog files directly using make_catalog(), which requires the user to be connected to the TASOC internal networks at Aarhus University. This does require that the TASOC personel have made catalogs available in the cache for the given sector, otherwise this function will throw an error.

Parameters
  • input_folder (string) – Target directory to download files into. Should be a TESSPHOT input directory.

  • sector (integer) – Sector to download catalogs for.

  • camera (integer, optional) – Camera to download catalogs for. If not specified, all cameras will be downloaded.

  • ccd (integer, optional) – CCD to download catalogs for. If not specified, all CCDs will be downloaded.

Raises

NotADirectoryError – If target directory does not exist.

Code author: Rasmus Handberg <rasmush@phys.au.dk>

photometry.catalog.make_catalog(sector, input_folder=None, cameras=None, ccds=None, coord_buffer=0.2, overwrite=False)[source]

Create catalogs of stars in a given TESS observing sector.

Parameters
  • sector (integer) – TESS observing sector.

  • input_folder (string or None, optional) – Input folder to create catalog file in. If None, the input directory in the environment variable TESSPHOT_INPUT is used.

  • cameras (iterable or None, optional) – TESS cameras (1-4) to create catalogs for. If None all cameras are created.

  • ccds (iterable or None, optional) – TESS ccds (1-4) to create catalogs for. If None all ccds are created.

  • coord_buffer (float, optional) – Buffer in degrees around each CCD to include in catalogs. Default=0.1.

  • overwrite (boolean, optional) – Overwrite existing catalogs. Default=``False``.

Note

This function requires the user to be connected to the TASOC network at Aarhus University. It connects to the TASOC database to get a complete list of all stars in the TESS Input Catalog (TIC), which is a very large table.

Raises

OSError – If settings could not be loaded from TASOC databases.

Code author: Rasmus Handberg <rasmush@phys.au.dk>