template_input

pydl.pydlspec2d.spec1d.template_input(inputfile, dumpfile, flux=False, verbose=False)[source]

Collect spectra and pass them to PCA or HMF solvers to compute spectral templates.

This function replaces the various PCA_GAL(), PCA_STAR(), etc., functions from idlspec2d.

Parameters:
inputfilestr

Name of a Parameter file containing the input data and metadata.

dumpfilestr

Name of a Pickle file used to store intermediate data.

fluxbool, optional

If True, plot the individual input spectra.

verbosebool, optional

If True, print lots of extra information.