read_catalog

stsynphot.stio.read_catalog(filename, tab_ext=1)[source]

Read catalog grid look-up table.

Table must contain the following named columns:

  1. INDEX - Grid values (str)

  2. FILENAME - Relative file path and column name (str)

Example:

INDEX

FILENAME

10000,-0.5,0.0

ckm05/ckm05_10000.fits[g00]

10000,-0.5,0.5

ckm05/ckm05_10000.fits[g05]

10000,-0.5,1.0

ckm05/ckm05_10000.fits[g10]

Parameters:
filenamestr

Catalog filename. If suffix is not ‘fits’ or ‘fit’, assume ASCII format.

tab_extint, optional

FITS extension index of the data table. This is ignored for ASCII file.

Returns:
dataFITS_rec or Table

Data table.