LineList

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

Bases: astropy.table.table.Table

A list of emission/absorption lines

Parameters:
  • 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.

Methods Summary

extract_range(wrange) Builds a LineList instance out of self, with
extract_rows(indices) Builds a LineList instance out of self, with
merge(lists) Executes a ‘vstack’ of all input lists, and then sorts the result by the wavelength column.

Methods Documentation

extract_range(wrange)[source]

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

Parameters:wrange ((float, float)) – minimum and maximum wavelength of the wavelength range
Returns:line list with subset of lines
Return type:LineList
extract_rows(indices)[source]

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.
Returns:line list with subset of lines
Return type:LineList
classmethod merge(lists)[source]

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

Parameters:lists ([LineList, ..]) – list of LineList instances
Returns:merged line list
Return type:LineList