template_logwl_resample

specutils.analysis.template_logwl_resample(spectrum, template, wblue=None, wred=None, delta_log_wavelength=None, resampler=<specutils.manipulation.resample.LinearInterpolatedResampler object>)[source]

Resample a spectrum and template onto a common log-spaced spectral grid.

If wavelength limits are not provided, the function will use the limits of the merged (observed+template) wavelength scale for building the log-wavelength scale.

For the wavelength step, the function uses either the smallest wavelength interval found in the observed spectrum, or takes it from the delta_log_wavelength parameter.

Parameters:
observed_spectrumSpectrum1D

The observed spectrum.

template_spectrumSpectrum1D

The template spectrum.

wblue, wred: float

Wavelength limits to include in the correlation.

delta_log_wavelength: float

Log-wavelength step to use to build the log-wavelength scale. If None, use limits defined as explained above.

resampler

A specutils resampler to use to actually do the resampling. Defaults to using a LinearInterpolatedResampler.

Returns:
resampled_observedSpectrum1D

The observed spectrum resampled to a common spectral_axis.

resampled_template: Spectrum1D

The template spectrum resampled to a common spectral_axis.