read_ascii_spec¶
- synphot.specio.read_ascii_spec(filename, wave_unit=Unit('Angstrom'), flux_unit=Unit('FLAM'), **kwargs)[source]¶
Read ASCII spectrum.
ASCII table must have following columns:
Wavelength data
Flux data
It can have more than 2 columns but the rest is ignored. Comments are discarded.
- Parameters:
- filenamestr or file pointer
Spectrum file name or pointer.
- wave_unit, flux_unitstr or
Unit
Wavelength and flux units, which default to Angstrom and FLAM, respectively.
- kwargsdict
Keywords accepted by
astropy.io.ascii.read()
.
- Returns:
- headerdict
This is just an empty dictionary, so returned values are the same as
read_fits_spec()
.- wavelengths, fluxes
Quantity
Wavelength and flux of the spectrum. They are set to ‘float64’ percision.