Container class for a database with a list of spectral regions with known artifacts that should be ignored during analysis of the data. These can be anything, but is only currently used to define spectral regions with poorly subtracted sky lines. They are also currently independent of spatial position and expected to be applied for all spectra in an RSS or CUBE file.
Copyright © 2019, SDSS-IV/MaNGA Pipeline Group
- class mangadap.par.artifactdb.ArtifactDB(parfile)
Basic container class for the database of artifacts.
Each row of the database is parsed using
The primary instantiation requires the SDSS parameter file with the artifact data. To instantiate using a keyword (and optionally a directory that holds the parameter files), use the
mangadap.par.spectralfeaturedb.SpectralFeatureDB.from_key()class method. See the base class for additional attributes.
str) – The SDSS parameter file with the artifact database.
Database signifying keyword
File with the artifact data
Number of artifacts in the database.
Parse the yanny file (provided by
file) for the artifact database.
The list of
mangadap.par.parset.ParSetinstances for each line of the database.
- Return type:
- default_data_dir = 'artifacts'
- class mangadap.par.artifactdb.ArtifactPar(index=None, name=None, waverange=None)
Parameter object that defines a set of artifacts to be ignored during analysis.
The defined parameters are:
An index used to refer to the artifact
A name for the artifact
A two-element vector with the starting and ending wavelength (angstroms in vacuum) where the artifact affects the data.
mangadap.par.parset.ParSetfor attributes and raised exceptions.
Check the parameter list.
Only check performed is to make sure the wavelength range only has two elements.
ValueError – Raised if one of the conditions above are not met.