SunPy spectra


One of core classes in SunPy is a Spectrum and Spectrogram. These representing a spectrum as a specific point in time or one as a function of time, respectively. Individual instruments are supported through subclasses. To see what instrument are supported see Spectrum Classes and Spectrogram Classes.


This module is under development! Use at your own risk.


sunpy.spectra.spectrum Module


Spectrum(data, freq_axis) Class representing a 1 dimensional spectrum.

Class Inheritance Diagram

Inheritance diagram of sunpy.spectra.spectrum.Spectrum

Spectrum Classes

None yet.


sunpy.spectra.spectrogram Module

Classes for spectral analysis.


Spectrogram(data, time_axis, freq_axis, ...) Spectrogram Class.
LinearTimeSpectrogram(data, time_axis, ...) Spectrogram evenly sampled in time.

Class Inheritance Diagram

Inheritance diagram of sunpy.spectra.spectrogram.Spectrogram, sunpy.spectra.spectrogram.LinearTimeSpectrogram

Spectrogram Classes

There are a series of subclasses which are specialised for each instrument.

sunpy.spectra.sources Package

Datasource-specific classes

This is where datasource specific logic is implemented. Each mission should have its own file with one or more classes defined.


CallistoSpectrogram(data, time_axis, ...[, ...]) Classed used for dynamic spectra coming from the Callisto network.
SWavesSpectrogram(data, time_axis, ...)

Class Inheritance Diagram

Inheritance diagram of sunpy.spectra.sources.callisto.CallistoSpectrogram, sunpy.spectra.sources.swaves.SWavesSpectrogram