read_waveset

stsynphot.stio.read_waveset(filename, wave_unit=Unit('Angstrom'))[source]

Read wavelength table from ASCII file.

Table must contain a single column without header. Comment lines are allowed and will be ignored. Column is automatically named WAVELENGTH.

Example:

# ACS.DAT -- Comments.
# More comments.
1000.
2000.
5000.
9000.
Parameters:
filenamestr

Wavelength table filename. Must be ASCII format.

wave_unitstr or Unit

Wavelength unit.

Returns:
wavesetQuantity

Wavelength set array.