Spectrum¶
The Spectrum class is the core data container in wara. It holds counts,
energy bins, and metadata, and provides methods for smoothing, rebinning,
and plotting.
Loading a spectrum¶
from wara import Spectrum
sp = Spectrum.from_file("data.csv")
Smoothing and rebinning¶
sp_smooth = sp.smooth(window=5)
sp_rebin = sp.rebin(factor=2)
Plotting¶
sp.plot()
For full API details see wara.spectrum.Spectrum in the API reference.