species.core package¶

species.core.box module¶

Module with classes for storing data in Box objects.

class species.core.box.Box[source]

Bases: object

Class for generic methods that can be applied on all Box object.

Returns: None NoneType
open_box()[source]

Method for inspecting the content of a Box.

Returns: None NoneType
class species.core.box.ColorColorBox[source]

Class for storing color-color data in a species.core.box.Box.

Returns: None NoneType
class species.core.box.ColorMagBox[source]

Class for storing color-magnitude data in a species.core.box.Box.

Returns: None NoneType
class species.core.box.IsochroneBox[source]

Class for storing isochrone data in a species.core.box.Box.

Returns: None NoneType
class species.core.box.ModelBox[source]

Class for storing a model spectrum in a species.core.box.Box.

Returns: None NoneType
resample_spectrum(wavel_resample: numpy.ndarray) → None[source]

Method for resampling the spectrum with spectres to a new wavelength grid.

Parameters: wavel_resample (np.ndarray) – Wavelength points (um) to which the spectrum will be resampled. None NoneType
smooth_spectrum(spec_res: float) → None[source]

Method for smoothing the spectrum with a Gaussian kernel to the instrument resolution. The method is best applied on an input spectrum with a logarithmic wavelength sampling (i.e. constant spectral resolution). Alternatively, the wavelength sampling may be linear, but the smoothing is slower in that case.

Parameters: spec_res (float) – Spectral resolution that is used for the smoothing kernel. None NoneType
class species.core.box.ObjectBox[source]

Class for storing object data in a species.core.box.Box.

Returns: None NoneType
class species.core.box.PhotometryBox[source]

Class for storing photometric data in a species.core.box.Box.

Returns: None NoneType
class species.core.box.ResidualsBox[source]

Class for storing best-fit residuals in a species.core.box.Box.

Returns: None NoneType
class species.core.box.SamplesBox[source]

Class for storing posterior samples in a species.core.box.Box.

Returns: None NoneType
class species.core.box.SpectrumBox[source]

Class for storing spectral data in a species.core.box.Box.

Returns: None NoneType
class species.core.box.SynphotBox[source]

Class for storing synthetic photometry in a species.core.box.Box.

Returns: None NoneType
species.core.box.create_box(boxtype, **kwargs)[source]

Function for creating a species.core.box.Box.

Returns: Box with the data and parameters. species.core.box

species.core.setup module¶

Module for setting up species in the working folder.

class species.core.setup.SpeciesInit[source]

Bases: object

Class for initiating species by creating the database and configuration file in case they are not present in the working folder, and creating the data folder for storage of input data.

Returns: None NoneType