# LineList¶

class specviz.core.linelist.LineList(table=None, tooltips=None, name=None, masked=None)[source] [edit on github]

A list of emission/absorption lines

Parameters: table: ~astropy.table.Table If specified, a table to initialize from. name: str The name of the list. masked: bool If true, a masked table is used.

Attributes Summary

Methods Summary

 extract_range(wrange) Builds a LineList instance out of self, with the subset of lines that fall within the wavelength range defined by ‘wmin’ and ‘wmax’. extract_rows(indices) Builds a LineList instance out of self, with the subset of lines pointed by ‘indices’ merge(lists, target_units) Executes a ‘vstack’ of all input lists, and then sorts the result by the wavelength column. read_list(filename, yaml_loader) setColor(color) setHeight(height) setRedshift(redshift, z_units)

Attributes Documentation

table

Methods Documentation

extract_range(wrange)[source] [edit on github]

Builds a LineList instance out of self, with the subset of lines that fall within the wavelength range defined by ‘wmin’ and ‘wmax’.

REMOVED FOR NOW: The actual range is somewhat wider, to allow for radial velocity and redshift effects. The actual handling of this must wait until we get more detailed specs for the redshift functionality.

Parameters: wrange: (Quantity, Quantity) minimum and maximum wavelength of the data (spectrum) wavelength range LineList line list with subset of lines
extract_rows(indices)[source] [edit on github]

Builds a LineList instance out of self, with the subset of lines pointed by ‘indices’

Parameters: indices: [QModelIndex, …] List of QModelIndex instances to extract from. LineList line list with subset of lines
classmethod merge(lists, target_units)[source] [edit on github]

Executes a ‘vstack’ of all input lists, and then sorts the result by the wavelength column.

Parameters: lists: [LineList, …] list of LineList instances target_units: Units units to which all lines from all tables must be converted to. LineList merged line list
classmethod read_list(filename, yaml_loader)[source] [edit on github]
setColor(color)[source] [edit on github]
setHeight(height)[source] [edit on github]
setRedshift(redshift, z_units)[source] [edit on github]