astra.tools.spectrum.loaders

Module Contents

Functions

_wcs_log_linear(header)
_is_sdss_data_model(path, data_model_name)
load_sdss_apstar(path, **kwargs) Read a spectrum from a path that is described by the SDSS apStar data model
write_sdss_apstar(spectrum, path, **kwargs) Write a Spectrum1D object to a path that is consistent with the SDSS apStar data model.
load_sdss_apvisit(path, **kwargs) Read a spectrum from a path that is described by the SDSS apVisit data model
load_sdss_boss(path, hdu=1, **kwargs) Read a spectrum from a path that is described by the SDSS BOSS ‘spec’ data model
load_sdss_mastar(path, hdu=1, **kwargs) Read a list of spectrum from a path that is described by the SDSS MaNGA MaStar data model,
astra.tools.spectrum.loaders.ignore_loaders = ['tabular-fits', 'APOGEE apVisit', 'APOGEE apStar', 'APOGEE aspcapStar', 'SDSS-III/IV spec', 'SDSS-I/II spSpec']
astra.tools.spectrum.loaders._wcs_log_linear(header)
astra.tools.spectrum.loaders._is_sdss_data_model(path, data_model_name)
astra.tools.spectrum.loaders.load_sdss_apstar(path, **kwargs)

Read a spectrum from a path that is described by the SDSS apStar data model https://data.SDSS.org/datamodel/files/APOGEE_REDUX/APRED_VERS/APSTAR_VERS/TELESCOPE/LOCATION_ID/apStar.html

Parameters:path – The local path of the spectrum.
Returns:A specutils.Spectrum1D object.
astra.tools.spectrum.loaders.write_sdss_apstar(spectrum, path, **kwargs)

Write a Spectrum1D object to a path that is consistent with the SDSS apStar data model.

Parameters:
  • spectrum – The spectrum to write.
  • path – The local path to write to.
astra.tools.spectrum.loaders.load_sdss_apvisit(path, **kwargs)

Read a spectrum from a path that is described by the SDSS apVisit data model https://data.SDSS.org/datamodel/files/APOGEE_REDUX/APRED_VERS/TELESCOPE/PLATE_ID/MJD5/apVisit.html

Parameters:path – The local path of the spectrum.
Returns:A specutils.Spectrum1D object.
astra.tools.spectrum.loaders.load_sdss_boss(path, hdu=1, **kwargs)

Read a spectrum from a path that is described by the SDSS BOSS ‘spec’ data model https://data.SDSS.org/datamodel/files/BOSS_SPECTRO_REDUX/RUN2D/spectra/PLATE4/spec.html

Parameters:path – The local path of the spectrum.
Returns:A specutils.Spectrum1D object.
astra.tools.spectrum.loaders.load_sdss_mastar(path, hdu=1, **kwargs)

Read a list of spectrum from a path that is described by the SDSS MaNGA MaStar data model, which actually describes a collection of spectra of different sources: https://data.sdss.org/datamodel/files/MANGA_SPECTRO_MASTAR/DRPVER/MPROCVER/mastar-goodspec-DRPVER-MPROCVER.html

Parameters:path – The local path of the spectrum.
Returns:A specutils.Spectrum1D object.