astrocook.core.templates module#

Spectral templates shipped with the package (astrocook/data).

astrocook.core.templates.qso_composite() → Tuple[ndarray, ndarray][source]#

QSO composite spectrum, used to trace the Lyman-alpha emission when fitting the continuum (Spectrum.fit_continuum(template=True)).

Read once from qso_composite.dat (the same file as V1).

Returns:

  • x (numpy.ndarray) – Rest-frame wavelength, in Angstrom.

  • y (numpy.ndarray) – Flux of the composite, in arbitrary units.

  • Both arrays are read-only, since they are shared by all the callers.