read_catalog
- romanisim.catalog.read_catalog(filename, coord, date=None, bandpasses=None, radius=0.6, **kwargs)
Read a catalog (or directory of catalogs) into a list of CatalogObjects.
Catalog must be readable by astropy.table.Table.read(…) and contain columns enumerated in the docstring for table_to_catalog(…).
- Parameters:
- filenamestr or None
Filename of catalog, or directory containing healpix catalogs, or None. If None, will query Gaia catalog at the provided coord.
- coordastropy.coordinates.SkyCoord
Location around which to generate sources. Not used if the provided filename is a single catalog file.
- dateastropy.time.Time
Optional argument to provide a date and time for catalog query. Not used if the provided filename is a single catalog file.
- bandpasseslist[str]
Bandpasses for which fluxes are tabulated in the catalog
- radius: float
Radius over which to search healpix for source file indicies
- Any additional keyword arguments provided will be passed to
- `make_gaia_stars` if the `filename` argument is None or
- `read_one_healpix` if `filename` is a directory of healpix catalogs.
- Returns:
- catastropy.Table
Table for use with table_to_catalog to generate catalog for simulation.