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:

  1. WAVELENGTH - Wavelength values.

  2. PAR#VAL1 - First parameterized column.

  3. 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
dataFITS_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 has PARAMS keyword set to WAVELENGTH (case-insensitive).

allow_extrapbool

Allow extrapolation. This is only True when primary header has EXTRAP keyword explicitly set to T or True.