mangadap.par.artifactdb module
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)[source]
Bases:
SpectralFeatureDB
Basic container class for the database of artifacts.
Each row of the database is parsed using
ArtifactPar
.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.- Parameters:
parfile (
str
) – The SDSS parameter file with the artifact database.
- key
Database signifying keyword
- Type:
str
- file
File with the artifact data
- Type:
str
- size
Number of artifacts in the database.
- Type:
int
- _parse_yanny()[source]
Parse the yanny file (provided by
file
) for the artifact database.- Returns:
The list of
mangadap.par.parset.ParSet
instances for each line of the database.- Return type:
list
- default_data_dir = 'artifacts'
- class mangadap.par.artifactdb.ArtifactPar(index=None, name=None, waverange=None)[source]
Bases:
KeywordParSet
Parameter object that defines a set of artifacts to be ignored during analysis.
The defined parameters are:
Key
Type
Options
Default
Description
index
int
An index used to refer to the artifact
name
str
A name for the artifact
waverange
ndarray, list
A two-element vector with the starting and ending wavelength (angstroms in vacuum) where the artifact affects the data.
See
mangadap.par.parset.ParSet
for attributes and raised exceptions.