read_remote_spec¶
- synphot.specio.read_remote_spec(filename, encoding='binary', cache=True, show_progress=True, **kwargs)[source]¶
Read FITS or ASCII spectrum from a remote location.
- Parameters:
- filenamestr
Spectrum filename.
- encoding, cache, show_progress
- kwargsdict
Keywords acceptable by
read_fits_spec()
(if FITS) orread_ascii_spec()
(if ASCII).
- Returns:
- headerdict
Metadata.
- wavelengths, fluxes
Quantity
Wavelength and flux of the spectrum.