template_qso

pydl.pydlspec2d.spec1d.template_qso(metadata, newflux, newivar, verbose=False)[source]

Run PCA or HMF on QSO spectra.

Historically, QSO templates were comptuted one at a time instead of all at once.

Parameters
metadatadict

Dictionary containing metadata about the spectra.

newfluxndarray

Flux shifted onto common wavelength.

newivarndarray

Inverse variances of the fluxes.

verbosebool, optional

If True, print lots of extra information.

Returns
dict

A dictonary containing flux, eigenvalues, etc.