specsr.models.lines

Rest-frame spectral feature catalogue.

Mostly UV/optical/NIR features in Angstroms: a mix of emission lines and common absorption features and continuum breaks used in redshift work. Wavelengths are deduplicated so the SR2 line branch does not spend attention capacity on coincident tokens.

Each entry becomes one token in the SR2 line branch, in list order.

Functions

angstrom_to_micron(x)

Convert Angstroms to microns, returning float32.

line_wavelengths_um([dtype])

Rest-frame line wavelengths in microns as a numpy array.

specsr.models.lines.line_wavelengths_um(dtype='float32')[source]

Rest-frame line wavelengths in microns as a numpy array.

This is the form the SR2 line branch consumes: one token per entry, in the order given by LINE_NAMES.

specsr.models.lines.angstrom_to_micron(x)[source]

Convert Angstroms to microns, returning float32.