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: - filename : str
Spectrum filename.
- encoding, cache, show_progress
- kwargs : dict
Keywords acceptable by
read_fits_spec()
(if FITS) orread_ascii_spec()
(if ASCII).
Returns: - header : dict
Metadata.
- wavelengths, fluxes :
Quantity
Wavelength and flux of the spectrum.