read_wavecat

stsynphot.stio.read_wavecat(filename)[source]

Read wavelength catalog from ASCII file.

Table must contain two columns without header. Comment lines are allowed and will be ignored. Columns are automatically named:

  1. OBSMODE - Observation mode.

  2. FILENAME - Corresponding wavelength table filename or parameters.

Example:

# WAVECAT.DAT -- Comments.
# More comments.
cos,fuv     (900.0,3000.0,1.0)
cos,nuv     (1000.0,12000.0,1.0)
acs,hrc     synphot$wavecats/acs.dat
acs,wfc1    synphot$wavecats/acs.dat
Parameters
filenamestr

Wavelength catalog filename. Must be ASCII format.

Returns
dataTable

Data table.