read_graphtable

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

Read graph table file.

Table must contain the following named columns:

  1. COMPNAME - Component name, usually filter name (str)

  2. KEYWORD - Usually instrument name (str)

  3. INNODE - Input node number (int)

  4. OUTNODE- Output node number (int)

  5. THCOMPNAME - Thermal component name, usually filter name (str)

  6. COMMENT - Comment (str)

Example:

COMPNAME

KEYWORD

INNODE

OUTNODE

THCOMPNAME

COMMENT

clear

nicmos

1

30

clear

idno=100

clear

wfc3

1

30

clear

clear

wfpc

1

20

clear

idno=100

Parameters
filenamestr

Graph table 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
primary_areaQuantity or None

Value of PRIMAREA keyword in primary header. Always None for ASCII file.

dataFITS_rec or Table

Data table.

Raises
synphot.exceptions.SynphotError

Failure to parse graph table.