SpectraContainer#
- class madcubapy.io.SpectraContainer(bintable=None, hist=None, filename=None)[source]#
Bases:
MadcubaFitsA container for MADCUBA spectra, using the
MadcubaFitsinterface.This class is basically a wrapper to read MADCUBA exported spectra and their history files with astropy.
- Parameters:
Methods
add_hist(*args)
Load the history table from a csv file.
Attributes Summary
Table: Table containing the data of every spectra inside the .spec file.str: Name of the .spec file.Table: Table containing the history information.Methods Summary
add_hist(filename)Load the history table from a csv file.
copy()Create a copy of the
SpectraContainer.read(filepath)Classmethodto generate aSpectraContainerfrom a .spec file.Attributes Documentation
Methods Documentation
- add_hist(filename)#
Load the history table from a csv file.
- copy()[source]#
Create a copy of the
SpectraContainer.
- classmethod read(filepath)[source]#
Classmethodto generate aSpectraContainerfrom a .spec file.- Parameters:
- filepath
str Name of spec file.
- filepath