ResamplerBase

class specutils.manipulation.ResamplerBase(extrapolation_treatment='nan_fill')[source]

Bases: abc.ABC

Base class for resample classes. The algorithms and needs for difference resamples will vary quite a bit, so this class is relatively sparse.

Parameters
extrapolation_treatmentstr

What to do when resampling off the edge of the spectrum. Can be 'nan_fill' to have points beyond the edges by set to NaN, or 'zero_fill' to be set to zero.

Methods Summary

__call__(self, orig_spectrum, fin_spec_axis)

Return the resulting Spectrum1D of the resampling.

resample1d(self, orig_spectrum, fin_spec_axis)

Workhorse method that will return the resampled Spectrum1D object.

Methods Documentation

__call__(self, orig_spectrum, fin_spec_axis)[source]

Return the resulting Spectrum1D of the resampling.

abstract resample1d(self, orig_spectrum, fin_spec_axis)[source]

Workhorse method that will return the resampled Spectrum1D object.