API

Modeling

spectacle.modeling Package

Classes

OpticalDepth1D([name, line_list])

Implements a Voigt profile astropy model.

Spectral1D(*args, **kwargs)

Base representation of a compound model containing a variable number of OpticalDepth1D line model features.

Fitting

spectacle.fitting Package

Classes

CurveFitter()

EmceeFitter()

LineFinder1D([ions, continuum, defaults, z, …])

Analysis

spectacle.analysis Package

Functions

delta_v_90(x, y)

Calculate the dispersion that encompasses the central 90 percent of the apparant optical depth.

equivalent_width(x, y[, continuum])

full_width_half_max(x, y)

Use a univariate spline to fit the line feature, taking its roots as representative of the full width at half maximum.

Classes

Resample(new_dispersion)

Resample model which can be used with compound model objects.

Registries

spectacle.registries Package

Classes

LineRegistry(*args, **kwargs)