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

See get_readable_fileobj().

kwargsdict

Keywords acceptable by read_fits_spec() (if FITS) or read_ascii_spec() (if ASCII).

Returns:
headerdict

Metadata.

wavelengths, fluxesQuantity

Wavelength and flux of the spectrum.