combine1fiber

pydl.pydlspec2d.spec2d.combine1fiber(inloglam, objflux, newloglam, objivar=None, verbose=False, **kwargs)[source]

Combine several spectra of the same object, or resample a single spectrum.

Parameters:
inloglamnumpy.ndarray

Vector of log wavelength.

objfluxnumpy.ndarray

Input flux.

newloglamnumpy.ndarray

Output wavelength pixels, vector of log wavelength.

objivarnumpy.ndarray, optional

Inverse variance of the flux.

verbosebool, optional

If True, set log level to DEBUG.

Returns:
tuple of numpy.ndarray

The resulting flux and inverse variance.

Raises:
ValueError

If input dimensions don’t match.