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:
SpectralFeatureDBBasic 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.ParSetinstances 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:
KeywordParSetParameter object that defines a set of artifacts to be ignored during analysis.
The defined parameters are:
Key
Type
Options
Default
Description
indexint
An index used to refer to the artifact
namestr
A name for the artifact
waverangendarray, list
A two-element vector with the starting and ending wavelength (angstroms in vacuum) where the artifact affects the data.
See
mangadap.par.parset.ParSetfor attributes and raised exceptions.