########## MADCUBA IO ########## The `madcubapy.io` package allows the user to read MADCUBA products like FITS and *.spec* files alongside their :ref:`history files `. MadcubaMap ========== The `~madcubapy.io.MadcubaMap` class stores the data and metadata of FITS files. This class resembles a `~astropy.nddata.CCDData` class with the addition of a ``hist`` attribute containing the history information of the FITS file. The preferred method of creating a `~madcubapy.io.MadcubaMap` instance is to read a FITS file through the :meth:`~madcubapy.io.MadcubaMap.read` method, although it can also be created by passing any of the following parameters from an astropy `~astropy.nddata.CCDData` object: ``data``, ``header``, ``wcs``, and ``unit``. Look into the :ref:`MadcubaMap page ` for a detailed overview of the class, its attributes and its methods. SpectraContainer ================ The purpose of the `~madcubapy.io.SpectraContainer` class is storing spectra data exported by MADCUBA in **.spec** format. These **.spec** archives contain astronomical spectra inside a FITS bintable, alongside the history file. The `~madcubapy.io.SpectraContainer` class stores this data in the ``bintable``, and ``hist`` attributes respectively. The preferred method of creating a `~madcubapy.io.SpectraContainer` instance is to read a **.spec** file through the :meth:`~madcubapy.io.SpectraContainer.read` method, although it can also be created by passing a ``bintable`` in an astropy `~astropy.table.Table` format. Look into the :ref:`SpectraContainer page ` for a detailed overview of the class, and its attributes and methods. SLIM ==== The `madcubapy.io.slim` module privides functions to work with products from the Spectral Line Identification and Modelling (SLIM) tool of MADCUBA in `madcubapy`. Look into the :ref:`SLIM page ` for a detailed overview of the SLIM Molecular Paramteres Tables functions. Contents ======== .. toctree:: :maxdepth: 1 madcubamap spectracontainer slim API Reference ============= .. toctree:: :maxdepth: 2 ref_api