SpecViz API

Analysis Functions

Functions

centroid(line, avg_cont[, mask]) Compute centroid for the given spectrum.
eq_width(cont1_stats, cont2_stats, line[, mask]) Compute an equivalent width given stats for two continuum regions, and a Data instance with the extracted spectral line region.
extract(data, x_range) Extract a region from a spectrum.
fwzi(cont1_stats, cont2_stats, line) Compute full width at zero intensity (FWZI) for the given spectrum.
resample(data_in, x_in, x_out, y[, ...]) Resample the data of one spectrum using interpolation.
stats(data[, mask]) Compute basic statistics for a spectral region contained in a Data instance.

Classes

BlackBody([temp, norm]) Produce a blackbody flux spectrum.
Spline1D([degree, smooth]) Perform a spline fit

Class Inheritance Diagram

Inheritance diagram of specviz.analysis.models.blackbody.BlackBody, specviz.analysis.models.spline.Spline1D

SpecViz core

Data Objects

Classes

Spectrum1DRefLayer(data[, wcs, parent, ...]) Class to handle layers in SpecViz.
Spectrum1DRefModelLayer(data[, model]) A layer for spectrum with a model applied.

Class Inheritance Diagram

Inheritance diagram of specviz.core.data.Spectrum1DRefLayer, specviz.core.data.Spectrum1DRefModelLayer

Object Event Handling

Classes

Dispatch Central communications object for all events.
DispatchHandle Interface for allowing classes to use decorators to define event listeners.
EventNode(\*args) An event

Class Inheritance Diagram

Inheritance diagram of specviz.core.comms.Dispatch, specviz.core.comms.DispatchHandle, specviz.core.comms.EventNode

Spectrum Layer Plotting

Classes

LinePlot(layer[, plot, visible, style, pen, ...]) Plot representation of a layer

Class Inheritance Diagram

Inheritance diagram of specviz.core.plots.LinePlot

Emission/Absorption Line list utilities

Functions

ingest(range) Returns a list with LineList instances.

Classes

LineList([table, name, masked]) A list of emission/absorption lines

Class Inheritance Diagram

Inheritance diagram of specviz.core.linelist.LineList

Thread Helpers

Classes

FileLoadThread([parent]) Asynchronously read in a file
FitModelThread([parent]) Asynchronously fit a model to a layer

Class Inheritance Diagram

Inheritance diagram of specviz.core.threads.FileLoadThread, specviz.core.threads.FitModelThread

Interfaces

Functions

data_loader(label, identifier[, priority, ...]) A decorator that registers a function and identifies with an Astropy io registry object.

Model Factories

Classes

Factory Responsible for creation of objects.
FitterFactory Create a fitter
ModelFactory Create a model

Class Inheritance Diagram

Inheritance diagram of specviz.interfaces.factories.Factory, specviz.interfaces.factories.FitterFactory, specviz.interfaces.factories.ModelFactory

Model Initialization

Functions

initialize(instance, x, y) Initialize given model.

I/O module

Functions

cos_identify(\*args, \*\*kwargs) Check whether given file contains HST/COS spectral data.
cos_spectrum_loader(\*args, \*\*kwargs) Load file from COS spectral data into a spectrum object
fits_identify(\*args, \*\*kwargs) Check whether given filename is FITS.
simple_generic_loader(\*args, \*\*kwargs) Basic FITS file loader
simple_generic_writer(data, file_name, \*\*kwargs) Basic Spectrum1DRef FITS writer.
stis_identify(\*args, \*\*kwargs) Check whether given file contains HST/STIS spectral data.
stis_spectrum_loader(\*args, \*\*kwargs) Load file from STIS spectral data into a spectrum object

This module contains functions that perform the actual data parsing.

Classes

AsciiYamlRegister(reference) Defines the generation of Spectrum1DRef objects by parsing ASCII files with information from YAML files.
FitsYamlRegister(reference) Defines the generation of Spectrum1DRef objects by parsing FITS files with information from YAML files.
LineListYamlRegister(reference) Defines the generation of Spectrum1DRef objects by parsing LineList files with information from YAML files.
YamlRegister(reference) Class to encapsulate the IO registry information for a set of yaml-loaded attributes.

Class Inheritance Diagram

Inheritance diagram of specviz.io.yaml_loader.AsciiYamlRegister, specviz.io.yaml_loader.FitsYamlRegister, specviz.io.yaml_loader.LineListYamlRegister, specviz.io.yaml_loader.YamlRegister