template_star

pydl.pydlspec2d.spec1d.template_star(metadata, newloglam, newflux, newivar, slist, outfile, verbose=False)[source]

Run PCA or HMF on stellar spectra of various classes.

Parameters:
metadatadict

Dictionary containing metadata about the spectra.

newloglamndarray

The wavelength array, used only for plots.

newfluxndarray

Flux shifted onto common wavelength.

newivarndarray

Inverse variances of the fluxes.

slistrecarray

The list of objects, containing stellar class information.

outfilestr

The base name of output file, used for plots.

verbosebool, optional

If True, print lots of extra information.

Returns:
dict

A dictonary containing flux, eigenvalues, etc.