ResamplerBase¶
- class specutils.manipulation.ResamplerBase(extrapolation_treatment='nan_fill')[source]¶
Bases:
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,'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
Spectrum1D
of the resampling.resample1d
(orig_spectrum, fin_spec_axis)Workhorse method that will return the resampled Spectrum1D object.
Methods Documentation
- __call__(orig_spectrum, fin_spec_axis)[source]¶
Return the resulting
Spectrum1D
of the resampling.