RPWSpectrogram#

class radiospectra.spectrogram.RPWSpectrogram(data, meta, **kwargs)[source]#

Bases: GenericSpectrogram

Solar Orbiter Radio and Plasma Waves (RPW) spectrogram.

For more information on the instrument see https://rpw-datacenter.obspm.fr.

Examples for accessing Level 2 HFR and Level 3 TNR/HFR (calibrated) data products.

HFR Level 2 Example:

>>> import sunpy_soar
>>> from sunpy.net import Fido, attrs as a
>>> from radiospectra.spectrogram import Spectrogram
>>> query = Fido.search(a.Time('2020-07-11', '2020-07-11 23:59'), a.Instrument('RPW'),
...             a.Level(2), a.soar.Product('RPW-HFR-SURV'))
>>> downloaded = Fido.fetch(query[0])
>>> spec = Spectrogram(downloaded[0])
>>> spec
[<RPWSpectrogram SOLO, RPW, RPW-AGC1 375.0 kHz - 16375.0 kHz, 2020-07-11T00:00:39.352 to 2020-07-12T00:00:55.715>, <RPWSpectrogram SOLO, RPW, RPW-AGC2 375.0 kHz - 16375.0 kHz, 2020-07-11T00:00:39.352 to 2020-07-12T00:00:55.715>]
>>> spec[0] .plot()
<matplotlib.collections.QuadMesh object at ...>

TNR Level 3 Example:

>>> import sunpy_soar
>>> from sunpy.net import Fido, attrs as a
>>> from radiospectra.spectrogram import Spectrogram
>>> query = Fido.search(a.Time('2024/03/23 00:00', '2024/03/23 23:59'),
...                     a.Instrument.rpw, a.Level(3), a.Provider.soar)
>>> downloaded = Fido.fetch(query[0][query[0]["Data product"]=='rpw-tnr-surv-flux'][0])
>>> spec = Spectrogram(downloaded[0])
>>> spec
<RPWSpectrogram SOLO, RPW, RPW-TNR 3.992000102996826 kHz - 978.572021484375 kHz, 2024-03-23T00:04:32.873 to 2024-03-24T00:04:46.381>
>>> spec.plot()
<matplotlib.collections.QuadMesh object at ...>

HFR Level 3 Example:

>>> import sunpy_soar
>>> from sunpy.net import Fido, attrs as a
>>> from radiospectra.spectrogram import Spectrogram
>>> query = Fido.search(a.Time('2024/03/23 00:00', '2024/03/23 23:59'),
...                     a.Instrument.rpw, a.Level(3), a.Provider.soar)
>>> downloaded = Fido.fetch(query[0][query[0]["Data product"]=='rpw-hfr-surv-flux'][0])
>>> spec = Spectrogram(downloaded[0])
>>> spec
<RPWSpectrogram SOLO, RPW, RPW-HFR 425.0000305175781 kHz - 16325.0009765625 kHz, 2024-03-23T00:04:14.063 to 2024-03-24T00:04:07.571>
>>> spec.plot()
<matplotlib.collections.QuadMesh object at ...>

Attributes Summary

detector

The detector which recorded the spectrogram.

end_time

The end time of the spectrogram.

frequencies

The frequencies of the spectrogram.

instrument

The name of the instrument which recorded the spectrogram.

observatory

The name of the observatory which recorded the spectrogram.

start_time

The start time of the spectrogram.

times

The times of the spectrogram.

wavelength

The wavelength range of the spectrogram.

Methods Summary

is_datasource_for(data, meta, **kwargs)

plot([axes])

Plot the spectrogram.

plotim([fig, axes])

Attributes Documentation

detector#

The detector which recorded the spectrogram.

end_time#

The end time of the spectrogram.

frequencies#

The frequencies of the spectrogram.

instrument#

The name of the instrument which recorded the spectrogram.

observatory#

The name of the observatory which recorded the spectrogram.

start_time#

The start time of the spectrogram.

times#

The times of the spectrogram.

wavelength#

The wavelength range of the spectrogram.

Methods Documentation

classmethod is_datasource_for(data, meta, **kwargs)[source]#
plot(axes=None, **kwargs)#

Plot the spectrogram.

Parameters:
Return type:

matplotlib.collections.QuadMesh

plotim(fig=None, axes=None, **kwargs)#