read_graphtable¶
- stsynphot.stio.read_graphtable(filename, tab_ext=1)[source]¶
Read graph table file.
Table must contain the following named columns:
COMPNAME
- Component name, usually filter name (str)KEYWORD
- Usually instrument name (str)INNODE
- Input node number (int)OUTNODE
- Output node number (int)THCOMPNAME
- Thermal component name, usually filter name (str)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:
- Raises:
- synphot.exceptions.SynphotError
Failure to parse graph table.