read_source_catalog

jwst.lib.catalog_utils.read_source_catalog(catalog_name)[source]

Read a source catalog from file or validate an existing QTable.

Parameters:
catalog_namestr or QTable

Either the filename of a source catalog in ECSV format, or an existing Astropy QTable containing the catalog data.

Returns:
catalogQTable

The source catalog as a table.

Raises:
ValueError

If an empty filename string is provided.

FileNotFoundError

If the specified catalog file cannot be found.

TypeError

If the input is neither a string filename nor a QTable instance.