mirar.catalog package
catalog contains all the relevant catalogs for use in crossmatching.
The basic structure is contained in mirar.catalog.base_catalog
Subpackages
- mirar.catalog.kowalski package
- mirar.catalog.vizier package
Submodules
mirar.catalog.base_catalog module
Module for Catalog base class
- class mirar.catalog.base_catalog.ABCatalog(search_radius_arcmin: float)[source]
Bases:
objectAbstract class for catalog objects
- property abbreviation
Abbreviation for naming catalog files
- class mirar.catalog.base_catalog.BaseCatalog(*args, min_mag: float, max_mag: float, filter_name: str, cache_catalog_locally: bool = False, catalog_cachepath_key: str = 'RFCTPATH', **kwargs)[source]
-
Base class for catalog objects Attributes:
min_mag: Minimum magnitude for stars in catalog max_mag: Maximum magnitude for stars in catalog filter_name: Filter name for catalog cache_catalog_locally: Whether to cache catalog locally? catalog_cachepath_key: Header key that stores the full path to the cached catalog. Recommended to use the inbuilt REF_CAT_PATH_KEY. Users need to add this to the image header themselves. e.g. For winter, we use a CustomImageModifer to add this key to the header, as our catalogs are cached by field-id, subdet-id and filter.
- get_catalog(ra_deg: float, dec_deg: float) Table[source]
Returns a catalog centered on ra/dec
- Parameters:
ra_deg – RA
dec_deg – Dec
- Returns:
Catalog
- class mirar.catalog.base_catalog.BaseXMatchCatalog(*args, num_sources: int = 1, **kwargs)[source]
-
Base Catalog for crossmatching
- property catalog_name
Name of catalog
- property column_dtypes
dtype of columns
- property column_names
Name of columns
- property projection
projection for kowalski xmatch
- exception mirar.catalog.base_catalog.CatalogCacheError[source]
Bases:
CatalogErrorClass for errors in CatalogCache
- exception mirar.catalog.base_catalog.CatalogError[source]
Bases:
ProcessorErrorClass for errors in Catalog
mirar.catalog.gaia module
Module for obtaining a Gaia/2Mass catalog
- class mirar.catalog.gaia.Gaia2Mass(*args, filter_name: str = 'j', snr_threshold: float = 5, trim: bool = False, image_catalog_path: str | None = None, acceptable_j_ph_quals: str | list[str] | None = None, acceptable_h_ph_quals: str | list[str] | None = None, acceptable_k_ph_quals: str | list[str] | None = None, **kwargs)[source]
Bases:
BaseCatalogCrossmatched Gaia/2Mass catalog
- abbreviation = 'tmass'