loaders

This module contains functions that perform the actual data parsing.

specviz.interfaces.loaders.fits_reader(filename, filter, **kwargs)[source]

This generic function will query the loader factory, which has already loaded the YAML configuration files, in an attempt to parse the associated FITS file.

Parameters:
  • filename (str) – Input filename.
  • filter (str) – File type for YAML look-up.
  • kwargs (dict) – Keywords for Astropy reader.
specviz.interfaces.loaders.fits_identify(origin, *args, **kwargs)[source]

Check whether given filename is FITS. This is used for Astropy I/O Registry.

specviz.interfaces.loaders.ascii_reader(filename, filter, **kwargs)[source]

Like fits_reader() but for ASCII file.

specviz.interfaces.loaders.ascii_identify(origin, *args, **kwargs)[source]

Check whether given filename is ASCII. This is used for Astropy I/O Registry.