NOAAIndicesTimeSeries

class sunpy.timeseries.sources.NOAAIndicesTimeSeries(data, meta=None, units=None, **kwargs)[source]

Bases: GenericTimeSeries

NOAA Solar Cycle monthly indices.

Solar activity is measured by a number of different values. The NOAA Solar Weather Prediction Center (SWPC) publishes the following indices. All of these indices are also provided as a 13-month running smoothed value.

  • The SWO sunspot number is issued by the NOAA Space Weather Prediction Center (SWPC)

  • The RI sunspot number is the official International Sunspot Number and is issued by the Solar Influence Data Analysis Center (SDIC) in Brussels, Belgium.

  • The ratio between the SWO and RI indices.

  • Radio flux at 10.7 cm is produced by Penticon/Ottawa and the units are in sfu.

  • The Ap Geomagnetic Index is produced by the United States Air Force (USAF).

Note

See the gallery example Plotting a solar cycle index for how to use Fido to retrieve the data file.

Examples

>>> import sunpy.timeseries
>>> noaa_url = "https://services.swpc.noaa.gov/json/solar-cycle/observed-solar-cycle-indices.json"
>>> noaa = sunpy.timeseries.TimeSeries(noaa_url, source='NOAAIndices')  
>>> noaa.peek()  

References

Methods Summary

is_datasource_for(**kwargs)

Determines if header corresponds to an NOAA indices timeseries.

peek([title, plot_type])

Displays the NOAA Indices as a function of time by calling plot.

plot([axes, plot_type])

Plots NOAA Indices.

Methods Documentation

classmethod is_datasource_for(**kwargs)[source]

Determines if header corresponds to an NOAA indices timeseries.

peek(title='Solar Cycle Progression', plot_type='sunspot SWO', **kwargs)[source]

Displays the NOAA Indices as a function of time by calling plot.

(Source code, png, hires.png, pdf)

../../_images/sunpy-timeseries-sources-NOAAIndicesTimeSeries-1.png
Parameters:
  • title (str, optional) – The title of the plot. Defaults to “Solar Cycle Progression”.

  • plot_type ({"sunspot SWO", "sunspot RI", "sunspot compare", "radio", "geo"}, optional) – The type of plot required. Defaults to "sunspot SWO".

  • **kwargs (dict) – Additional plot keyword arguments that are handed to plot functions.

plot(axes=None, plot_type='sunspot SWO', **kwargs)[source]

Plots NOAA Indices.

Parameters:
  • axes (matplotlib.axes.Axes, optional) – The axes on which to plot the TimeSeries.

  • plot_type ({"sunspot SWO", "sunspot RI", "sunspot compare", "radio", "geo"}, optional) – The type of plot required. Defaults to "sunspot SWO".

  • **kwargs (dict) – Additional plot keyword arguments that are handed to plot functions.

Returns:

Axes – The plot axes.