ResamplerBase¶
- class specutils.manipulation.ResamplerBase(extrapolation_treatment='nan_fill')[source]¶
Bases:
ABCBase 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,'zero_fill'to set thoe points to zero, or'truncate'to truncate any non-overlapping bins of the spectrum.
Methods Summary
__call__(orig_spectrum, fin_spec_axis)Return the resulting
Spectrumof the resampling.resample1d(orig_spectrum, fin_spec_axis)Workhorse method that will return the resampled Spectrum object.
Methods Documentation