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: metadata :
dictDictionary containing metadata about the spectra.
newloglam :
ndarrayThe wavelength array, used only for plots.
newflux :
ndarrayFlux shifted onto common wavelength.
newivar :
ndarrayInverse variances of the fluxes.
slist :
recarrayThe list of objects, containing stellar class information.
outfile :
strThe base name of output file, used for plots.
verbose :
bool, optionalIf
True, print lots of extra information.Returns: dictA dictonary containing flux, eigenvalues, etc.