read_interp_spec¶
- stsynphot.stio.read_interp_spec(filename, tab_ext=1)[source]¶
Read parameterized (interpolate-able) throughput spectra from FITS table.
Table must contain two or more columns:
WAVELENGTH
- Wavelength values.PAR#VAL1
- First parameterized column.PAR#VAL2
- Second parameterized column.…
Example:
WAVELENGTH
FR656N#6274.0
FR656N#6331.4
6136.0
0.0012254583
0.00019133692
6141.0
0.0016151578
0.00021833261
6146.0
0.0021577575
0.00025030275
- Parameters:
- filenamestr
FITS filename.
- tab_extint, optional
FITS extension index of the data table.
- Returns:
- data
FITS_rec
Data table.
- wave_unitstr
Value of
TUNIT1
in table header.- do_wave_shiftbool
Perform wavelength shift before interpolation. This is
True
when primary header hasPARAMS
keyword set toWAVELENGTH
(case-insensitive).- allow_extrapbool
Allow extrapolation. This is only
True
when primary header hasEXTRAP
keyword explicitly set toT
orTrue
.
- data